Advertisement

OpenGL

Started by November 14, 2000 01:10 PM
3 comments, last by Bezzant 24 years ago
Right...I have asked before but am still stuck (sorry) but I can''t make a sphere! I can make one using the GLUT library
  
    glutWireSphere(0.2, 8.0, 10.0)
  
Well something like that... can''t remember!! but how do you make a sphere in a Win32 app? loads of triangle, maths.h, and some code! The code is where I get stuck (you''ll have to forgive me!...I''m a newbie!) ....Wait theres more! The Red Book....OpenGL Programming Guide does it only focus on GLUT? .....More again! Does anyone know of any links to sites with info on making programs for palm tops? (you know them little PSION computer) Thanks all for your help Alan IF YA SMELL... WHAT THE BEZZ IS COOKIN''''
Depends what you mean by "focus on GLUT" all the programs are written in GLUT which is cool cos they can be compiled for any platform.
You can apply all the stuff to Win32 code too... it should be fairly easy.
I like GLUT.
Advertisement
included in the full download of glut is its source code u can check how glut makes its spheres

http://members.xoom.com/myBollux
Here
Click Here



Open mouth, insert foot
Hehe that''s my post! Anyway here is how I finnally come with an easy sphere :

at the top:
GLUquadricObj *quadratic;

at the init:
quadratic=gluNewQuadric();
gluQuadricNormals(quadratic, GLU_SMOOTH);

in the drawscene:
gluSphere(quadratic,0.1f,32,32);

This topic is closed to new replies.

Advertisement