![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码区
宇智波_呵呵
用心看见美
展开
-
深度测试(消隐)demo
#include #include #include bool mouseisdown=false;bool loopr=false;int mx,my;int ry=30;int rx=30;void timer(int p){ ry-=5; glutPostRedisplay(); if (loopr)转载 2014-12-05 11:39:02 · 970 阅读 · 0 评论 -
GLSL 使用demo
/* Simple Demo for GLSL 2.0 www.lighthouse3d.com*/#include #include #include #include #include "textfile.h"GLuint v,f,f2,p;float lpos[4] = {1,0.5,1,0};void changeSize(int w转载 2014-12-05 11:46:57 · 918 阅读 · 0 评论 -
opengl版本支持和shader支持判断
#include #include #include void renderScene(){ // 清除颜色缓存 glClear(GL_COLOR_BUFFER_BIT); const GLfloat vertices[3][2]={ {0.0,0.0}, {50.0,0.0}, {25.0,50.0} }; // 设置顶点颜色 glC原创 2014-12-05 13:00:17 · 3300 阅读 · 0 评论