OpenGL(13)GLUライブラリAPI
3266 ワード
/************************http://blog.csdn.net/sunboyiris*************************************/ // OpenGL GLU const GLubyte* APIENTRY gluErrorString ( GLenum errCode); const wchar_t* APIENTRY gluErrorUnicodeStringEXT ( GLenum errCode); // GLU GLU const GLubyte* APIENTRY gluGetString ( GLenum name); /* near far -1 1, */ void APIENTRY gluOrtho2D ( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top); /* gluPerspective (frustum , ) */ void APIENTRY gluPerspective ( GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar); /* . 。 , 。 , 。 */ void APIENTRY gluPickMatrix ( GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4]); /* , 。 eyex, eyey,eyez centerx,centery,centerz upx,upy,upz : ( ) */ void APIENTRY gluLookAt ( GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz); /* 1、 , , ; 2、 , ; 3、 [0, 1] ; 4、 , 3D (2D ) */ int APIENTRY gluProject ( GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *winx, GLdouble *winy, GLdouble *winz); /* gluPorject : 1、 , , [0, 1] ; 2、 [-1, 1] , scaleMat 3、 ; 4、 ; */ int APIENTRY gluUnProject ( GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *objx, GLdouble *objy, GLdouble *objz); //gluScaleImage int APIENTRY gluScaleImage ( GLenum format, GLint widthin, GLint heightin, GLenum typein, const void *datain, GLint widthout, GLint heightout, GLenum typeout, void *dataout); /* 0 ( )mipmap, gluBuild1DMipmaps(), gluBuild2DMipmaps() gluBuild3DMipmaps() mipmap . 1X1( 1; 1X1X1) mipmap. 2 , gluBuild*DMipmaps() 2 , , gluBuild*DMipmaps() ( GL_PROXY_TEXTURE ). */ int APIENTRY gluBuild1DMipmaps ( GLenum target, GLint components, GLint width, GLenum format, GLenum type, const void *data); int APIENTRY gluBuild2DMipmaps ( GLenum target, GLint components, GLint width, GLint height, GLenum format, GLenum type, const void *data);