2 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #if !defined( INCLUDED_CAMWINDOW_H )
23 #define INCLUDED_CAMWINDOW_H
25 #include <uilib/uilib.h>
26 #include "math/vector.h"
27 #include "signal/signalfwd.h"
31 void DeleteCamWnd( CamWnd* camwnd );
33 void AddCameraMovedCallback( const SignalHandler& handler );
35 void CamWnd_Update( CamWnd& camwnd );
37 ui::Widget CamWnd_getWidget( CamWnd& camwnd );
38 void CamWnd_setParent( CamWnd& camwnd, ui::Window parent );
40 void GlobalCamera_setCamWnd( CamWnd& camwnd );
42 void fill_view_camera_menu( ui::Menu menu );
43 typedef struct _GtkToolbar GtkToolbar;
44 void CamWnd_constructToolbar( ui::Toolbar toolbar );
45 void CamWnd_registerShortcuts();
47 void GlobalCamera_Benchmark();
49 const Vector3& Camera_getOrigin( CamWnd& camwnd );
50 void Camera_setOrigin( CamWnd& camwnd, const Vector3& origin );
54 CAMERA_PITCH = 0, // up / down
55 CAMERA_YAW = 1, // left / right
56 CAMERA_ROLL = 2, // fall over
59 const Vector3& Camera_getAngles( CamWnd& camwnd );
60 void Camera_setAngles( CamWnd& camwnd, const Vector3& angles );
63 struct camwindow_globals_t
65 Vector3 color_cameraback;
66 Vector3 color_selbrushes3d;
70 camwindow_globals_t() :
71 color_cameraback( 0.25f, 0.25f, 0.25f ),
72 color_selbrushes3d( 1.0f, 0.f, 0.f ),
78 extern camwindow_globals_t g_camwindow_globals;
80 void CamWnd_Construct();
81 void CamWnd_Destroy();