score::gfx::PlainTriangle Struct Referencefinal
A triangle mesh with only positions. More...
Inheritance diagram for score::gfx::PlainTriangle:

Detailed Description
A triangle mesh with only positions.
Static Public Member Functions | |
static const PlainTriangle & instance () noexcept | |
Static Public Attributes | |
static const constexpr float data [] = {-1, -1, 3, -1, -1, 3} | |
Additional Inherited Members | |
![]() | |
using pip = QRhiGraphicsPipeline | |
![]() | |
enum Flag { HasPosition = SCORE_FLAG(1) , HasTexCoord = SCORE_FLAG(2) , HasColor = SCORE_FLAG(3) , HasNormals = SCORE_FLAG(4) , HasTangents = SCORE_FLAG(5) } | |
using Flags = QFlags< Flag > | |
![]() | |
PlainMesh (tcb::span< const float > vtx, int count) | |
Flags flags () const noexcept override | |
const char * defaultVertexShader () const noexcept override | |
A basic vertex shader that is going to work with this mesh. | |
void setupBindings (const MeshBuffers &bufs, QRhiCommandBuffer &cb) const noexcept override | |
![]() | |
virtual MeshBuffers init (QRhi &rhi) const noexcept override | |
void update (MeshBuffers &bufs, QRhiResourceUpdateBatch &cb) const noexcept override | |
void preparePipeline (QRhiGraphicsPipeline &pip) const noexcept override | |
void draw (const MeshBuffers &bufs, QRhiCommandBuffer &cb) const noexcept override | |
Mesh () | |
![]() | |
bool hasGeometryChanged (int64_t &renderer) const noexcept | |
![]() | |
pip::Topology topology = pip::Topology::TriangleStrip | |
pip::CullMode cullMode = pip::CullMode::None | |
pip::FrontFace frontFace = pip::FrontFace::CW | |
ossia::small_vector< QRhiVertexInputBinding, 2 > vertexBindings | |
ossia::small_vector< QRhiVertexInputAttribute, 2 > vertexAttributes | |
tcb::span< const float > vertexArray | |
int vertexCount {} | |
![]() | |
ossia::geometry_filter_list_ptr filters | |
std::atomic_int64_t dirtyGeometryIndex {-1} | |
The documentation for this struct was generated from the following files:
- Mesh.hpp
- Mesh.cpp