摘要:
LFRect.h//定义一个结构体,表示裁剪的区域 #ifndef LFRECT_H#define LFRECT_H #include "LOpenGL.h" struct LFRect{ GLfloat x;//x GLfloat y;//y GLfloat w;//宽 GLfloat h;//高 阅读全文
posted @ 2017-11-23 18:04
yongfengnice
阅读(2080)
评论(0)
推荐(0)
摘要:
OpenGL本身没有文件操作有关的接口,需要使用第三方库。这里使用DevIL库。 下载连接:http://openil.sourceforge.net/download.php 下载DevIL-Windows-SDK,解压后在Visual Studio配置头文件位置、lib库位置、lib库名称,拷贝 阅读全文
posted @ 2017-11-23 17:16
yongfengnice
阅读(969)
评论(0)
推荐(0)
摘要:
LOpengGL.h不变 LTexture.h #include "LOpenGL.h"#include <stdio.h> class LTexture{ public: LTexture(); ~LTexture(); bool loadTextureFromPixels32( GLuint* 阅读全文
posted @ 2017-11-23 15:49
yongfengnice
阅读(2741)
评论(3)
推荐(1)
浙公网安备 33010602011771号