NDK class that represents the component for graphics.
More...
Inherits Ndk::Component< ComponentType >, and Nz::HandledObject< T >.
|
static ComponentIndex | componentIndex |
|
NDK class that represents the component for graphics.
◆ GraphicsComponent()
Ndk::GraphicsComponent::GraphicsComponent |
( |
const GraphicsComponent & |
graphicsComponent | ) |
|
|
inline |
◆ AddToRenderQueue()
Adds the renderable elements to the render queue.
- Parameters
-
renderQueue | Queue to be added |
◆ Attach() [1/2]
Attaches a renderable to the entity.
- Parameters
-
renderable | Reference to a renderable element |
renderOrder | Render order of the element |
◆ Attach() [2/2]
Attaches a renderable to the entity with a specific matrix.
- Parameters
-
renderable | Reference to a renderable element |
localMatrix | Local matrix that will be applied to the instanced renderable |
renderOrder | Render order of the element |
◆ Detach()
Detaches a renderable to the entity.
- Parameters
-
renderable | Reference to a renderable element |
◆ DoesRequireRealTimeReflections()
bool Ndk::GraphicsComponent::DoesRequireRealTimeReflections |
( |
| ) |
const |
|
inline |
Checks if this graphics component requires real-time reflections to be generated.
If any of the materials attached to a GraphicsComponent (via the attached instanced renderable) needs real-time reflections, this function will return true.
- Returns
- True if real-time reflections needs to be generated or false
◆ GetAttachedRenderableCount()
std::size_t Ndk::GraphicsComponent::GetAttachedRenderableCount |
( |
| ) |
const |
|
inline |
Gets the number of renderable elements attached to the entity.
- Returns
- Number of renderable elements
◆ GetAttachedRenderables()
void Ndk::GraphicsComponent::GetAttachedRenderables |
( |
RenderableList * |
renderables | ) |
const |
|
inline |
Gets the set of renderable elements.
- Parameters
-
renderables | Pointer to the list of renderables |
◆ GetBoundingVolume()
Gets the bouding volume of the entity.
- Returns
- A constant reference to the bounding volume
The documentation for this class was generated from the following files:
- SDK/include/NDK/Components/GraphicsComponent.hpp
- SDK/include/NDK/Components/GraphicsComponent.inl
- SDK/src/NDK/Components/GraphicsComponent.cpp