2021-11-30 21:29:18 -06:00
|
|
|
#ifndef RENDER_H
|
|
|
|
#define RENDER_H
|
|
|
|
|
2022-11-23 17:29:50 -06:00
|
|
|
#define GLFW_INCLUDE_NONE
|
2022-02-06 10:14:57 -06:00
|
|
|
#include <GLFW/glfw3.h>
|
2021-11-30 21:29:18 -06:00
|
|
|
|
2023-05-22 00:08:08 -05:00
|
|
|
#include "sokol/sokol_gfx.h"
|
2023-05-16 01:31:13 -05:00
|
|
|
|
|
|
|
struct uv_n {
|
|
|
|
unsigned short u;
|
|
|
|
unsigned short v;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct st_n {
|
|
|
|
struct uv_n s;
|
|
|
|
struct uv_n t;
|
|
|
|
};
|
|
|
|
|
2023-05-22 00:08:08 -05:00
|
|
|
static sg_blend_state blend_trans = {
|
|
|
|
.enabled = true,
|
|
|
|
.src_factor_rgb = SG_BLENDFACTOR_SRC_ALPHA,
|
|
|
|
.dst_factor_rgb = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
|
|
|
|
.src_factor_alpha = SG_BLENDFACTOR_SRC_ALPHA,
|
|
|
|
.src_factor_alpha = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-02-06 10:14:57 -06:00
|
|
|
#endif
|