diff --git a/2012-11291.png b/2012-11291.png new file mode 100644 index 0000000..ca2b82c Binary files /dev/null and b/2012-11291.png differ diff --git a/Sphere.h b/Sphere.h index 54097ba..22d5f3c 100644 --- a/Sphere.h +++ b/Sphere.h @@ -7,6 +7,10 @@ void drawSphere(){ float pos[3] = {-1.5,0,0}; float size = 0.5; + + + + glPushMatrix(); glTranslatef(pos[0], pos[1], pos[2]); glColor3f(color[0], color[1], color[2]); diff --git a/main.cpp b/main.cpp index e7b34b6..80a87ea 100644 --- a/main.cpp +++ b/main.cpp @@ -8,7 +8,8 @@ void renderScene() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(45.0f, 1.0f, 0.1f, 100.0f); + gluPerspective(30.0f, 1.0f, 0.1f, 100.0f); + //gluPerspective(45.0f, 1.0f, 0.1f, 100.0f); glMatrixMode(GL_MODELVIEW); glLoadIdentity();