New answers tagged

0

I have found an answer!!! After searching far and wide through the depths of the internet, I have found the following method. It works perfectly! public void setIcon(String path) throws Exception{ IntBuffer w = memAllocInt(1); IntBuffer h = memAllocInt(1); IntBuffer comp = memAllocInt(1); // Icons { ...


0

You could just try leaving VAO calls out of your code and bind VBOs etc. where VAOs are bound in the tutorials.


2

Thats because glBegin, glVertex2f and glColor3f are legacy functions which are deprecated. You may still use them if you request a backwards-compatible context, however I'd recommend you stick to your core-context (which is not backwards compatible) and learn the more powerful modern OpenGL. There is a pretty good modern OpenGL tutorial series on opengl-...



Top 50 recent answers are included