随笔分类 - OpenGL相关
在学习使用OpenGL的过程中的新的体会总结
摘要:代码来自nehe opengl:void select(){ GLuintbuffer[512]; GLuinthits; GLintviewPort[4];glGetIntegerv(GL_VIEWPORT,viewPort);glSelectBuffer(512,buffer); (void)glRenderMode(GL_SELECT);glInitNames();glPushName(0);glMatrixMode(GL_PROJECTION);glPushMatrix();glLoadIdentity();gluPickMatrix((GLdouble)lmouseX,(GLdoub
阅读全文
摘要:今天在调用glGenbuffers函数时出现中断错误发现glGenbuffers函数调用需要Opengl版本的支持 需要1.5以上同时需要函数库glew.h的支持初始化阶段须有glewinit()终究由于忘记初始化!!
阅读全文
浙公网安备 33010602011771号