shithub: libgraphics

Download patch

ref: f98dcc45225fa78341aba06137b05b9b6b89cb12
parent: 2c410b56f801708ec11a1af6cdd995d69e9db059
author: rodri <rgl@antares-labs.eu>
date: Thu Aug 29 14:19:15 EDT 2024

implement a general raster interface for the framebuffers.

got a bit tired of having to add a ulong *buf every time
i needed to get some data out of the shaders, so i made
it possible to create as many extra buffers as needed,
which then can be addressed from the fragment shader
and drawn using the same drawing routines that were used
for the color buffer.

these so called Rasters are very similar to the OpenGL
FBOs, in case you are familiar, but we address them by
strings instead of numbers. and they can also be used as
textures if you create one (see alloctexture) and then
memdraw into it after every shot.