|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| QuadGeometry MayaFlux::Kinesis::generate_quad | ( | glm::vec2 | position = glm::vec2(0.0F), |
| glm::vec2 | scale = glm::vec2(1.0F), |
||
| float | rotation = 0.0F |
||
| ) |
Generate a textured quad centred on the origin.
| position | Translation in XY (z remains 0). Default: no translation. |
| scale | Extents in XY before rotation. Default: {1,1} → NDC-spanning quad. |
| rotation | Rotation angle in radians around Z axis. Default: 0. |
UV origin is bottom-left (0,1) to match Vulkan image layout. Base vertices sit at ±scale before rotation and translation are applied.
Definition at line 665 of file GeometryPrimitives.cpp.
References generate_quad(), and MayaFlux::Kinesis::QuadGeometry::layout.
Referenced by MayaFlux::Buffers::TextureBuffer::generate_default_quad(), MayaFlux::Buffers::NodeTextureBuffer::generate_fullscreen_quad(), generate_quad(), and MayaFlux::Buffers::TextureBuffer::generate_quad_with_transform().
Here is the call graph for this function:
Here is the caller graph for this function: