Engine as library (both static & shared) #1

Merged
admin merged 9 commits from engine-structure into main 2025-10-17 13:25:48 +02:00
42 changed files with 188 additions and 165 deletions
Showing only changes of commit faf9b67222 - Show all commits

View File

@ -31,6 +31,8 @@ Window::Window(const char* title, int width, int height) {
}
SDL_SetWindowRelativeMouseMode(m_handle, true);
SDL_Rect boundaries = {0, 0, m_width, m_height};
SDL_SetWindowMouseRect(m_handle, &boundaries);
m_context = SDL_GL_CreateContext(m_handle);
@ -121,6 +123,9 @@ void Window::ProcessEvents() {
width,
height);
Dispatch(WindowResized{ m_width, m_height });
SDL_SetWindowRelativeMouseMode(m_handle, true);
SDL_Rect boundaries = {0, 0, m_width, m_height};
SDL_SetWindowMouseRect(m_handle, &boundaries);
}
break;
default: break;