 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_SCENE_GEOMETRY_H_
6 #define FLUTTER_IMPELLER_SCENE_GEOMETRY_H_
10 #include "flutter/fml/macros.h"
19 #include "impeller/scene/importer/scene_flatbuffers.h"
27 class UnskinnedVertexBufferGeometry;
39 const fb::MeshPrimitive& mesh,
136 std::shared_ptr<Texture> joints_texture_;
147 #endif // FLUTTER_IMPELLER_SCENE_GEOMETRY_H_
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, RenderPass &pass) const override
~SkinnedVertexBufferGeometry() override
virtual void SetJointsTexture(const std::shared_ptr< Texture > &texture)
static std::shared_ptr< CuboidGeometry > MakeCuboid(Vector3 size)
UnskinnedVertexBufferGeometry()
SkinnedVertexBufferGeometry()
GeometryType GetGeometryType() const override
~CuboidGeometry() override
GeometryType GetGeometryType() const override
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
virtual VertexBuffer GetVertexBuffer(Allocator &allocator) const =0
GeometryType GetGeometryType() const override
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
void SetVertexBuffer(VertexBuffer vertex_buffer)
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, RenderPass &pass) const override
An object that allocates device memory.
static std::shared_ptr< Geometry > MakeFromFlatbuffer(const fb::MeshPrimitive &mesh, Allocator &allocator)
static std::shared_ptr< Geometry > MakeVertexBuffer(VertexBuffer vertex_buffer, bool is_skinned)
~UnskinnedVertexBufferGeometry() override
Render passes encode render commands directed as one specific render target into an underlying comman...
void SetVertexBuffer(VertexBuffer vertex_buffer)
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, RenderPass &pass) const override
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
void SetJointsTexture(const std::shared_ptr< Texture > &texture) override
virtual void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, RenderPass &pass) const =0
A 4x4 matrix using column-major storage.
void SetSize(Vector3 size)
virtual GeometryType GetGeometryType() const =0