view.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1997-2006 Id Software, Inc.
  4. This file is part of Quake 2 Tools source code.
  5. Quake 2 Tools source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake 2 Tools source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Quake 2 Tools source code; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. typedef struct
  19. {
  20. int x, y;
  21. int w, h;
  22. int redraws; // clear to 0 when need update
  23. vec3_t color;
  24. vec3_t origin;
  25. vec3_t angles;
  26. vec3_t forward, right, up;
  27. int draw_filtered;
  28. int draw_wire;
  29. int draw_solid;
  30. int draw_textured;
  31. int draw_blend;
  32. } vieworg_t;
  33. extern vieworg_t *view_org;
  34. extern int keysdown;
  35. void View_Init (void);
  36. void View_Draw (void);
  37. void View_MouseDown (int x, int y, int buttons);
  38. void View_KeyUp (int key);
  39. void View_KeyDown (int key);
  40. void View_Reshape(int w, int h);