• 大小: 629KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 语言: 其他
  • 标签: 纹理映射  

资源简介

立方体纹理映射,不同图片,可以旋转,有源代码,压缩文件

资源截图

代码片段和文件信息

#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


评论

共有 条评论

相关资源