곡λΆμκ° : 0h 0min
μμν΄μ£Όλ μ¬λλ€μ μΌκ΅΄κ³Ό λ§λ€μ λ μ¬λ €
μ λ°μ μλ μ©μ± μ½κΈ°
νλ°μ μλ μμ 볡μ΅νκΈ°.
[x] Direct3Dμ΄κΈ°ν 곡λΆ
#ifndef __d3dUtilityH__
#define __d3dUtilityH__
#include <d3dx9.h>
#include <string>
namespace d3d
{
// λ©μΈ μ ν리μΌμ΄μ
μλμ° μ΄κΈ°ν.
// μΈν°νμ΄μ€λ₯Ό κ°λ¦¬ν€λ ν¬μΈν° 리ν΄.
bool InitD3D(
HINSTANCE hInstance, // [in] Application instance. // μ΄ν리μΌμ΄μ
μΈμ€ν΄μ€
int width, int height, // [in] Backbuffer dimensions. // νλ©΄ λ²νΌ ν¬κΈ°
bool windowed, // [in] Windowed (true)or full screen (false). // μλμ°(true) or μ 체νλ©΄ (false)
D3DDEVTYPE deviceType, // [in] HAL or REF // HAL νΉμ REF
IDirect3DDevice9** device);// [out]The created device. // λ§λ€μ΄μ§ μ₯μΉ.
int EnterMsgLoop(
bool (*ptr_display)(float timeDelta));
// λ©μΈ μ ν리μΌμ΄μ
μλμ°λ₯Ό μν μλμ° νλ‘μμ μ μΈ.
LRESULT CALLBACK WndProc(
HWND hwnd,
UINT msg,
WPARAM wParam,
LPARAM lParam);
template<class T> void Release(T t)
{
if( t )
{
t->Release();
t = 0;
}
}
template<class T> void Delete(T t)
{
if( t )
{
delete t;
t = 0;
}
}
}
#endif // __d3dUtilityH__

κΉμ₯ νλ©΄μ΄ μ μΆλ ₯λ©λλ€ π
[x] νκΈ° νλ² μ½κ³
[x] μμ μκ° μμ νλ‘μ νΈμ μ μ©νκΈ°.
[x] κΉνλΈ νλ‘μ νΈμ μλ‘ μ μ©ν΄λ³΄κΈ°
[x] κ·Έλ¬λ©΄μ νκΈ° λ€μ νλ² μ½κΈ°
[x] λ°λ₯λΆν° λ€μ λ§λ€μ΄λ³΄κΈ°.
π¨ 3μΌμ°¨_05-24(ν) - νλ μμν¬_κ·Έλν½ λλ°μ΄μ€ μ΄κΈ°ν / κΉμ΄λ²νΌ μ€λͺ