Pierre Ossman
337dbc3922
Return std::string instead of dynamic allocations
We mostly use classical C strings, but the memory management around them
can get confusing and error prone. Let's use std::string for the cases
where we need to return a newly allocated string.
преди 1 година
Pierre Ossman
6881c895ab
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
преди 1 година
Pierre Ossman
3a1c46ff75
Explicitly mark unused parameters
This allows us to separate accidentally unused, from explicitly unused
parameters, which allows us to turn on such checks in the compiler.
преди 1 година
Albrecht Schlosser
07d4e29042
Add missing FLTK include statements
Add also missing <stdlib.h> where required.
преди 2 години
Pierre Ossman
b6d6db9b7c
Be consistent in including config.h
The generally recommended way is to include it from source files, not
headers. We had a mix of both. Let's try to be consistent and follow the
recommended way.
преди 2 години
Pierre Ossman
94de4dd0c4
Split test programs to benchmarking and unit tests
They have very different purpose, so make things easier to work
with by having multiple directories.
преди 4 години
Pierre Ossman
de6a5806d2
Add alpha blending support to surfaces
преди 7 години
Pierre Ossman
3d74d88806
Render on a temporary surface when needed
Some platforms draw directly to the screen, which means that updates
will flicker if we draw multiple layers. Prevent this by first
composing the update on a hidden surface.
преди 7 години
Pierre Ossman
403ac27d23
Abstract platform rendering to "surfaces"
This will allow us to render more things than just the framebuffer.
преди 7 години
Pierre Ossman
5b092766fc
Improve framebuffer performance test measurement
Some platforms impose a significant delay per frame, so we need
to separate that from the time spent shuffling pixels.
преди 7 години
Pierre Ossman
0f626ad79a
Do explict sync after XShmPutImage()
The complex logic waiting for events didn't result in any added
performance, so use the simpler approach.
преди 7 години
Pierre Ossman
38a1c70260
Add test to measure framebuffer performance
преди 7 години