How do I translate single objects in OpenGL 3.x?

前端 未结 2 1899
时光说笑
时光说笑 2020-12-23 15:20

I have a bit of experience writing OpenGL 2 applications and want to learn using OpenGL 3. For this I\'ve bought the Addison Wesley \"Red-book\" and \"Orange-book\" (GLSL) w

2条回答
  •  感动是毒
    2020-12-23 15:49

    Those functions are apparently deprecated, but are technically still perfectly functional and indeed will compile. So you can certainly still use the translate3f(...) etc functions.

    HOWEVER, this tutorial has a good explanation of how the new shaders and so on work, AND for multiple objects in space.

    You can create x arrays of vertexes, and bind them into x VAO objects, and you render the scene from there with shaders etc...meh, it's easier for you to just read it - it is a really good read to grasp the new concepts.

    Also, the OpenGL 'Red Book' as it is called has a new release - The Official Guide to Learning OpenGL, Versions 3.0 and 3.1. It includes 'Discussion of OpenGL’s deprecation mechanism and how to verify your programs for future versions of OpenGL'.

    I hope that's of some assistance!

提交回复
热议问题