Some progress in #C++ and #OpenGL! I made a custom Material class that lets me assign textures and control how objects react to light. Also, I've spent four hours integrating ImGUI, just for the sake of that silly window at the corner... yeah, sounds like me...
#programming #gamedev #indiegamedev
#programming #gamedev #indiegamedev
Comments
I’m very interested in those steps, i know they can be confusing for less experienced programmers.
For the grid, I generated vertex pairs along the edges rather than at every intersection. This way, I only needed vertices for the lines themselves, not each crossing point.
Then, I simply rendered them using glDrawArrays in GL_LINES mode. This drawing below illustrates the approach