原创文章,转载请注明: 转载自慢慢的回味
本文链接地址: Lesson 2 Your First Polygon
Using the source code from the first tutorial, we will now add code to create a Triangle, and a Square on the screen. I know you’re probably thinking to yourself “a triangle and square… oh joy”, but it really is a BIG deal. Just about everything you create in OpenGL will be created out of triangles and squares. If you don’t understand how to create a simple little triangle in Three Dimensional space, you’ll be completely lost down the road. So read through this chapter and learn. 本作品采用知识共享署名 4.0 国际许可协议进行许可。