Gif of My Game

GPU Capture
Direct3D


OpenGL



Interface Code
|
|
Platform Difference
In Graphics.d3d.cpp, there are variables and functions work for “views”. Considering that these codes only exist in the d3d file, a view class can be created to handle the relevant logic, and macros (EAE6320_PLATFORM_D3D) can be used in Graphics.cpp to support this part.
|
|
In Graphics.d3d.cpp, direct3dImmediateContext is used to clear image buffer and depth buffer, while the functions provided by OpenGL are used to do the same job in Graphics.gl.cpp. Considering do the similar job like mesh class of this assignment to make Graphics.cpp can be platform-independent.
Game Sample
Download and have a try: MyGame