| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( INCLUDED_CAMWINDOW_H ) |
| 23 |
#define INCLUDED_CAMWINDOW_H |
| 24 |
|
| 25 |
#include <uilib/uilib.h> |
| 26 |
#include "math/vector.h" |
| 27 |
#include "signal/signalfwd.h" |
| 28 |
|
| 29 |
class CamWnd; |
| 30 |
CamWnd* NewCamWnd(); |
| 31 |
void DeleteCamWnd( CamWnd* camwnd ); |
| 32 |
|
| 33 |
void AddCameraMovedCallback( const SignalHandler& handler ); |
| 34 |
|
| 35 |
void CamWnd_Update( CamWnd& camwnd ); |
| 36 |
|
| 37 |
ui::GLArea CamWnd_getWidget( CamWnd& camwnd ); |
| 38 |
void CamWnd_setParent( CamWnd& camwnd, ui::Window parent ); |
| 39 |
|
| 40 |
void GlobalCamera_setCamWnd( CamWnd& camwnd ); |
| 41 |
|
| 42 |
void CamWnd_constructToolbar( ui::Toolbar toolbar ); |
| 43 |
void CamWnd_registerShortcuts(); |
| 44 |
|
| 45 |
void GlobalCamera_Benchmark(); |
| 46 |
|
| 47 |
const Vector3& Camera_getOrigin( CamWnd& camwnd ); |
| 48 |
void Camera_setOrigin( CamWnd& camwnd, const Vector3& origin ); |
| 49 |
|
| 50 |
void GlobalCamera_FocusOnSelected(); |
| 51 |
|
| 52 |
enum |
| 53 |
{ |
| 54 |
CAMERA_PITCH = 0, |
| 55 |
CAMERA_YAW = 1, |
| 56 |
CAMERA_ROLL = 2, |
| 57 |
}; |
| 58 |
|
| 59 |
const Vector3& Camera_getAngles( CamWnd& camwnd ); |
| 60 |
void Camera_setAngles( CamWnd& camwnd, const Vector3& angles ); |
| 61 |
|
| 62 |
|
| 63 |
struct camwindow_globals_t |
| 64 |
{ |
| 65 |
Vector3 color_cameraback; |
| 66 |
Vector3 color_selbrushes3d; |
| 67 |
|
| 68 |
int m_nCubicScale; |
| 69 |
|
| 70 |
bool m_bZoomInToPointer; |
| 71 |
|
| 72 |
camwindow_globals_t() : |
| 73 |
color_cameraback( 0.25f, 0.25f, 0.25f ), |
| 74 |
color_selbrushes3d( 1.0f, 0.f, 0.f ), |
| 75 |
m_nCubicScale( 26 ), |
| 76 |
m_bZoomInToPointer( true ){ |
| 77 |
} |
| 78 |
|
| 79 |
}; |
| 80 |
|
| 81 |
extern camwindow_globals_t g_camwindow_globals; |
| 82 |
|
| 83 |
void CamWnd_Construct(); |
| 84 |
void CamWnd_Destroy(); |
| 85 |
|
| 86 |
#endif |