Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- glBegin(GL_QUADS);
- for (int a = 0; a < 6; ++a)
- {
- for (int b = 0; b < 4; ++b)
- {
- int currentVer = cube.quad[a].ver[b];
- glColor4fv(cube.ver[currentVer].col);
- glVertex3fv(cube.ver[currentVer].pos);
- }
- }
- glEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement