When I first did OpenGL back in University, we used the glBegin() and glEnd() paradigm. The full code can be seen on Github here. On the other hand, if you find anything wrong with what I’m written, please point it out so it can be corrected. However, I will attempt to answer the best way I can. If you have any questions, please feel free to ask, but be aware, I’m very new to OpenGL, so writing this series is very much part of my learning experience. I expect my explanations to only be commentary on the information already provided in that series and discussion on some of the finer points on JRuby and Java library integration as well. ![]() I would suggest for the complete theory behind this code, read the linked section before going through the JRuby code. Just to follow along as well, I’m moving through the Learning Modern 3D Graphics Programming online book to learn OpenGL (again), so the OpenGL examples I will be displaying will be ports from the code that that is providing. Now we get to actually display a triangle. In Part 1 we created a window, nothing too fancy. ![]() JRuby, LWJGL & OpenGL – Drawing a Triangle
0 Comments
Leave a Reply. |