mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
5477352e93
I'd been considering it for a while, but in the end, all the issues it presented made me decide it wasn't worth merging and was never really worth keeping: it was a neat proof of concept but of little actual use, especially now everyone either has an OK GPU or would want to stick to 8-bit rendering anyway (sorry L-Havoc). However, both it and my merge work are preserved in git history :)
17 lines
447 B
C
17 lines
447 B
C
#ifndef __vid_sw_h
|
|
#define __vid_sw_h
|
|
|
|
struct vrect_s;
|
|
typedef struct sw_ctx_s {
|
|
int pixbytes;
|
|
void (*choose_visual) (struct sw_ctx_s *ctx);
|
|
void (*create_context) (struct sw_ctx_s *ctx);
|
|
void (*set_palette) (struct sw_ctx_s *ctx, const byte *palette);
|
|
void (*update) (struct sw_ctx_s *ctx, struct vrect_s *rects);
|
|
} sw_ctx_t;
|
|
|
|
extern sw_ctx_t *sw_ctx;
|
|
|
|
struct tex_s *sw_SCR_CaptureBGR (void);
|
|
|
|
#endif//__vid_sw_h
|