Add transformation

Add input
Add time
Add vertex colors
This commit is contained in:
2026-11-16 12:10:00 +01:00
parent 17b18859b3
commit b84f9c1052
7 changed files with 102 additions and 10 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ int WINAPI WinMain(
error = d3d.init(window.getWindowHandle(), width, height, isFullscreen);
CheckError(error);
d3d.getDevice()->SetRenderState(D3DRS_LIGHTING, FALSE);
// 3. create a mesh
Mesh mesh = {};
error = mesh.init(d3d.getDevice());
@@ -39,7 +41,7 @@ int WINAPI WinMain(
// 4. create a camera
Camera camera = {};
error = camera.init(width, height);
error = camera.init(d3d.getDevice(), width, height);
CheckError(error);
// 5. create time