共 20 篇文章 |
|
) PFD_DRAW_TO_WINDOW | // Format Must Support Window PFD_SUPPORT_OPENGL | // Format Must Support OpenGL PFD_DOUBLEBUFFER, // Must Support Double Buffering PFD_TYPE_RGBA, // Request An RGBA Format 24, // Select A 24Bit Color Depth 0, 0, 0, 0, 0, 0, // Color Bits Ignored (?// Gets A D... 阅1981 转32 评0 公众公开 10-11-29 03:56 |
OpenGL 4.1规范宣布在OpenGL 4.0发布仅仅5个月后,负责OpenGL的行业组织Khronos Group宣布(中文PDF)了OpenGL 4.1规范。OpenGL 4.1规范由Khrnos Group的OpenGL ARB架构审核组(Architecture Review Board)定义,新版本演进包括OpenGL渲染语言升级至GLSL4.10,以及为免授权费用的OpenGL标准引入一系列业界领先的功能扩展。全新OpenGL 4.1规范核心... 阅1103 转3 评0 公众公开 10-07-27 21:44 |
《基于MFC的OpenGL编程》Part 12 Creating and Using Display Lists豆豆网 技术应用频道 2008年12月30日关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 12 Creating and Using Display Lists。 阅244 转9 评0 公众公开 10-05-18 00:40 |
if(m_fog) glEnable(GL_FOG);//设置雾 ::glFogi(GL_FOG_MODE, GL_EXP); GLfloat fog_color[4] = {0.2f,0.2f,0.2f,0.0f}; ::glFogfv(GL_FOG_COLOR, fog_color); ::glFogf(GL_FOG_DENSITY, 0.25); //加载纹理 LoadGLTextures(); //设置灯光 SetupLighting(); ::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_AL... 阅228 转10 评0 公众公开 10-05-18 00:38 |
It provides two types of texture filters: the minification filter (GL_TEXTURE_MIN_FILTER) for polygons smaller than the texture image and the magnification filter (GL_TEXTURE_MAG_FILTER) for polygons that are larger than the texture image.//All Texture Names GLuint m_Texture[3];gluBuild2DMipmaps(GL_TEXTURE_2D, 3, ... 阅346 转12 评0 公众公开 10-05-18 00:35 |
《基于MFC的OpenGL编程》Part 9 Lighting豆豆网 技术应用频道 2008年12月30日 关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 9 Lighting。glLightfv(GL_LIGHT0, GL_AMBIENT, ambient1);glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse1);glLightfv(GL_LIGHT0, GL_SPECULAR, specular1);glLightfv(GL_LIGHT1, GL... 阅307 转12 评0 公众公开 10-05-15 23:07 |
《基于MFC的OpenGL编程》Part 8 Colors豆豆网 技术应用频道 2008年12月30日 关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 8 Colors。 阅188 转8 评0 公众公开 10-05-15 23:04 |
《基于MFC的OpenGL编程》Part 7 Animation豆豆网 技术应用频道 2008年12月30日 关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 7 Animation。// the very last thing we do is to save // the elapsed time, this is used with the // next elapsed time to calculate the // elapsed time since ... 阅228 转9 评0 公众公开 10-05-15 23:03 |
《基于MFC的OpenGL编程》Part 6 Keyboard and Mouse Control豆豆网 技术应用频道 2008年12月30日关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 6 Keyboard and Mouse Control。case VK_RIGHT: m_xPos = m_xPos + 0.1f;} void COpenGLView::OnLButtonUp(UINT nFlags, CPoint point){ // TODO: Add yo... 阅338 转11 评0 公众公开 10-05-15 23:01 |
《基于MFC的OpenGL编程》Part 5 Transformations - Rotations, Translations and Scaling关键字: malloc wxWidgets OpenGL 多态性 doxygen《基于MFC的OpenGL编程》Part 5 Transformations - Rotations, Translations and Scaling。Transformations - Translation, Rotation and Scaling.An object said to be undergoing a transformation cou... 阅186 转10 评0 公众公开 10-05-15 23:00 |