2004/12/21
2/2 (11/16) DT-MRI (11/30) /OpenGL 12/7 12/14 (12/21) 1/11 (1/18)
OpenGL ~ ~ OpenGL Silicon Graphics,
OpenGL ~ ~ OpenGL OpenGL Utility Library (GLU) OpenGL. OpenGL. OpenGL Utility Toolkit (GLUT) OS. OS.
OpenGL ~ ~ Windows Windows NT OS GL GLU.Windows NT Windows 2000, XP Unix OS Macintosh http://www.opengl.org/ Mesa.
OpenGL ~ Window ~ GLUT 1. GLUT Windows. http://www.xmission.com/~nate/glut.html. 2. (glut-3.7.x-bin.zip). zip. 3.. glut.h (Visual C++ C: ProgramFiles DevStudio Vc include GL ) *.lib (C: ProgramFiles DevStudio Vc lib ) *.dll (C: WINDOWS system C: WINNT system32 )
OpenGL ~ UNIX OS ~ 1. Mesa. http://www.opengl.org/ hp Documentation OS/Platform Implementations. Page Mesa 3D Mesa. The Mesa 3D Graphics Library Page, Download / Install Stable Release (6.2.1). http://sourceforge.net/projects/mesa3d Page Latest File Releases File. MesaDemos MesaLib.
OpenGL ~ UNIX OS ~ 2.. http://mesa3d.org/. 3. Mesa-6.2, make linux-x86. 4. Demo. demo Mesa lib export LD_LIBRARY_PATH=${PWD}. Mesa/progs/demos./gears. 5. Header file Library. Header file /usr/include/gl Libraries /usr/lib/.( http://oss.sgi.com/projects/ogl-sampla/abi/ )
OpenGL ~ ~ Unix OS cc( gcc). % cc I/usr/X11R6/include program.c L/usr/lib lglut lglu lgl lxmu -lxi lxext lx11 lm -lpthread Windows. (Visual C++ GLUT3.7.2 Visual C++ 6.0.)
OpenGL ~ ~ 1 1.1 (GLtest1_1.c).. void glutinit( int *argcp, char **argv ) GLUT OpenGL int glutcreatewindow( char *name ).. void glutdisplayfunc( void (*func) (void ) ). func void glutmainloop( void )..
OpenGL ~ ~ 1 1.2 (GLtest1_2.c). void glutinitdisplaymode( unsigned int mode). GLUT_RGBA RGB. int glclearcolor( GLclampf R, GLclampf G, GLclampf B, GLclampf A ) glclear.a. void glclear( GLbitfield mask ).mask. void glflush( void ) OpenGL.OpenGL.
OpenGL ~ ~ 2 2 2.1 (GLtest2_1.c). void glbegin( GLnum mode ) void glend( void ),glbegin~glend. int glvertex2d( GLdouble x, GLdouble y ) 2.
OpenGL ~ ~ 2 2 2.2 glbegin() ().
OpenGL ~ ~ 2 2 2.3 (GLtest2_3.c). int glcolor3d( GLdouble r, GLdouble g, GLdouble b ) glcolor3d().r,g,b 0~1.
OpenGL ~ ~ 2 2 2.4 (GLtest2_4.c).
OpenGL ~ ~ 3 3.1 (GLtest3_1.c). void glviewport( GLint x, GLint y, GLsizei w, GLsizei h ) ( ). int glloadidentity( void ). void glortho( GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f ).( l = left, r = right, b = bottom, t = top, n = near, f = far ) void glreshapefunc( void (*func) ( int w, int h ) ).
OpenGL ~ ~ 3 3.2 (GLtest3_2.c). void glutinitwindowsize( int w, int h ). 300 300. int glutinitwindowposition( int x, int y )..
OpenGL ~ ~ 4 3 4.1 12. (GLtest4_1.c) glvertex3dv( const GLdouble *v ) glvertex3dv() 3. v 3.
OpenGL ~ ~ 4 3 4.2. (GLtest4_2.c). void gluperspective( GLdouble fovy, GLdouble aspect, GLdouble znear, GLdouble zfar ).( fovy =, aspect =, znear =, zfar = ) int gltranslated( GLdouble x, GLdouble y, GLdouble z ).
OpenGL ~ ~ 4 3 4.2 (gltranslated glrotated ), (GLtest4_3.c). void glulookat( GLdouble ex, GLdouble ey, GLdouble ez, GLdouble cx, GLdouble cy, GLdouble cz, GLdouble ux, GLdouble uy, GLdouble uz) 3, 3, 3
OpenGL ~ ~ 5 3 4.,..(GLtest5.c). void glnormal3dv(). void glenable( GL_LIGHT0 ) void gldisable( GL_LIGHT0 ) OpenGL 0 ( ), ( ). void glenable( GL_LIGHTING ) void gldisable( GL_LIGHTING ).
create_isosurface_geometry (float) CONST *V?,. triangle edge vertex coordinate data
OpenGL, create_isosurface_geometry,, OpenGL. OpenGL.
OpenGL 1. ( glutinit ) 2. ( glutcreatewindow ) 3. ( glutdisplayfunc ) 4. ( glutmainloop ),Volume,Geometry. ( )..
Volume, Geometry Volume Geometry 1. Volume 2. Volume Geometry 3. Geometry OpenGL 1,.( glutkeyboardfunc ) 2 Volume. (glutkeyboardfunc ) 3 (glutdisplayfunc ).
,, OpenGL,,,, OpenGL. glutkeyboardfunc ( void (*func) ( unsigned char key, int x, int y ) ). x y.,.
Pless key t glutmainloop Pless key e Pless key f Pless key q