Vp::Manipulators
#include "Viewport/Manipulators.h"
Public Classes
Name | |
---|---|
class | Manipulator |
Public Types
Name | |
---|---|
enum class | ManipulatorType { UNKNOWN, UNIMPLEMENTED, TRANSLATE, ROTATE_X, ROTATE_Y, ROTATE_Z, ROTATE, SCALE, ORTHO, PERSPECTIVE, FRUSTUM, LOOKAT} |
Public Functions
Name | |
---|---|
Manipulators(Viewport * viewport) | |
void | addManipulator(std::shared_ptr< Core::Node > node) |
void | clearManipulators() |
bool | drawManipulators(glm::vec2 windowPos, glm::vec2 windowSize) |
bool | drawViewAxes(glm::vec2 windowPos, glm::vec2 windowSize) |
Public Types Documentation
enum ManipulatorType
Enumerator | Value | Description |
---|---|---|
UNKNOWN | ||
UNIMPLEMENTED | ||
TRANSLATE | ||
ROTATE_X | ||
ROTATE_Y | ||
ROTATE_Z | ||
ROTATE | ||
SCALE | ||
ORTHO | ||
PERSPECTIVE | ||
FRUSTUM | ||
LOOKAT |
Public Functions Documentation
function Manipulators
cpp
explicit Manipulators(
Viewport * viewport
)
explicit Manipulators(
Viewport * viewport
)
function addManipulator
cpp
void addManipulator(
std::shared_ptr< Core::Node > node
)
void addManipulator(
std::shared_ptr< Core::Node > node
)
function clearManipulators
cpp
void clearManipulators()
void clearManipulators()
function drawManipulators
cpp
bool drawManipulators(
glm::vec2 windowPos,
glm::vec2 windowSize
)
bool drawManipulators(
glm::vec2 windowPos,
glm::vec2 windowSize
)
Parameters:
- windowPos
- windowSize
Return: Whether manipulators have been interacted with.
function drawViewAxes
cpp
bool drawViewAxes(
glm::vec2 windowPos,
glm::vec2 windowSize
)
bool drawViewAxes(
glm::vec2 windowPos,
glm::vec2 windowSize
)
Updated on 2024-11-06 at 20:16:53 +0000