#include <mesh.h>
Definition at line 19 of file mesh.h.
◆ Mesh() [1/2]
impeller::scene::Mesh::Mesh |
( |
| ) |
|
|
default |
◆ ~Mesh()
impeller::scene::Mesh::~Mesh |
( |
| ) |
|
|
default |
◆ Mesh() [2/2]
impeller::scene::Mesh::Mesh |
( |
Mesh && |
mesh | ) |
|
|
default |
◆ AddPrimitive()
void impeller::scene::Mesh::AddPrimitive |
( |
Primitive |
mesh_ | ) |
|
Definition at line 21 of file mesh.cc.
21 {
22 if (
mesh.geometry ==
nullptr) {
24 }
25 if (
mesh.material ==
nullptr) {
27 }
28
29 primitives_.push_back(std::move(
mesh));
30}
◆ GetPrimitives()
Definition at line 32 of file mesh.cc.
32 {
33 return primitives_;
34}
◆ operator=()
Mesh & impeller::scene::Mesh::operator= |
( |
Mesh && |
mesh | ) |
|
|
default |
◆ Render()
bool impeller::scene::Mesh::Render |
( |
SceneEncoder & |
encoder, |
|
|
const Matrix & |
transform, |
|
|
const std::shared_ptr< Texture > & |
joints |
|
) |
| const |
Definition at line 36 of file mesh.cc.
38 {
39 for (
const auto&
mesh : primitives_) {
40 mesh.geometry->SetJointsTexture(joints);
42 .label = "Mesh Primitive",
44 .geometry =
mesh.geometry.get(),
45 .material =
mesh.material.get(),
46 };
48 }
49 return true;
50}
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
The documentation for this class was generated from the following files: