score::gfx::Mesh Struct Referenceabstract
Data model for meshes. More...
Inheritance diagram for score::gfx::Mesh:
Detailed Description
Data model for meshes.
Public Types | |
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 Flags | flags () const noexcept=0 |
virtual MeshBuffers | init (QRhi &rhi) const noexcept=0 |
virtual void | update (MeshBuffers &bufs, QRhiResourceUpdateBatch &cb) const noexcept=0 |
virtual void | preparePipeline (QRhiGraphicsPipeline &pip) const noexcept=0 |
virtual void | draw (const MeshBuffers &bufs, QRhiCommandBuffer &cb) 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 | |
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