 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <OGRE/OgreCamera.h>
6 #include <Strings/components/utils/math/math.h>
16 bool allow_compat_editing =
false;
17 float look_sensetivity = 0.25f;
126 ImGui::Text(
"these settings are unused and will likely be removed in the future");
132 if (allow_compat_editing)
147 ImGui::Text(
"these settings are not directly tied to the director, but are instead used for calibrating the 2D orthographic camera, used for ui");
151 Ogre::Vector3 camera2_pos =
camera2->getPosition();
152 Ogre::Vector3 camera2_angle =
camera2->getRealDirection();
153 float fov =
camera2->getFOVy().valueDegrees();
155 float near_clip_distance =
camera2->getNearClipDistance();
156 float far_clip_distance =
camera2->getFarClipDistance();
160 camera2->setPosition(camera2_pos);
165 camera2->setDirection(camera2_angle);
170 camera2->setFOVy(Ogre::Radian(BlamStrings::Utils::Math::FloatDegreesToRadians(fov)));
175 if (near_clip_distance > 0.0f)
177 camera2->setNearClipDistance(near_clip_distance);
186 camera2->setFarClipDistance(far_clip_distance);
float fov_damping
Spring damping for camera zooming. Only used when enable_zoom_spring is true.
Definition: director.h:132
BLAM BlamDirector * GetCamera()
Retrieves the director instance.
Definition: director.cpp:36
float fov
The camera's current field of view.
Definition: director.h:95
float zoom
Definition: director.h:194
float far_clip_plane_distance
Definition: director.h:118
BlamVector3 camera_angle
The current looking angle of the camera. X is yaw, Y is pitch, Z is roll (unused atm).
Definition: director.h:85
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
float fov_spring_scale
Scale factor to use when calculating zoom springiness. Only used when enable_zoom_spring is true.
Definition: director.h:133
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:99
BLAM BlamDirector2D * GetCamera2D()
Definition: director.cpp:69
IMGUI_API void End()
Definition: imgui.cpp:6016
float near_clip_plane_distance
Definition: director.h:117
float look_accel_rate
Acceleration rate to use when rotating camera. Only used when enable_look_spring is true.
Definition: director.h:128
BLAM Ogre::Camera * Get2DCamera()
Retrieves the camera used to handle 2D rendering.
Definition: ogre.cpp:710
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
bool enable_zoom_spring
Whether or not zoom springiness is enabled. Gives camera zooming a subtle "bounciness".
Definition: director.h:130
float vertical_angle
Definition: director.h:115
Class representing an ImGUI window.
Definition: imgui.h:31
BlamVector3 camera_right
The calculated point representing the right of the camera.
Definition: director.h:89
float movement_spring_scale
Scale factor to use when calculating movement springiness. Only used when enable_movement_spring is t...
Definition: director.h:123
bool calculate_angle
Definition: director.h:113
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:105
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:114
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:103
float look_spring_stiffness
Spring stiffness for camera rotation. Only used when enable_look_spring is true.
Definition: director.h:126
bool lock_camera
Whether or not the camera is locked. If locked, all keyboard/mouse input is ignored.
Definition: director.h:195
float damping
Spring damping for camera movement. Only used when enable_movement_spring is true.
Definition: director.h:122
bool auto_verify_coords
Whether or not camera_front and camera_right should be automatically calculated.
Definition: director.h:87
float speed
The camera's current speed.
Definition: director.h:98
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:100
bool look_acceleration
Whether or not camera looking should use acceleration.
Definition: director.h:104
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:102
bool camera_bouncing
Whether or not the camera should have a bounce/rubber effect when moving and looking around.
Definition: director.h:106
bool tick_based_looking
Whether or not camera looking should be driven by the game tick.
Definition: director.h:111
float look_damping
Spring damping for camera rotation. Only used when enable_look_spring is true.
Definition: director.h:127
bool persistent_look_motion
Whether or not to use persistent camera look motion. Only applies when using tick based looking.
Definition: director.h:110
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
BlamVector3 camera_direction
Definition: director.h:193
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
float fov_spring_stiffness
Spring stiffness for camera zooming. Only used when enable_zoom_spring is true.
Definition: director.h:131
float spring_stiffness
Spring stiffness for camera movement. Only used when enable_movement_spring is true.
Definition: director.h:121
Ogre::Camera * camera2
Definition: ogre.cpp:101
float far_clip_plane_distance
Definition: director.h:198
Definition: director.h:184
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:101
float near_clip_plane_distance
Definition: director.h:197
BlamVector3 camera_pos
Definition: director.h:192
bool enable_movement_spring
Whether or not movement springiness is enabled. Gives camera movement a subtle "bounciness".
Definition: director.h:120
BlamVector3 camera_front
The calculated point representing the front of the camera.
Definition: director.h:88
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:84
bool enable_look_spring
Whether or not look springiness is enabled. Gives camera rotation a subtle "bounciness".
Definition: director.h:125
float look_sensetivity_vertical
The camera's vertical look sensetivity.
Definition: director.h:108
float look_sensetivity_horizontal
The camera's horizontal look sensetivity.
Definition: director.h:109