]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/camwindow.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / radiant / camwindow.h
index d0722a79cef512d3878e06b4b7714b80a9ca8f16..02f1b3bb3bbcca3144f28dc4eb3bd116408a4b91 100644 (file)
 #include "signal/signalfwd.h"
 
 class CamWnd;
-CamWnd* NewCamWnd();
-void DeleteCamWnd( CamWnd* camwnd );
 
-void AddCameraMovedCallback( const SignalHandler& handler );
+CamWnd *NewCamWnd();
 
-void CamWnd_Update( CamWnd& camwnd );
+void DeleteCamWnd(CamWnd *camwnd);
 
-ui::GLArea CamWnd_getWidget( CamWnd& camwnd );
-void CamWnd_setParent( CamWnd& camwnd, ui::Window parent );
+void AddCameraMovedCallback(const SignalHandler &handler);
 
-void GlobalCamera_setCamWnd( CamWnd& camwnd );
+void CamWnd_Update(CamWnd &camwnd);
+
+ui::GLArea CamWnd_getWidget(CamWnd &camwnd);
+
+void CamWnd_setParent(CamWnd &camwnd, ui::Window parent);
+
+void GlobalCamera_setCamWnd(CamWnd &camwnd);
+
+void fill_view_camera_menu(ui::Menu menu);
+
+void CamWnd_constructToolbar(ui::Toolbar toolbar);
 
-void fill_view_camera_menu( ui::Menu menu );
-void CamWnd_constructToolbar( ui::Toolbar toolbar );
 void CamWnd_registerShortcuts();
 
 void GlobalCamera_Benchmark();
 
-const Vector3& Camera_getOrigin( CamWnd& camwnd );
-void Camera_setOrigin( CamWnd& camwnd, const Vector3& origin );
+const Vector3 &Camera_getOrigin(CamWnd &camwnd);
+
+void Camera_setOrigin(CamWnd &camwnd, const Vector3 &origin);
 
-enum
-{
-       CAMERA_PITCH = 0, // up / down
-       CAMERA_YAW = 1, // left / right
-       CAMERA_ROLL = 2, // fall over
+enum {
+    CAMERA_PITCH = 0, // up / down
+    CAMERA_YAW = 1, // left / right
+    CAMERA_ROLL = 2, // fall over
 };
 
-const Vector3& Camera_getAngles( CamWnd& camwnd );
-void Camera_setAngles( CamWnd& camwnd, const Vector3& angles );
+const Vector3 &Camera_getAngles(CamWnd &camwnd);
 
+void Camera_setAngles(CamWnd &camwnd, const Vector3 &angles);
 
-struct camwindow_globals_t
-{
-       Vector3 color_cameraback;
-       Vector3 color_selbrushes3d;
 
-       int m_nCubicScale;
+struct camwindow_globals_t {
+    Vector3 color_cameraback;
+    Vector3 color_selbrushes3d;
 
-       camwindow_globals_t() :
-               color_cameraback( 0.25f, 0.25f, 0.25f ),
-               color_selbrushes3d( 1.0f, 0.f, 0.f ),
-               m_nCubicScale( 13 ){
-       }
+    int m_nCubicScale;
+
+    camwindow_globals_t() :
+            color_cameraback(0.25f, 0.25f, 0.25f),
+            color_selbrushes3d(1.0f, 0.f, 0.f),
+            m_nCubicScale(13)
+    {
+    }
 
 };
 
 extern camwindow_globals_t g_camwindow_globals;
 
 void CamWnd_Construct();
+
 void CamWnd_Destroy();
 
 #endif