#include <geometry.h>
Public Member Functions | |
CuboidGeometry () | |
~CuboidGeometry () override | |
void | SetSize (Vector3 size) |
GeometryType | GetGeometryType () const override |
VertexBuffer | GetVertexBuffer (Allocator &allocator) const override |
void | BindToCommand (const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, RenderPass &pass) const override |
![]() | |
virtual | ~Geometry () |
virtual void | SetJointsTexture (const std::shared_ptr< Texture > &texture) |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< CuboidGeometry > | MakeCuboid (Vector3 size) |
static std::shared_ptr< Geometry > | MakeVertexBuffer (VertexBuffer vertex_buffer, bool is_skinned) |
static std::shared_ptr< Geometry > | MakeFromFlatbuffer (const fb::MeshPrimitive &mesh, Allocator &allocator) |
Definition at line 54 of file geometry.h.
|
default |
|
overridedefault |
|
overridevirtual |
Implements impeller::scene::Geometry.
Definition at line 163 of file geometry.cc.
References impeller::HostBuffer::EmplaceUniform(), impeller::scene::SceneContext::GetContext(), GetVertexBuffer(), and impeller::RenderPass::SetVertexBuffer().
|
overridevirtual |
Implements impeller::scene::Geometry.
Definition at line 136 of file geometry.cc.
References impeller::scene::kUnskinned.
|
overridevirtual |
Implements impeller::scene::Geometry.
Definition at line 141 of file geometry.cc.
References impeller::VertexBufferBuilder< VertexType_, IndexType_ >::AddVertices(), impeller::VertexBufferBuilder< VertexType_, IndexType_ >::CreateVertexBuffer(), and impeller::Color::White().
Referenced by BindToCommand().
void impeller::scene::CuboidGeometry::SetSize | ( | Vector3 | size | ) |
Definition at line 131 of file geometry.cc.