Last change
on this file since 2218 was
2096,
checked in by ldelgass, 13 years ago
|
Normalize line endings, set eol-style to native on *.cpp, *.h files
|
-
Property svn:eol-style set to
native
|
File size:
928 bytes
|
Line | |
---|
1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * Event.cpp: user event class for statistics purpose |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Wei Qiao <qiaow@purdue.edu> |
---|
7 | * Purdue Rendering and Perceptualization Lab (PURPL) |
---|
8 | * |
---|
9 | * Copyright (c) 2004-2006 Purdue Research Foundation |
---|
10 | * |
---|
11 | * See the file "license.terms" for information on usage and |
---|
12 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
13 | * ====================================================================== |
---|
14 | */ |
---|
15 | |
---|
16 | #include <memory.h> |
---|
17 | #include "Event.h" |
---|
18 | |
---|
19 | Event::Event(){} |
---|
20 | Event::~Event(){} |
---|
21 | |
---|
22 | |
---|
23 | Event::Event(int _type, float _param[3], float _time){ |
---|
24 | type = _type; |
---|
25 | memcpy(parameter, _param, 3*sizeof(float)); |
---|
26 | msec = _time; |
---|
27 | } |
---|
28 | |
---|
29 | void Event::write(FILE* fd){ |
---|
30 | fprintf(fd, "%d %f %f %f %g\n", type, parameter[0], parameter[1], parameter[2], msec); |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.