Where can I find a good online OpenGL 3.0 tutorial that doesn’t use any deprecated functionality? [closed]

Stay away from NeHe, the tutorials are hopelessly outdated and contain a lot of “problematic” stuff, too. For starting with 3.x, try those, they’re both up-to-date: Aurian (Joe Groff) Arcsynthesis (Jason L. McKesson) Update: Re-reading my own post almost 2 years later, I guess that one might find that it sounds a bit harsh. This … Read more

glVertexAttribPointer raising GL_INVALID_OPERATION

glEnableVertexAttribArray(program.getAttrib(“in_Position”)); // A call to getGLError() at this point prints nothing. glVertexAttribPointer(program.getAttrib(“in_Position”), 3, GL_FLOAT, GL_FALSE, 0, 0); // A call to getGLError() at this point prints “OpenGL error 1282”. First, there’s an obvious driver bug here, because glEnableVertexAttribArray should also have issued a GL_INVALID_OPERATION error. Or you made a mistake when you checked it. Why … Read more

OpenGL VAO best practices

VAOs act similarly to VBOs and textures with regard to how they are bound. Having a single VAO bound for the entire length of your program will yield no performance benefits because you might as well just be rendering without VAOs at all. In fact it may be slower depending on how the implementation intercepts … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)