X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fxywindow.h;h=071f132cbe5dd19713a90ba207672cd3cfc0aa59;hb=2f3014d79f98abd19b003327ed7852e8246e0a1e;hp=dcc5c0ecf86e6fcad297daa882eb3f5b9e01eb2d;hpb=f472e6f0e8066e62cf3e159287bb07de97d2e59d;p=xonotic%2Fnetradiant.git diff --git a/radiant/xywindow.h b/radiant/xywindow.h index dcc5c0ec..071f132c 100644 --- a/radiant/xywindow.h +++ b/radiant/xywindow.h @@ -128,7 +128,10 @@ void ZoomIn(); void ZoomOut(); void ZoomInWithMouse( int pointx, int pointy ); +void Redraw(); + void RenderActive(); + void SetActive( bool b ){ m_bActive = b; RenderActive(); @@ -158,8 +161,8 @@ guint m_chasemouse_handler; void ChaseMouse(); bool chaseMouseMotion( int pointx, int pointy ); -void updateModelview(); -void updateProjection(); +void updateModelview(bool reconstruct = true); +void updateProjection(bool reconstruct = true); Matrix4 m_projection; Matrix4 m_modelview; @@ -251,6 +254,8 @@ struct xywindow_globals_t Vector3 color_selbrushes; Vector3 color_clipper; Vector3 color_viewname; + Vector3 color_gridminor_alt; + Vector3 color_gridmajor_alt; Vector3 AxisColorX; Vector3 AxisColorY; Vector3 AxisColorZ; @@ -269,6 +274,8 @@ struct xywindow_globals_t color_selbrushes( 1.f, 0.f, 0.f ), color_clipper( 0.f, 0.f, 1.f ), color_viewname( 0.5f, 0.f, 0.75f ), + color_gridminor_alt( 0.f, 0.f, 0.f ), + color_gridmajor_alt( 0.f, 0.f, 0.f ), AxisColorX( 1.f, 0.f, 0.f ), AxisColorY( 0.f, 1.f, 0.f ),