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