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

資源簡介

一個用于學習D3D11的程序框架,最開始的部分。隨著學習深入逐漸完善、添加高級功能。

資源截圖

代碼片段和文件信息

#include?“AppUtil.h“
#include?“WinApp.h“

//定義一個新類,繼承框架主類:WinApp
class?Basic:?public?WinApp
{
public:
Basic(HINSTANCE?hInst?std::wstring?title?=?L“D3D11學習程序框架“?int?width?=?640?int?height?=?480):
??WinApp(hInsttitlewidthheight)
??{}

//該兩個成員函數必需重寫
bool?Update(float?delta);
bool?Render();

private:
//在這里定義具體程序所需的相關成員變量
};

//程序入口
int?WINAPI?WinMain(HINSTANCE?hInstance?HINSTANCE?hPrevInstance?LPSTR?cmdLine?int?cmdShow)
{
//建立程序對象
Basic?app(hInstance);

//初始化
if(!app.Init())
return?-1;

//如果有其他初始化相關的成員函數,可以在這里調用

//開始運行
return?app.Run();
}

bool?Basic::Update(float?delta)
{
//更新

return?true;
}

bool?Basic::Render()
{
m_deviceContext->ClearDepthStencilView(m_depthStencilViewD3D11_CLEAR_DEPTH|D3D11_CLEAR_STENCIL1.f0);
m_deviceContext->ClearRenderTargetView(m_renderTargetViewreinterpret_cast(&Colors::Green));

//渲染場景

m_swapChain->Present(00);

return?true;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-12-22?23:14??D3D11程序框架\
?????文件?????????882??2012-12-22?20:34??D3D11程序框架\Appframe.sln
?????文件????????5767??2012-12-22?23:06??D3D11程序框架\Appframe.vcxproj
?????文件????????1671??2012-12-22?23:06??D3D11程序框架\Appframe.vcxproj.filters
?????目錄???????????0??2012-12-22?23:09??D3D11程序框架\Common\
?????文件??????????24??2012-12-22?20:53??D3D11程序框架\Common\AppUtil.cpp
?????文件?????????789??2012-12-22?22:13??D3D11程序框架\Common\AppUtil.h
?????文件????????2458??2012-12-13?22:20??D3D11程序框架\Common\Timer.cpp
?????文件?????????908??2012-12-13?21:41??D3D11程序框架\Common\Timer.h
?????文件???????10922??2012-12-22?21:14??D3D11程序框架\Common\WinApp.cpp
?????文件????????2062??2012-12-22?23:02??D3D11程序框架\Common\WinApp.h
?????文件????????1064??2012-12-22?23:14??D3D11程序框架\Main.cpp

評論

共有 條評論