1
0
Fork 0
No description
Find a file
Henrik Hautakoski cdea7e238c Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue.
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
2020-10-16 19:39:27 +02:00
.bam bam: adding unix support. 2020-10-16 19:39:26 +02:00
assets assets: bam does not like whitespace in file names. 2020-10-16 19:39:27 +02:00
examples bam: adding unix support. 2020-10-16 19:39:26 +02:00
include/Spectre Spectre/System/Log: adding debug method. 2020-10-13 18:07:29 +02:00
source Platform/Unix/X11EventQueue: Fix bug where messeges where not flushed to the event queue. 2020-10-16 19:39:27 +02:00
vendor Remove FT2 lib files (we compile our own). 2020-01-19 21:57:50 +01:00
.gitattributes Initial commit 2016-01-10 09:26:43 +01:00
.gitignore bam: adding unix support. 2020-10-16 19:39:26 +02:00
bam.lua bam: Move library build to engine.build.lua file. 2020-01-07 07:11:02 +01:00
engine.build.lua Adding Platform/Unix/X11WindowEventHandler 2020-10-16 19:39:27 +02:00
README.md Update Readme 2020-01-02 05:06:17 +01:00

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