![]() The new way: gl::EnableVertexAttribArray(0) Gl::VertexAttribPointer(0, 3, gl::FLOAT, false, 0, nullptr) ![]() The old way: gl::EnableVertexAttribArray(0) I'm currently having a bit of trouble porting vertex arrays from the old OpenGL 3.3 way to the new OpenGL 4.3 way, as seen in Wolff's book on page 31. This isn't a problem, as I follow OpenGL 3.3, and modify whenever my other resources introduce a new way. OpenGL 4 Shading Language Cookbook (Second Edition)īoth of these books work with OpenGL 4.3, but teaches OpenGL 3.3. ![]() I'm building my own game engine in C++14 with a core OpenGL 4.3 back-end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |