|
| enum class | AreaLightShape : uint8_t { AreaLightShape::Rectangle = 0
, AreaLightShape::Disc = 1
} |
| enum class | BodyType { BodyType::Static
, BodyType::Kinematic
, BodyType::Dynamic
} |
| enum class | CompareOp {
CompareOp::Equal
, CompareOp::NotEqual
, CompareOp::Greater
, CompareOp::GreaterEqual
,
CompareOp::Less
, CompareOp::LessEqual
} |
| enum class | EventCategory {
EventCategory::None = (1 << 0)
, EventCategory::Application = (1 << 1)
, EventCategory::Input = (1 << 2)
, EventCategory::Keyboard = (1 << 3)
,
EventCategory::Mouse = (1 << 4)
, EventCategory::MouseButton = (1 << 5)
} |
| enum class | EventType {
EventType::Unknown = 0
, EventType::WindowOpen
, EventType::WindowClose
, EventType::WindowResize
,
EventType::WindowFullscreen
, EventType::WindowFocus
, EventType::WindowLostFocus
, EventType::WindowMoved
,
EventType::Tick
, EventType::Update
, EventType::Render
, EventType::KeyPressed
,
EventType::KeyReleased
, EventType::KeyTyped
, EventType::MousePressed
, EventType::MouseReleased
,
EventType::MouseMoved
, EventType::MouseScrolled
} |
| enum class | GraphicsQuality {
GraphicsQuality::Off
, GraphicsQuality::Low
, GraphicsQuality::Medium
, GraphicsQuality::High
,
GraphicsQuality::Ultra
} |
| enum class | MaterialRenderMode : uint8_t { MaterialRenderMode::Opaque = 0
, MaterialRenderMode::Cutout = 1
, MaterialRenderMode::Transparent = 2
} |
| enum | MessageBoxReturn { Ok = 0
, Yes = 1
, No = 2
, Cancel = 3
} |
| enum | MessageBoxType : unsigned int { Info = 0x00000040u
, Warning = 0x00000020u
, Error = 0x00000010u
} |
| enum class | ProjectionType { ProjectionType::Perspective
, ProjectionType::Orthographic
} |
| enum class | SceneState {
SceneState::Unloaded
, SceneState::Loading
, SceneState::Active
, SceneState::Paused
,
SceneState::Unloading
} |
| enum class | SerializationFormat { SerializationFormat::Binary
, SerializationFormat::JSON
, SerializationFormat::YAML
, SerializationFormat::XML
, SerializationFormat::Unknown
} |
| enum class | TextureFilter {
TextureFilter::Nearest
, TextureFilter::Bilinear
, TextureFilter::Trilinear
, TextureFilter::Anisotropic2x
,
TextureFilter::Anisotropic4x
, TextureFilter::Anisotropic8x
, TextureFilter::Anisotropic16x
, TextureFilter::Linear = Trilinear
,
TextureFilter::Anisotropic = Anisotropic16x
} |
| enum class | TextureFormat {
TextureFormat::RGBA8
, TextureFormat::RGB8
, TextureFormat::BGRA8
, TextureFormat::DXT1
,
TextureFormat::DXT5
} |
| enum class | TextureType { TextureType::Texture2D
, TextureType::TextureCube
, TextureType::Texture3D
} |
| enum class | TextureWrapMode {
TextureWrapMode::Repeat
, TextureWrapMode::ClampToEdge
, TextureWrapMode::ClampToBorder
, TextureWrapMode::Mirror
,
TextureWrapMode::MirrorClampToEdge
} |
| enum class | VertexAttribFormat : uint8_t {
VertexAttribFormat::Float1
, VertexAttribFormat::Float2
, VertexAttribFormat::Float3
, VertexAttribFormat::Float4
,
VertexAttribFormat::UInt1
, VertexAttribFormat::Int1
} |
|
| static Material * | CreateDefaultMaterial () |
| | Fallback material for the primitive factories below, using the default shader.
|
| template<typename T, typename... Args> |
| std::shared_ptr< Delegate< Args... > > | CreateDelegate (T *obj, void(T::*func)(Args...)) |
| | Wraps a member function bound to obj into a shared Delegate.
|
| template<typename T, typename... Args> |
| void | DispatchEvent (Args &&... args) |
| | Constructs a T from args and dispatches it through EventDispatcher.
|
| template<typename T> |
| static std::pair< int, float > | FindKeyframe (const std::vector< Keyframe< T > > &keys, float time) |
| | Finds the keyframe pair straddling time and the lerp factor between them.
|
| template<typename Pred> |
| static GameObject * | FindOwned (GameObject *obj, const Pred &pred) |
| | Depth-first search of obj and the descendants it owns.
|
| template<typename Fn> |
| static void | ForEachOwned (GameObject *obj, Fn &fn) |
| | Calls fn on obj and the descendants it owns, skipping scene owned ones.
|
| static Math::Vector3D | LerpVec3 (const Math::Vector3D &a, const Math::Vector3D &b, float t) |
| | Componentwise vector lerp.
|
| template<typename T1, typename T2> |
| Pair< T1, T2 > | makePair (T1 &&first, T2 &&second) |
| | Creates a Pair object with the given values.
|
| void | MessageBox (const char *Title, const char *Message, MessageBoxType Type) |
| | Fire-and-forget OS message box; no return value, no custom buttons.
|
| template<typename T1, typename T2> |
| bool | operator!= (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| template<typename T1, typename T2> |
| bool | operator< (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| std::ostream & | operator<< (std::ostream &os, const Event &e) |
| template<typename T1, typename T2> |
| bool | operator<= (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| template<typename T1, typename T2> |
| bool | operator== (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| template<typename T1, typename T2> |
| bool | operator> (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| template<typename T1, typename T2> |
| bool | operator>= (const Pair< T1, T2 > &lhs, const Pair< T1, T2 > &rhs) |
| static void | RegisterTree (GameObject *obj, LightManager *lights, Physics::PhysicsWorld *world) |
| MessageBoxReturn | ShowMessageBox (const char *Title, const char *Message, MessageBoxType Type, MessageBoxColorScheme scheme=MessageBoxColorScheme()) |
| | Blocking Yes/No/Cancel dialog with a custom color scheme; returns the pressed button.
|
| static void | UnregisterTree (GameObject *obj, LightManager *lights, Physics::PhysicsWorld *world) |
| | Unregisters lights and colliders in obj's owned subtree.
|
Root namespace for everything the engine exposes.
Application and scene lifecycle, the GameObject/Component object model, runtime resources (meshes, materials, textures, models), lighting, culling, and the RefPtr ownership types all live here. Your game code stays in its own namespace or at global scope and reaches into Sleak.