Skip to content

Support for building under Linux#12

Open
CzechBlueBear wants to merge 2 commits into
HackerPoet:masterfrom
CzechBlueBear:master
Open

Support for building under Linux#12
CzechBlueBear wants to merge 2 commits into
HackerPoet:masterfrom
CzechBlueBear:master

Conversation

@CzechBlueBear
Copy link
Copy Markdown

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! :-)

@sylv256
Copy link
Copy Markdown

sylv256 commented Mar 19, 2020

when will this be added

Comment thread NonEuclidean/Engine.h
void ToggleFullscreen();
int EnterMessageLoop();
void PeriodicRender(int64_t cur_ticks);
void SwapBuffers();
Copy link
Copy Markdown
Owner

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.

Comment thread NonEuclidean/Engine.h
void ConfineCursor();
void ToggleFullscreen();
int EnterMessageLoop();
void PeriodicRender(int64_t cur_ticks);
Copy link
Copy Markdown
Owner

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.

@odyw
Copy link
Copy Markdown

odyw commented Jul 7, 2020

Maybe it would be better to use CMake?

@laura240406
Copy link
Copy Markdown

When I run it, it just gives me a white screen.

@Srinivasa314
Copy link
Copy Markdown

There are many bugs in this pull request so I created #32. It also fixes the problem mentioned by @jakiki6 .

@hYdos
Copy link
Copy Markdown

hYdos commented Mar 8, 2021

if #32 supersedes this pr, why not close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants