add different meshes with different primitive types & without or with index buffer

refactor background color to main
This commit is contained in:
2025-09-10 12:11:48 +02:00
parent 9a0c9a50ea
commit f2dca52aa7
2 changed files with 65 additions and 5 deletions
+3
View File
@@ -36,6 +36,9 @@ int WINAPI WinMain(
error = d3d.init(window.getWindowHandle(), width, height, isFullscreen);
CheckError(error);
// set render states
d3d.getDevice()->SetRenderState(D3DRS_CULLMODE, D3DCULL_CCW);
// 3. create a mesh
Mesh mesh = {};
error = mesh.init(d3d.getDevice());