skybox
This commit is contained in:
parent
17ba5bfe64
commit
57685ed075
20 changed files with 282 additions and 13 deletions
|
|
@ -60,3 +60,14 @@ void GBGLSetLight(GBGL gl) {
|
|||
|
||||
glLightfv(GL_LIGHT0, GL_POSITION, f);
|
||||
}
|
||||
|
||||
void GBGLPolygon(GBGL gl, int pairs, GBVector3* vert, GBVector2* tex) {
|
||||
int i;
|
||||
|
||||
glBegin(GL_POLYGON);
|
||||
for(i = 0; i < pairs; i++) {
|
||||
if(tex != NULL) glTexCoord2f(tex[i][0], tex[i][1]);
|
||||
glVertex3f(vert[i][0], vert[i][1], vert[i][2]);
|
||||
}
|
||||
glEnd();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue