mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
IrrlichtMt: Move OpenGL 3+ transformation matrix to shaders (#15591)
This replaces annoying calculations on C++-side and eases the implementation of 2D geometry batch rendering a lot.
This commit is contained in:
parent
412cc96bc9
commit
35bc217ba8
5 changed files with 107 additions and 97 deletions
|
@ -316,6 +316,9 @@ protected:
|
|||
void drawElements(GLenum primitiveType, const VertexType &vertexType, const void *vertices, int vertexCount, const u16 *indices, int indexCount);
|
||||
void drawElements(GLenum primitiveType, const VertexType &vertexType, uintptr_t vertices, uintptr_t indices, int indexCount);
|
||||
|
||||
void drawGeneric(const void *vertices, const void *indexList, u32 primitiveCount,
|
||||
E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType);
|
||||
|
||||
void beginDraw(const VertexType &vertexType, uintptr_t verticesBase);
|
||||
void endDraw(const VertexType &vertexType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue