21 lines
571 B
C
21 lines
571 B
C
#ifndef GUARD_4770FE04EA612B028DF68960A453BD0B
|
|
#define GUARD_4770FE04EA612B028DF68960A453BD0B
|
|
|
|
#include "types.h"
|
|
#include "vec2i.h"
|
|
|
|
struct sw_framebuffer {
|
|
struct sw_vec2i size;
|
|
u32 _fb, _fbtex, _fbdepth;
|
|
};
|
|
|
|
struct sw_framebuffer *sw_framebuffer_create(struct sw_vec2i size);
|
|
void sw_framebuffer_destroy(struct sw_framebuffer *fb);
|
|
|
|
void sw_framebuffer_static_init();
|
|
|
|
void sw_framebuffer_copy_to_screen(struct sw_framebuffer *fb);
|
|
void sw_framebuffer_resize(struct sw_framebuffer *fb, struct sw_vec2i new_size);
|
|
|
|
#endif /* GUARD_4770FE04EA612B028DF68960A453BD0B */
|