-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for building under Linux #12
base: master
Are you sure you want to change the base?
Conversation
when will this be added |
void InitGLObjects(); | ||
void DestroyGLObjects(); | ||
void SetupInputs(); | ||
void ConfineCursor(); | ||
void ToggleFullscreen(); | ||
int EnterMessageLoop(); | ||
void PeriodicRender(int64_t cur_ticks); | ||
void SwapBuffers(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SwapBuffers is a Windows API function, this needs to be moved inside the Linux ifdef below to get this compiling on Windows.
void InitGLObjects(); | ||
void DestroyGLObjects(); | ||
void SetupInputs(); | ||
void ConfineCursor(); | ||
void ToggleFullscreen(); | ||
int EnterMessageLoop(); | ||
void PeriodicRender(int64_t cur_ticks); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cur_ticks must be passed by reference here because it's modified in the method. Without that, it's running at a hyper-speed framerate.
Maybe it would be better to use CMake? |
When I run it, it just gives me a white screen. |
if #32 supersedes this pr, why not close it? |
Hi, the following code allows building and running this cute little engine under Linux (using SDL2 as backend). Some features are not yet there (fullscreen switching, cursor confining), I plan to add them asap. Please merge if you wish! :-)