Opengl
GeorgeWang1994
Game Developer and Mobile Developer
展开
-
opengl 关于纹理贴图
网上的大部分是根据输入图像的,但是我要弄得是根据程序生成纹理贴图好了,开始第一个是关于根据程序生成的纹理贴图的棋盘#include #include #include /* Create checkerboard texture */#define checkImageWidth 64#define checkImageHeight 64stati原创 2014-11-29 17:08:50 · 1294 阅读 · 0 评论 -
鼠标回调函数和模式
void glutMotionFunc(void (*func)(int x, int y));当鼠标在窗口中按下并移动时调用glutMotionFunc注册的回调函数void glutPassiveMotionFunc(void (*func)(int x, int y));当鼠标在窗口中移动时调用glutPassiveMotionFunc注册的回调函数参数:func:形如v原创 2014-11-04 21:52:19 · 682 阅读 · 0 评论 -
opengl实验3的作业答案
实验三的作业:void init (void){glClearColor (1.0, 1.0, 1.0, 0.0);glMatrixMode (GL_PROJECTION);gluOrtho2D (-5.0, 5.0, -5.0, 5.0); //设置显示的范围是X:-5.0~5.0, Y:-5.0~5.0glMatrixMo原创 2014-10-11 12:35:37 · 1174 阅读 · 0 评论