No description
XEventsQueued(disp, QueuedAlready) only returns the number of events currently in the queue and does not flush new events. So this must happen elsewhere and if it does not we will never see any events. i noticed this bug when removing the call to glXSwapBuffers(). Fix this by using XPending() instead as this flushes new events if the queue is empty before returning the length. see https://tronche.com/gui/x/xlib/event-handling/XEventsQueued.html and https://tronche.com/gui/x/xlib/event-handling/XPending.html |
||
|---|---|---|
| .bam | ||
| assets | ||
| examples | ||
| include/Spectre | ||
| source | ||
| vendor | ||
| .gitattributes | ||
| .gitignore | ||
| bam.lua | ||
| engine.build.lua | ||
| README.md | ||
Spectre 2D Engine
A simple 2D Game engine from scratch!
Compiling
This project uses bam build system (Version 0.5 or greater) to compile the engine.
Just running bam in this directory will start build the source.
The build will produce spectre.lib in the build directory that
should be used when linking.
You will also need to link against FreeType2 that is located in
vendor/FreeType2/lib/x<86|64>/freetype-s.lib (or freetype-d-s.lib
for debug version)
Author
Henrik Hautakoski - henrik.hautakoski@gmail.com