FS2_Open
Open source remastering of the Freespace 2 engine
observer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _OBSERVER_HEADER_FILE
13 #define _OBSERVER_HEADER_FILE
14 
15 class object;
16 struct vec3d;
17 struct matrix;
18 
19 #define OBS_MAX_VEL_X (85.0f) // side to side
20 #define OBS_MAX_VEL_Y (85.0f) // side to side
21 #define OBS_MAX_VEL_Z (85.0f) // forwards and backwards
22 
23 
24 #define OBS_FLAG_USED (1<<1)
25 
26 typedef struct observer {
27  int objnum;
28 
29  int target_objnum; // not used as of yet
30  int flags;
31 } observer;
32 
33 #define MAX_OBSERVER_OBS 17
35 
36 void observer_init();
37 int observer_create(matrix *orient, vec3d *pos); // returns objnum
38 void observer_delete(object *obj);
39 
40 // get the eye position and orientation for the passed observer object
42 
43 #endif
Definition: pstypes.h:88
hull_check orient
Definition: lua.cpp:5049
int target_objnum
Definition: observer.h:29
void observer_init()
Definition: observer.cpp:22
int objnum
Definition: observer.h:27
matrix eye_orient
Definition: fredrender.cpp:112
int flags
Definition: observer.h:30
vec3d eye_pos
Definition: fredrender.cpp:103
Definition: object.h:141
#define MAX_OBSERVER_OBS
Definition: observer.h:33
observer Observers[MAX_OBSERVER_OBS]
Definition: observer.cpp:20
void observer_delete(object *obj)
Definition: observer.cpp:86
struct observer observer
hull_check pos
Definition: lua.cpp:5050
GLsizei GLsizei GLuint * obj
Definition: Glext.h:5619
int observer_create(matrix *orient, vec3d *pos)
Definition: observer.cpp:32
void observer_get_eye(vec3d *eye_pos, matrix *eye_orient, object *obj)
Definition: observer.cpp:99