資源簡介
立方體紋理映射,不同圖片,可以旋轉,有源代碼,壓縮文件
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
HGLRC hRC=NULL;
HDC hDC=NULL;
HWND hwnd=NULL;
HINSTANCE???hInstance;
bool keys[256];
bool active=true;
bool fullscreen=true;
GLfloat?xrot;
GLfloat?yrot;
GLfloat?zrot;
//GLuint????texture[1];
GLuint texture[6];
int?cxScreen=GetSystemMetrics(SM_CXSCREEN);
int?cyScreen=GetSystemMetrics(SM_CYSCREEN);
LRESULT?CALLBACK?WndProc(HWND?hwndUINT?messageWPARAM?wParamLPARAM?lParam);
AUX_RGBImageRec*?LoadBMP(char*?filename)
{
????FILE*?file=NULL;
????if(!filename)
????{
return?NULL;
????}
????file=fopen(filename“r“);
????if(file)
????{
fclose(file);
return?auxDIBImageLoad(filename);
????}
????return?NULL;
}
int?LoadGLTex
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????196662??2010-04-29?12:49??textured\data\back.bmp
?????文件?????196662??2003-01-17?10:09??textured\data\bottom.bmp
?????文件?????196662??2010-04-29?12:51??textured\data\front.bmp
?????文件?????196662??2010-04-29?12:52??textured\data\left.bmp
?????文件?????196662??2010-04-29?12:57??textured\data\right.bmp
????..A.SH.?????35328??2010-04-29?18:06??textured\data\Thumbs.db
?????文件?????196662??2010-04-29?12:41??textured\data\top.bmp
?????文件??????13896??2010-04-29?18:08??textured\Lesson06.cpp
?????文件???????4003??2010-04-29?01:27??textured\lesson06.dsp
?????文件????????522??2010-04-28?23:11??textured\lesson06.dsw
?????文件?????241745??2010-04-29?18:08??textured\lesson06.exe
?????文件??????11314??2010-04-30?13:02??textured\Lesson06_2.cpp
?????文件???????4061??2010-04-30?13:02??textured\lesson06_2.dsp
?????文件????????526??2010-04-30?00:34??textured\lesson06_2.dsw
?????文件?????237653??2010-04-30?13:00??textured\lesson06_2.exe
?????目錄??????????0??2010-05-07?23:56??textured\data
?????目錄??????????0??2010-05-07?23:57??textured
-----------?---------??----------?-----??----
??????????????1729020????????????????????17
- 上一篇:教學平臺系統畢業論文
- 下一篇:Quartus_II_6.0正式版的license
評論
共有 條評論