mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-29 18:28:19 +03:00
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`.
18 lines
485 B
C
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__ */
|