hw3d
hw3d copied to clipboard
C++ 3D graphics engine under Direct3D 11. Developed in a Planet Chili video tutorial series that can be found on YouTube. https://youtu.be/_4FArgOX1I4
Hey @planetchili, thank you so much for the great tutorial. To make the hw3d project compile on the latest VS 2022, some minor fixes are necessary. Feel free to pull...
https://github.com/planetchili/hw3d/blob/b8ea00f7f236779fc4b8302f6ff73511f3c668fd/hw3d/Mouse.cpp#L123  The function should call TrimRawInputBuffer.
Camera crashes when r = 0. Graphics crashes when Window size doesn't match.
void Mouse::OnRawDelta( int dx,int dy ) noexcept { rawDeltaBuffer.push( { dx,dy } ); TrimBuffer(); } OnRawDelta in Mouse.cpp calls TrimBuffer() instead of TrimRawDeltaBuffer(). This is the only place TrimRawDeltaBuffer would...
BindableCodex header includes it self on the line 4.