Loading...
Searching...
No Matches
score::gfx::BasicMesh Struct Referenceabstract
Inheritance diagram for score::gfx::BasicMesh:
Public Types | |
| using | pip = QRhiGraphicsPipeline |
Public Types inherited from score::gfx::Mesh | |
| 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 > |
Public Member Functions | |
| 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 |
| virtual void | setupBindings (const MeshBuffers &bufs, QRhiCommandBuffer &cb) const noexcept=0 |
| Mesh () | |
Public Member Functions inherited from score::gfx::Mesh | |
| virtual Flags | flags () const noexcept=0 |
| virtual const char * | defaultVertexShader () const noexcept=0 |
| A basic vertex shader that is going to work with this mesh. | |
| bool | hasGeometryChanged (int64_t &renderer) const noexcept |
Public Attributes | |
| 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 |
| std::span< const float > | vertexArray |
| int | vertexCount {} |
Public Attributes inherited from score::gfx::Mesh | |
| ossia::geometry_filter_list_ptr | filters |
| std::atomic_int64_t | dirtyGeometryIndex {-1} |
Member Function Documentation
◆ draw()
|
overridevirtualnoexcept |
Implements score::gfx::Mesh.
◆ init()
|
overridevirtualnoexcept |
Implements score::gfx::Mesh.
◆ preparePipeline()
|
overridevirtualnoexcept |
Implements score::gfx::Mesh.
◆ update()
|
overridevirtualnoexcept |
Implements score::gfx::Mesh.
The documentation for this struct was generated from the following files:
- Mesh.hpp
- Mesh.cpp
Public Types inherited from