91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.22M
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-16
  • 語言: 其他
  • 標簽: 其他??

資源簡介

du3ds.rar

資源截圖

代碼片段和文件信息


#include?“main.h“

//??從文件中創(chuàng)建紋理
void?CreateTexture(UINT?textureArray[]?LPSTR?strFileName?int?textureID)
{
AUX_RGBImageRec?*pBitmap?=?NULL;

if(!strFileName) //?如果無此文件,則直接返回
return;

pBitmap?=?auxDIBImageLoad(strFileName); //?裝入位圖,并保存數(shù)據(jù)

if(pBitmap?==?NULL) //?如果裝入位圖失敗,則退出
exit(0);

//?生成紋理
glGenTextures(1?&textureArray[textureID]);

//?設置像素對齊格式
glPixelStorei?(GL_UNPACK_ALIGNMENT?1);

glBindTexture(GL_TEXTURE_2D?textureArray[textureID]);

gluBuild2DMipmaps(GL_TEXTURE_2D?3?pBitmap->sizeX?pBitmap->sizeY?GL_RGB?GL_UNSIGNED_BYTE?pBitmap->data);

glTexParameteri(GL_TEXTURE_2DGL_TEXTURE_MIN_FILTERGL_LINEAR_MIPMAP_NEAREST);
glTexParameteri(GL_TEXTURE_2DGL_TEXTURE_MAG_FILTERGL_LINEAR_MIPMAP_LINEAR);

if?(pBitmap) //?釋放位圖占用的資源
{
if?(pBitmap->data)
{
free(pBitmap->data);
}

free(pBitmap);
}
}

void?ChangeToFullScreen()
{
DEVMODE?dmSettings;

memset(&dmSettings0sizeof(dmSettings));

if(!EnumDisplaySettings(NULLENUM_CURRENT_SETTINGS&dmSettings))
{
MessageBox(NULL?“Could?Not?Enum?Display?Settings“?“Error“?MB_OK);
return;
}

dmSettings.dmPelsWidth =?SCREEN_WIDTH;
dmSettings.dmPelsHeight =?SCREEN_HEIGHT;

int?result?=?ChangeDisplaySettings(&dmSettingsCDS_FULLSCREEN);

if(result?!=?DISP_CHANGE_SUCCESSFUL)
{

MessageBox(NULL?“Display?Mode?Not?Compatible“?“Error“?MB_OK);
PostQuitMessage(0);
}
}

HWND?CreateMyWindow(LPSTR?strWindowName?int?width?int?height?DWORD?dwstyle?bool?bFullScreen?HINSTANCE?hInstance)
{
HWND?hWnd;
WNDCLASSA?wndclass;

memset(&wndclass?0?sizeof(WNDCLASSA));
wndclass.style?=?CS_HREDRAW?|?CS_VREDRAW;
wndclass.lpfnWndProc?=?WinProc;
wndclass.hInstance?=?hInstance;
wndclass.hIcon?=?LoadIcon(NULL?IDI_APPLICATION);
wndclass.hCursor?=?LoadCursor(NULL?IDC_ARROW);
wndclass.hbrBackground?=?(HBRUSH)?(COLOR_WINDOW+1);
wndclass.lpszClassName?=?“GameTutorials“;

RegisterClass(&wndclass);

if(bFullScreen?&&?!dwstyle)?
{
dwstyle?=?WS_POPUP?|?WS_CLIPSIBLINGS?|?WS_CLIPCHILDREN;
ChangeToFullScreen();
ShowCursor(FALSE);
}
else?if(!dwstyle)
dwstyle?=?WS_OVERLAPPEDWINDOW?|?WS_CLIPSIBLINGS?|?WS_CLIPCHILDREN;

g_hInstance?=?hInstance;

RECT?rWindow;
rWindow.left =?0;
rWindow.right =?width;
rWindow.top ????=?0;
rWindow.bottom =?height;
AdjustWindowRect(?&rWindow?dwstyle?false);


hWnd?=?CreateWindow(“GameTutorials“?strWindowName?dwstyle?0?0
rWindow.right??-?rWindow.left?rWindow.bottom?-?rWindow.top?
NULL?NULL?hInstance?NULL);

if(!hWnd)?return?NULL;

ShowWindow(hWnd?SW_SHOWNORMAL);
UpdateWindow(hWnd);

SetFocus(hWnd);

return?hWnd;
}

bool?bSetupPixelFormat(HDC?hdc)?
{?
????PIXELFORMATDEscriptOR?pfd;?
????int?pixelformat;?
?
????pfd.nSize?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????16636??2011-12-16?11:26??du3ds\3DS.CPP

?????文件???????2372??2002-11-27?22:42??du3ds\3DS.H

?????文件??????39103??2011-12-14?17:40??du3ds\aabb.3DS

?????文件?????429715??2005-08-23?22:15??du3ds\car.3DS

?????文件?????268183??2011-12-16?12:07??du3ds\Debug\3DS.obj

?????文件???????7582??2011-12-16?12:17??du3ds\Debug\BuildLog.htm

?????文件?????129024??2011-12-16?12:17??du3ds\Debug\du3ds.exe

?????文件????????663??2011-12-16?12:15??du3ds\Debug\du3ds.exe.embed.manifest

?????文件????????728??2011-12-16?12:15??du3ds\Debug\du3ds.exe.embed.manifest.res

?????文件????????621??2011-12-16?12:17??du3ds\Debug\du3ds.exe.intermediate.manifest

?????文件?????796308??2011-12-16?12:17??du3ds\Debug\du3ds.ilk

?????文件????1043456??2011-12-16?12:17??du3ds\Debug\du3ds.pdb

?????文件??????57231??2011-12-16?12:07??du3ds\Debug\Init.obj

?????文件?????127021??2011-12-16?12:17??du3ds\Debug\Main.obj

?????文件?????????69??2011-12-16?12:17??du3ds\Debug\mt.dep

?????文件?????650240??2011-12-16?12:17??du3ds\Debug\vc90.idb

?????文件?????323584??2011-12-16?12:17??du3ds\Debug\vc90.pdb

?????文件???12667904??2011-12-16?12:29??du3ds\du3ds.ncb

?????文件????????875??2011-12-16?11:14??du3ds\du3ds.sln

????..A..H.?????14336??2011-12-16?12:29??du3ds\du3ds.suo

?????文件???????4247??2011-12-16?12:15??du3ds\du3ds.vcproj

?????文件???????1419??2011-12-16?12:29??du3ds\du3ds.vcproj.COMPUTER-02.Computer02.user

?????文件??????78873??2001-09-24?21:38??du3ds\FACE.3DS

?????文件?????921656??2001-09-10?08:59??du3ds\FACE.BMP

?????文件?????187373??2005-08-15?15:57??du3ds\football.3DS

?????文件???????5419??2011-12-16?11:45??du3ds\Init.cpp

?????文件???????5495??2011-12-16?12:17??du3ds\Main.cpp

?????文件???????2800??2011-12-16?12:07??du3ds\MAIN.H

?????目錄??????????0??2011-12-16?12:17??du3ds\Debug

?????目錄??????????0??2011-12-16?12:17??du3ds

............此處省略3個文件信息

評論

共有 條評論