2021-01-09 22:21:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "xash3d_types.h"
|
|
|
|
|
2021-01-18 22:33:22 +01:00
|
|
|
typedef struct { uint8_t r, g, b, a; } color_rgba8_t;
|
|
|
|
|
|
|
|
typedef struct render_state_s {
|
|
|
|
color_rgba8_t tri_color;
|
|
|
|
qboolean fog_allowed;
|
|
|
|
qboolean mode_2d;
|
|
|
|
int blending_mode; // kRenderNormal, ...
|
|
|
|
} render_state_t;
|
|
|
|
|
|
|
|
extern render_state_t vk_renderstate;
|
|
|
|
|
2021-01-09 22:21:58 +01:00
|
|
|
void GL_SetRenderMode( int renderMode );
|
|
|
|
void TriColor4ub( unsigned char r, unsigned char g, unsigned char b, unsigned char a );
|
|
|
|
void R_AllowFog( qboolean allow );
|
|
|
|
void R_Set2DMode( qboolean enable );
|