add cube mesh

add world matrix
add view matrix
add projection matrix
This commit is contained in:
2025-09-17 11:53:34 +02:00
parent f2dca52aa7
commit faa9b71510
5 changed files with 106 additions and 16 deletions
+5 -2
View File
@@ -20,13 +20,16 @@ INT Window::init(HINSTANCE hInstance, UINT width, UINT height)
style = WS_OVERLAPPEDWINDOW; // window with border & title
//style = WS_POPUP; // borderless window
RECT rect = { 100, 100, width + 100, height + 100 }; // left, top, right, bottom
AdjustWindowRect(&rect, style, FALSE);
// 4. create window instance
_hWnd = CreateWindow(
wc.lpszClassName, // class name for window instance
wc.lpszClassName, // window title
style, // visual window style
100, 100, // window position (left-top corner)
width, height, // window size
rect.left, rect.top, // window position (left-top corner)
rect.right - rect.left, rect.bottom - rect.top, // window size
nullptr, // handle to parent window
nullptr, // handle to menu instance
hInstance,