This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-04 13:13:01 -04:00

36 lines
441 B
C

/*
* draw.h
*
* Created on: Dec 7, 2017
* Author: nullifiedcat
*/
#pragma once
#include "glez.h"
#include <vec234.h>
struct vertex_main {
vec2 position;
vec2 tex_coords;
glez_rgba_t color;
int mode;
};
struct draw_state {
char dirty;
GLuint texture;
glez_font_t font;
} ds;
void ds_init();
void ds_destroy();
void ds_pre_render();
void ds_post_render();
void ds_bind_texture(GLuint texture);