score::gfx::TexturedTriangle Struct Referencefinal

A triangle mesh with positions and texture coordinates. More...

Inheritance diagram for score::gfx::TexturedTriangle:
score::gfx::TexturedMesh score::gfx::BasicMesh score::gfx::Mesh

Detailed Description

A triangle mesh with positions and texture coordinates.

This is the main mesh being used for rendering full-screen effects.

Public Member Functions

 TexturedTriangle (bool flipped=false)
 
void setupBindings (const MeshBuffers &bufs, QRhiCommandBuffer &cb) const noexcept override
 
- Public Member Functions inherited from score::gfx::TexturedMesh
 TexturedMesh (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.
 
- Public Member Functions inherited from score::gfx::BasicMesh
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 ()
 

Static Public Attributes

static constexpr const float data []
 
static constexpr const float flipped_y_data []
 

Additional Inherited Members

- Public Types inherited from score::gfx::BasicMesh
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 Attributes inherited from score::gfx::BasicMesh
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 {}
 

Member Data Documentation

◆ data

constexpr const float score::gfx::TexturedTriangle::data[]
staticconstexpr
Initial value:
= {
-1, -1, 3, -1, -1, 3,
0, 0, 2, 0, 0, 2}

◆ flipped_y_data

constexpr const float score::gfx::TexturedTriangle::flipped_y_data[]
staticconstexpr
Initial value:
= {
-1, -1, 3, -1, -1, 3,
0, 2, 2, 2, 0, 0}

The documentation for this struct was generated from the following files: