mirror of
https://github.com/aap/librw.git
synced 2025-12-22 02:19:56 +00:00
changed project structure, made VS projects, added d3d9 support and viewer, worked on xbox instancing
This commit is contained in:
31
tools/d3d9/d3dUtility.h
Normal file
31
tools/d3d9/d3dUtility.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#include <d3d9.h>
|
||||
#include <string>
|
||||
|
||||
namespace d3d
|
||||
{
|
||||
bool InitD3D(HINSTANCE hInstance, int width, int height, bool windowed,
|
||||
D3DDEVTYPE deviceType, IDirect3DDevice9 **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;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user