 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
5 #include <OGRE/OgreCamera.h>
17 bool allow_compat_editing =
false;
19 float look_sensetivity = 0.25f;
99 ImGui::Text(
"these settings are unused and will likely be removed in the future");
103 Widgets::ShowHelpMarker(
"enables compatiability editing of deprecated settings - this will try and apply the settings to their closest counterparts");
105 if (allow_compat_editing)
120 ImGui::Text(
"these settings are not directly tied to the director, but are instead used for calibrating the 2D orthographic camera, used for ui");
124 Ogre::Vector3 camera2_pos =
camera2->getPosition();
125 Ogre::Vector3 camera2_angle =
camera2->getRealDirection();
126 float fov =
camera2->getFOVy().valueDegrees();
128 float near_clip_distance =
camera2->getNearClipDistance();
129 float far_clip_distance =
camera2->getFarClipDistance();
133 camera2->setPosition(camera2_pos);
138 camera2->setDirection(camera2_angle);
143 camera2->setFOVy(Ogre::Radian(BlamStrings::Utils::Math::FloatDegreesToRadians(fov)));
149 camera2->setNearClipDistance(near_clip_distance);
157 camera2->setNearClipDistance(far_clip_distance);
BLAM BlamDirector * GetCamera()
Retrieves the director instance.
Definition: director.cpp:31
float fov
The camera's current field of view.
Definition: director.h:85
float far_clip_plane_distance
Definition: director.h:109
BlamVector3 camera_angle
The current looking angle of the camera. X is yaw, Y is pitch, Z is roll (unused atm).
Definition: director.h:78
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
float zoom_increment_count
The number of steps/increments to use when zooming in and out. Lower numbers will cause the camera to...
Definition: director.h:90
IMGUI_API void End()
Definition: imgui.cpp:6016
float near_clip_plane_distance
Definition: director.h:108
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
BLAM Ogre::Camera * Get2DCamera()
Definition: ogre.cpp:400
float vertical_angle
Definition: director.h:106
BlamVector3 camera_right
The calculated point representing the right of the camera.
Definition: director.h:82
bool calculate_angle
Definition: director.h:104
IMGUI_API bool DragFloat(const char *label, float *v, float v_speed=1.0f, float v_min=0.0f, float v_max=0.0f, const char *format="%.3f", float power=1.0f)
Definition: imgui_widgets.cpp:2164
float accel_increment_count
The number of steps/increments to use when accelerating and decelerating. Lower numbers will cause th...
Definition: director.h:96
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
IMGUI_API bool CollapsingHeader(const char *label, ImGuiTreeNodeFlags flags=0)
Definition: imgui_widgets.cpp:5422
float horizontal_angle
Definition: director.h:105
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
bool move_acceleration
Whether or not camera movements should use acceleration.
Definition: director.h:94
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
bool auto_verify_coords
Whether or not camera_front and camera_right should be automatically calculated.
Definition: director.h:80
float speed
The camera's current speed.
Definition: director.h:88
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
IMGUI_API bool DragFloat3(const char *label, float v[3], float v_speed=1.0f, float v_min=0.0f, float v_max=0.0f, const char *format="%.3f", float power=1.0f)
Definition: imgui_widgets.cpp:2174
bool lock_camera
Whether or not the camera is locked. If locked, all keyboard/mouse input is ignored.
Definition: director.h:91
bool look_acceleration
Whether or not camera looking should use acceleration.
Definition: director.h:95
Class representing the Director.
Definition: director.h:27
bool pancam_lock_xy
Whether or not the camera should be locked to X/Y axis when in pan-cam mode.
Definition: director.h:93
bool camera_bouncing
Whether or not the camera should have a bounce/rubber effect when moving and looking around.
Definition: director.h:97
bool tick_based_looking
Whether or not camera looking should be driven by the game tick.
Definition: director.h:102
bool persistent_look_motion
Whether or not to use persistent camera look motion. Only applies when using tick based looking.
Definition: director.h:101
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:26
Ogre::Camera * camera2
Definition: ogre.cpp:73
bool pancam
Whether or not the camera is currently in pan-cam mode. Pan-cam locks Z movement of the camera when n...
Definition: director.h:92
BlamVector3 camera_front
The calculated point representing the front of the camera.
Definition: director.h:81
IMGUI_API bool InputFloat(const char *label, float *v, float step=0.0f, float step_fast=0.0f, const char *format="%.3f", ImGuiInputTextFlags flags=0)
Definition: imgui_widgets.cpp:2975
IMGUI_API void TextDisabled(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:272
BlamVector3 camera_pos
The current position of the camera.
Definition: director.h:77
float look_sensetivity_vertical
The camera's vertical look sensetivity.
Definition: director.h:99
float look_sensetivity_horizontal
The camera's horizontal look sensetivity.
Definition: director.h:100