Spin showing spinning quad but not LogoBox
This commit is contained in:
1 parent
e423d46c3e
commit
70e737e78f
3 files changed
+24
-1
No files matched your search
+17
-1
@@ -7,9 +7,21 @@
|
||||
bool Spin::expose (GnomeScreensaver & gs)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
glPushMatrix();
|
||||
glTranslatef(0, 0, -3.0);
|
||||
|
||||
glRotatef(gs.getTicks() / 1000.0 * 360.0 / 4.0, 0, 1, 0);
|
||||
m_logobox.draw();
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
glColor3f(1, 0.6, 0);
|
||||
glNormal3f(0, 0, 1);
|
||||
glVertex2f(1, 1);
|
||||
glVertex2f(-1, 1);
|
||||
glVertex2f(-1, -1);
|
||||
glVertex2f(1, 0);
|
||||
glEnd();
|
||||
glPopMatrix();
|
||||
|
||||
return true;
|
||||
@@ -25,7 +37,11 @@ bool Spin::configure (GnomeScreensaver & gs, int width, int height)
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
gluLookAt(0, 0, 0, 0, 0, 4, 0, 1, 0);
|
||||
// gluLookAt(0, 0, 0, 0, 0, 4, 0, 1, 0);
|
||||
|
||||
glShadeModel(GL_SMOOTH);
|
||||
glEnable(GL_LIGHTING);
|
||||
glEnable(GL_LIGHT0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user