Draw dispatch functions.
More...
|
| file | draw.c |
| |
| file | draw.h |
| |
| static void | drawTriangles (const SRPIndexBuffer *ib, const SRPVertexBuffer *vb, const SRPFramebuffer *fb, const SRPShaderProgram *sp, SRPPrimitive primitive, size_t startIndex, size_t count) |
| |
| static void | drawLines (const SRPIndexBuffer *ib, const SRPVertexBuffer *vb, const SRPFramebuffer *fb, const SRPShaderProgram *sp, SRPPrimitive primitive, size_t startIndex, size_t count) |
| |
| static void | drawPoints (const SRPIndexBuffer *ib, const SRPVertexBuffer *vb, const SRPFramebuffer *fb, const SRPShaderProgram *sp, SRPPrimitive primitive, size_t startIndex, size_t count) |
| |
| static bool | checkOOB (const SRPIndexBuffer *ib, const SRPVertexBuffer *vb, size_t startIndex, size_t count) |
| |
| static bool | isPrimitiveTriangle (SRPPrimitive primitive) |
| |
| static bool | isPrimitiveLine (SRPPrimitive primitive) |
| |
| static bool | isPrimitivePoint (SRPPrimitive primitive) |
| |
| void | drawBuffer (const SRPIndexBuffer *ib, const SRPVertexBuffer *vb, const SRPFramebuffer *fb, const SRPShaderProgram *sp, SRPPrimitive primitive, size_t startIndex, size_t count) |
| |
Draw dispatch functions.
◆ checkOOB()
Check if the draw call tries to access out-of-bounds memory and if so, send an error message
- See also
- drawBuffer() for parameter documentation
◆ drawBuffer()
◆ drawLines()
◆ drawPoints()
◆ drawTriangles()
◆ isPrimitiveLine()
Determine if a primitive is line-based
- Parameters
-
| [in] | primitive | Primitive type |
- Returns
true if the primitive is line-based, false otherwise
◆ isPrimitivePoint()
Determine if a primitive is a point
- Parameters
-
| [in] | primitive | Primitive type |
- Returns
true if the primitive is a point, false otherwise
◆ isPrimitiveTriangle()
Determine if a primitive is triangle-based
- Parameters
-
| [in] | primitive | Primitive type |
- Returns
true if the primitive is triangle-based, false otherwise