libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::TexturedQuad::Instance Struct Reference

Data layout for the attributes of a single instance of the mesh. More...

#include <donut/graphics/TexturedQuad.hpp>

Public Attributes

mat3 transformation
 Transformation to apply to the vertex positions. More...
 
vec4 textureOffsetAndScale
 Texture offset (xy) and texture scale (zw) to apply to the texture coordinates before sampling the texture. More...
 
vec4 tintColor
 Tint color to use when rendering. More...
 

Detailed Description

Data layout for the attributes of a single instance of the mesh.

Note
Meets the requirements of the donut::graphics::mesh_instance concept.

Member Data Documentation

◆ transformation

mat3 donut::graphics::TexturedQuad::Instance::transformation

Transformation to apply to the vertex positions.

◆ textureOffsetAndScale

vec4 donut::graphics::TexturedQuad::Instance::textureOffsetAndScale

Texture offset (xy) and texture scale (zw) to apply to the texture coordinates before sampling the texture.

◆ tintColor

vec4 donut::graphics::TexturedQuad::Instance::tintColor

Tint color to use when rendering.


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