Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1010 B

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifndef GL_RMAIN_H
  8. #define GL_RMAIN_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "mathlib/vector.h"
  13. #include "mathlib/mathlib.h"
  14. extern Frustum_t g_Frustum;
  15. // Cull to the full screen frustum.
  16. inline bool R_CullBox( const Vector& mins, const Vector& maxs )
  17. {
  18. return g_Frustum.CullBox( mins, maxs );
  19. }
  20. // Draw a rectangle in screenspace. The screen window is (-1,-1) to (1,1).
  21. void R_DrawScreenRect( float left, float top, float right, float bottom );
  22. void R_DrawPortals();
  23. float GetScreenAspect( int viewportWidth, int viewportHeight );
  24. void R_CheckForLightingConfigChanges();
  25. void R_CheckForPaintmapChanges();
  26. // NOTE: Screen coordinates go from 0->w, 0->h
  27. void ComputeWorldToScreenMatrix( VMatrix *pWorldToScreen, const VMatrix &worldToProjection, const CViewSetup &viewSetup );
  28. #endif // GL_RMAIN_H