rosaqq / lekek

Java game engine project with LWJGL.
MIT License
0 stars 0 forks source link

HudElement #39

Closed rosaqq closed 3 years ago

rosaqq commented 3 years ago

Create HudElement to define specific Mesh HUD render implementation:

int drawMode = GL_TRIANGLES;
...
Matrix4f ortho = transformation.getOrthoProjectionMatrix(0, window.getWidth(), window.getHeight(), 0);
Matrix4f transformationResult = Transformation.getOrtoProjModelMatrix(gameItem, ortho);
hudShaderProgram.setUniform("projModelMatrix", transformationResult );

image

rosaqq commented 3 years ago

HudElement is actually a GameItemMesh but with a different render implementation:

image