by Hieran_Del8 » Sat Jun 12, 2010 4:42 pm
Heheh. Well, I have a "simple" directx test initializer, including window creation, device creation, renderer creation, renderable object creation, input creation, and sound. Well, the sound doesn't work right yet, so I'll keep working on that.
Anyway, here's the code. Included is the headers: SmartPtr, DXTestWindow, DXTestD3D, DXTestRender, DXTestInput, and DXTestLibs. Also, an example source DXTest.cpp is provided demonstrating the usage. It's commented, so it should be pretty easy to use.
None of the headers require each other, though they all require SmartPtr.h. Also, DXTestLibs.h should be included in the main source after the included component. Browse the headers and source, and you'll see why.
To run the example source, just build a win32 project, and add DXTest.cpp. Then compile and run!
- Attachments
-
DXTest.zip
- smartptr.h, DXTestWindow.h, DXTestD3D.h, DXTestRenderer.h, DXTestInput.h, DXTestLibs.h, DXTest.cpp
- (9.93 KiB) Downloaded 5 times