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 year ago
Pierre Ossman
6881c895ab
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
1 year ago
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 year ago
Albrecht Schlosser
07d4e29042
Add missing FLTK include statements
Add also missing <stdlib.h> where required.
1 year ago
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 years ago
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 years ago
Pierre Ossman
de6a5806d2
Add alpha blending support to surfaces
7 years ago
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 years ago
Pierre Ossman
403ac27d23
Abstract platform rendering to "surfaces"
This will allow us to render more things than just the framebuffer.
7 years ago
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 years ago
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 years ago
Pierre Ossman
38a1c70260
Add test to measure framebuffer performance
7 years ago