-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\r
-*/\r
-\r
-// window system independent camera view code\r
-\r
-typedef enum\r
-{\r
- cd_wire,\r
- cd_solid,\r
- cd_texture,\r
- cd_light,\r
-// cd_blend\r
-} camera_draw_mode;\r
-\r
-#define DRAW_GL_FILL 0x0001\r
-#define DRAW_GL_LIGHTING 0x0010\r
-#define DRAW_GL_TEXTURE_2D 0x0100\r
-#define DRAW_GL_BLEND 0x1000\r
-\r
-#define DRAW_GL_WIRE 0x0000\r
-#define DRAW_GL_FLAT 0x0001\r
-#define DRAW_GL_SOLID 0x0011\r
-#define DRAW_GL_TEXTURED 0x0111\r
-\r
-#define DRAW_WIRE 0\r
-#define DRAW_SOLID 1\r
-#define DRAW_TEXTURED 2\r
-\r
-// TTimo: camera code is a huge mess\r
-// someone courageous should clean it up\r
-// this will probably happen when we have new rendering code\r
-\r
-#define MOVE_FORWARD 0x001\r
-#define MOVE_BACK 0x002\r
-#define MOVE_ROTRIGHT 0x004\r
-#define MOVE_ROTLEFT 0x008\r
-#define MOVE_STRAFERIGHT 0x010\r
-#define MOVE_STRAFELEFT 0x020\r
-\r
-typedef struct\r
-{\r
- int width, height;\r
-\r
- qboolean timing;\r
-\r
- vec3_t origin;\r
- // TTimo\r
- // indexes: PITCH = 0 YAW = 1 ROLL = 3\r
- // AFAIK in Radiant we always have ROLL=0\r
- vec3_t angles;\r
-\r
- camera_draw_mode draw_mode;\r
- int draw_glstate;\r
-\r
- vec3_t color; // background \r
-\r
- vec3_t forward, right; // move matrix (TTimo: used to have up but it was not updated)\r
- vec3_t vup, vpn, vright; // view matrix (taken from the GL_PROJECTION matrix)\r
-\r
- float projection[4][4];\r
- float modelview[4][4];\r
-\r
- unsigned int movementflags; // movement flags\r
-\r
-} camera_t;\r
+/*
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
+For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+This file is part of GtkRadiant.
+
+GtkRadiant is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GtkRadiant is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GtkRadiant; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+// window system independent camera view code
+
+typedef enum
+{
+ cd_wire,
+ cd_solid,
+ cd_texture,
+ cd_light,
+// cd_blend
+} camera_draw_mode;
+
+#define DRAW_GL_FILL 0x0001
+#define DRAW_GL_LIGHTING 0x0010
+#define DRAW_GL_TEXTURE_2D 0x0100
+#define DRAW_GL_BLEND 0x1000
+
+#define DRAW_GL_WIRE 0x0000
+#define DRAW_GL_FLAT 0x0001
+#define DRAW_GL_SOLID 0x0011
+#define DRAW_GL_TEXTURED 0x0111
+
+#define DRAW_WIRE 0
+#define DRAW_SOLID 1
+#define DRAW_TEXTURED 2
+
+// TTimo: camera code is a huge mess
+// someone courageous should clean it up
+// this will probably happen when we have new rendering code
+
+#define MOVE_FORWARD 0x001
+#define MOVE_BACK 0x002
+#define MOVE_ROTRIGHT 0x004
+#define MOVE_ROTLEFT 0x008
+#define MOVE_STRAFERIGHT 0x010
+#define MOVE_STRAFELEFT 0x020
+
+typedef struct
+{
+ int width, height;
+
+ qboolean timing;
+
+ vec3_t origin;
+ // TTimo
+ // indexes: PITCH = 0 YAW = 1 ROLL = 3
+ // AFAIK in Radiant we always have ROLL=0
+ vec3_t angles;
+
+ camera_draw_mode draw_mode;
+ int draw_glstate;
+
+ vec3_t color; // background
+
+ vec3_t forward, right; // move matrix (TTimo: used to have up but it was not updated)
+ vec3_t vup, vpn, vright; // view matrix (taken from the GL_PROJECTION matrix)
+
+ float projection[4][4];
+ float modelview[4][4];
+
+ unsigned int movementflags; // movement flags
+
+} camera_t;