Files
kichikuou_xsystem35-sdl2/modules/lib/surface.h
T
kichikuou e711d5786e Make agsurface_t backed by SDL_Surface
This adds `sdl_surface` field to agsurface_t. `agsurface->pixel` is now
set to `agsurfae->sdl_surface->pixels`.

Note that the `sdl_surface` field does not have alpha; transparent
surfaces have a separate alpha plane in `agsurface->alpha`.
2025-02-16 13:13:13 +09:00

18 lines
485 B
C

#ifndef __SURFACE_H__
#define __SURFACE_H__
#include "portab.h"
#include "ags.h"
#define surface_t agsurface_t
extern surface_t *sf_create_surface(int width, int height, int depth);
extern surface_t *sf_create_alpha(int width, int height);
extern surface_t *sf_create_pixel(int width, int height, int depth);
extern void sf_free(surface_t *s);
extern surface_t *sf_dup(surface_t *in);
extern void sf_copyall(surface_t *dst, surface_t *src);
#endif /* __SURFACE_H__ */