|
CoriEngine
|
Here are stored all predefined ImGui window presets, you can only use this functions in Layer OnImGuiRender method, using it anywhere else will result in a crash. More...
Functions | |
| static void | Box2dDebugDraw (const glm::vec2 cameraSize, const glm::vec2 cameraPos, const int32_t pixelsPerMeter, Core::Layer *layer, const bool mouseDrag, const float mouseForce=1000.0f) |
| Enables the debug draw of Box2D physics. | |
| static void | ScreenModeAndResolutionDropdowns () |
| Displays a window mode and screen mode selection window. | |
| static void | FpsCounter (const Core::GameTimer &timer) |
Here are stored all predefined ImGui window presets, you can only use this functions in Layer OnImGuiRender method, using it anywhere else will result in a crash.
|
static |
Enables the debug draw of Box2D physics.
| cameraSize | Size of the debug cameras viewport, use GetSize() with your main Graphics::CameraController to align the main camera and debug camera. |
| cameraPos | Position of the debug camera, use GetSize() with your main Graphics::CameraController to align the main camera and debug camera. |
| pixelsPerMeter | Pixels in main camera per meter range. Use CORI_PIXELS_PER_METER. |
| layer | Pointer to the layer you're calling this function from. |
| mouseDrag | Enable or disable dynamic object dragging with a mouse. |
| mouseForce | Force to apply when using mouse drag. |
Definition at line 21 of file ImGuiPresets.hpp.

|
static |
|
static |
Displays a window mode and screen mode selection window.
Definition at line 40 of file ImGuiPresets.hpp.
