|
| static void | Create () |
| | create context
|
| static void | Setup (const Graphics::GraphicsEntityId id, const Resources::ResourceName &name, const Util::StringAtom &tag, std::function< void()> finishedCallback, const Graphics::StageMask stage=Graphics::PRIMARY_STAGE_MASK|Graphics::SHADOW_STAGE_MASK) |
| | Setup from a model resource.
|
| static void | Setup (const Graphics::GraphicsEntityId id, const Math::mat4 transform, const Math::bbox &boundingBox, const Materials::MaterialId material, const CoreGraphics::MeshId mesh, const IndexT primitiveGroup, const Graphics::StageMask stageMask=Graphics::PRIMARY_STAGE_MASK|Graphics::SHADOW_STAGE_MASK) |
| | Setup with a mesh and material.
|
| static void | Setup (const Graphics::GraphicsEntityId id, const Util::Array< Math::mat4 > &transforms, const Util::Array< CoreGraphics::MeshId > &meshes, const Util::Array< Materials::MaterialId > &materials, const Util::Array< Math::bbox > &boundingBoxes, const Util::Array< IndexT > &primitiveGroups, const Graphics::StageMask stageMask=Graphics::PRIMARY_STAGE_MASK|Graphics::SHADOW_STAGE_MASK) |
| | Setup with a list of meshes, materials, bounding boxes and transforms.
|
| static void | ChangeModel (const Graphics::GraphicsEntityId id, const Resources::ResourceName &name, const Util::StringAtom &tag, std::function< void()> finishedCallback) |
| | change model for existing entity
|
| static void | ChangeMaterial (const Graphics::GraphicsEntityId id, const Materials::MaterialId material) |
| | Changes the material for the first node in the model.
|
| static const Models::ModelId | GetModel (const Graphics::GraphicsEntityId id) |
| | get model
|
| static void | SetTransform (const Graphics::GraphicsEntityId id, const Math::mat4 &transform) |
| | set the transform for a model
|
| static Math::mat4 | GetTransform (const Graphics::GraphicsEntityId id) |
| | get the transform for a model
|
| static Math::mat4 | GetTransform (const Graphics::ContextEntityId id) |
| | get the transform for a model
|
| static void | SetStageMask (const Graphics::GraphicsEntityId id, const Graphics::StageMask stageMask) |
| | Set the stage where this model can be seen.
|
| static Math::bbox | ComputeBoundingBox (const Graphics::GraphicsEntityId id) |
| | Compute the bounding box for a model.
|
| static IndexT | GetNodeIndex (const Graphics::GraphicsEntityId id, const Util::StringAtom &name) |
| | Get node index based on name.
|
| static MaterialInstanceContext & | SetupMaterialInstanceContext (const Graphics::GraphicsEntityId id, const IndexT nodeIndex, const MaterialTemplatesGPULang::BatchGroup batch) |
| | Setup material instance context.
|
| static MaterialInstanceContext & | SetupMaterialInstanceContext (const Graphics::GraphicsEntityId id, const MaterialTemplatesGPULang::BatchGroup batch) |
| | Setup material instance context.
|
| static CoreGraphics::ConstantBufferOffset | AllocateInstanceConstants (const Graphics::GraphicsEntityId id, const IndexT nodeIndex, const Materials::BatchIndex batch) |
| | Allocate constant memory for instance constants in this frame.
|
| static CoreGraphics::ConstantBufferOffset | AllocateInstanceConstants (const Graphics::GraphicsEntityId id, const Materials::BatchIndex batch) |
| | Allocate constant memory for instance constants in this frame.
|
| static void | SetAlwaysVisible (const Graphics::GraphicsEntityId id) |
| | Set all nodes in the model to always be visible.
|
| static void | UpdateTransforms (const Graphics::FrameContext &ctx) |
| | runs before frame is updated
|
| static void | WaitForWork (const Graphics::FrameContext &ctx) |
| | Wait for thread work to finish.
|
| static void | OnRenderDebug (uint32_t flags) |
| | debug rendering
|
| static const Models::ModelId | GetModel (const Graphics::ContextEntityId id) |
| | get model
|
| static const NodeInstanceRange & | GetModelRenderableRange (const Graphics::GraphicsEntityId id) |
| | Get model node instance states.
|
| static const Graphics::StageMask | GetModelStageMask (const Graphics::GraphicsEntityId id) |
| | Get stage for model.
|
| static const NodeInstanceRange & | GetModelTransformableRange (const Graphics::GraphicsEntityId id) |
| | Get model node instance transformables.
|
| static const Util::Array< NodeInstanceState > & | GetModelRenderableStates () |
| | Get array to all model node states.
|
| static const Util::Array< Math::bbox > & | GetModelRenderableBoundingBoxes () |
| | Get array to all model node instace bounding boxes.
|
| static const Util::Array< NodeInstanceFlags > & | GetModelRenderableFlags () |
| | Get array to all model node instance flags.
|
| static const ModelInstance::Renderable & | GetModelRenderables () |
| | Get node renderable context.
|
| static const ModelInstance::Transformable & | GetModelTransformables () |
| | Get node transformable context.
|
| static bool | IsLoaded (const Graphics::GraphicsEntityId id) |
| | Get if model is loaded.
|