1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00
This commit is contained in:
gjy_管
2015-06-15 20:40:15 +08:00
parent 76ffb902ce
commit a9e9909838

View File

@@ -70,3 +70,11 @@ OpenGL库是用C写的同时也支持多种语言的派生但是核心是
在OpenGL中一个对象是指一些选项的集合代表OpenGL状态的一个子集。比如我们可以有一个对象来代表绘图窗口的设置可以设置它的大小、支持的颜色位数等等。可以把对象看做一个C风格的结构体
```c++
struct object_name {
GLfloat option1;
GLuint option2;
GLchar[] name;
};
```