Posted January 25, 200520 yr anyone got this file for C++...i use devC++4.9.9.0...dunno if it matters <gl\glaux.h>
January 25, 200520 yr Author ok i read over the tutorials again n it said GLAUX is old codes...if i dont use tat, wat other file woudl i use cuz right now i cant do jack wit openGL...not even draw a simple square
January 25, 200520 yr Author i searched all over google for glaux.h and it doesnt show any dls... ive seen other programs use GLUT.H...dunno if tat is usefull but i still cant find a dl for tat anywehre
January 25, 200520 yr Author not sure if this glaux.h is real but http://graphics.stanford.edu/~drussel/unstructured/shared/flexkin/glaux.h here is exactly every code inside the file #ifndef _GLAUX_H #define _GLAUX_H #include "gl/gl.h" void auxUnitDisk(); void auxUnitWireSphere(); void auxUnitSolidSphere(); void auxWireSphere (GLdouble radius); void auxSolidSphere (GLdouble radius); void auxWireCube (GLdouble size); void auxSolidCube (GLdouble size); void auxWireBox (GLdouble width, GLdouble height, GLdouble depth); void auxSolidBox (GLdouble width, GLdouble height, GLdouble depth); void auxWireTorus (GLdouble innerRadius, GLdouble outerRadius); void auxSolidTorus (GLdouble innerRadius, GLdouble outerRadius); void auxWireCylinder (GLdouble radius, GLdouble height); void auxSolidCylinder (GLdouble radius, GLdouble height); void auxWireIcosahedron (GLdouble radius); void auxSolidIcosahedron (GLdouble radius); void auxWireOctahedron (GLdouble radius); void auxSolidOctahedron (GLdouble radius); void auxWireTetrahedron (GLdouble radius); void auxSolidTetrahedron (GLdouble radius); void auxWireDodecahedron (GLdouble radius); void auxSolidDodecahedron (GLdouble radius); void auxWireCone (GLdouble base, GLdouble height); void auxSolidCone (GLdouble base, GLdouble height); void drawbox(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLenum type); #endif
January 25, 200520 yr u need to install an opengl thing for C++ that has all those type files with it, therse no point just download all the bits one by one, and by the look of that you will prob need #include "gl/gl.h" aswell. you clearly dont know what your doing so start with somthing simpler before trying to do opengl programming in c++ you have to learn to walk before you can run. P.S for openGL i use GL4Java hes the base shell code for it import java.awt.*; import java.awt.event.*; import gl4java.GLContext; import gl4java.awt.GLAnimCanvas; import gl4java.utils.glut.*; import java.awt.Frame; import java.awt.Component; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class <<FILE_NAME_HERE>> { public final static void main(String[] arg) { renderCanvas can = new renderCanvas(300, 300); (new AutoFrame("GL Frame", can)).setVisible(true); can.start(); } private static class renderCanvas extends GLAnimCanvas { GLUTFunc glut = null; public renderCanvas(int w, int h) { super(w, h); } public void preInit() { doubleBuffer = true; stereoView = false; } public void init() { gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); gl.glMatrixMode(GL_PROJECTION); gl.glLoadIdentity(); gl.glOrtho(0, 300, 0, 300, -1.0f, 1.0f); gl.glMatrixMode(GL_MODELVIEW); gl.glLoadIdentity(); // Depth testing gl.glClearDepth(1.0); gl.glDepthFunc(GL_LESS); gl.glEnable(GL_DEPTH_TEST); // Shading model gl.glShadeModel(GL_SMOOTH); glut = new GLUTFuncLightImpl(gl, glu); } // This is the main drawing routine. public void display() { //Ensure GL is initialised correctly if (!glj.gljMakeCurrent()) return; gl.glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); gl.glColor3f (1.0f, 1.0f, 1.0f); ////////////////////////////////////////////////////// // WRITE YOUR DRAWING CODE HERE // END YOUR DRAWING CODE HERE ////////////////////////////////////////////////////// glj.gljSwap(); // flush the buffers etc glj.gljFree(); } } } class AutoFrame extends Frame { public AutoFrame(String title, Component contents) { super(title); add(contents); pack(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(1); } }); } }
January 25, 200520 yr Author i know wat im doing...ive read the tutorials over n over again for simple C++............... now ive gone into openGL....they say to include gl\gl.h, gl\glu.h, and gl\glaux.h.............. they tell me to download devC++4.9.9.0 and it should work....wen i check my gl folder for a glaux.h, there isnt any tats y i need one...not becuz i dont know wat im doing...n my C++ compiler comes wit an opengl thing...just missing an important file for some reason and i wanna use glaux.h because the new tutorial im reading...uses glaux even if its old...i will switch later on but right now i find it best to start on older things n advance up
January 26, 200520 yr Author i know wat im doing in C++....i followed the tutorials to include w/e files they tell me to and i downloaded w/e compiler they said was good... now on the OPENGL..they said i needed glaux.h......i checked my compiler n it didnt come with a glaux.h =S
January 26, 200520 yr Author will it provide the glaux.h??? cuz ive downloaded other compilers just trying to extract tat file n they dont have tat file...
January 28, 200520 yr dear god... try it and find out. trial and error. your never going to get anything like this exact the first time.
January 28, 200520 yr Author i did try it out.... the tutorials say tat u need glaux.h to use codes like glLoadIdentity(); .....wen i use glLoadIdentity, it says linking error to winmain@16
January 29, 200520 yr Get rid of DevC++. Any version of Microsoft Visual Studio (one of Microsoft's only decent product lines) comes with those headers. They're in the /include/GL directory. Quit living in the stone ages.
January 29, 200520 yr Quote r00tdem0n'] you have to learn to walk before you can run. actually that's not true, I was running before I was walking, cause if I'd stand still or go slow I'd fall. (I BE HIJACKING TEH TREAD!)
January 29, 200520 yr Author lol i need the stupid file...i posted everything in my existing GLAUX but not sure if its real....someone plz help me check it
January 29, 200520 yr Here you go Mr. Whine: http://s19.yousendit.com/d.aspx?id=15PHEI0B2RNBC1DAP7VYWCJHH6 Everything from the include/GL folder.