25 lines
845 B
C
25 lines
845 B
C
#ifndef R_GL_H
|
|
#define R_GL_H
|
|
#include <SDL/SDL_opengl.h>
|
|
#include "../ui/elements.h"
|
|
#include "interface.h"
|
|
#include "../interfaces.h"
|
|
|
|
void r_gl_Init();
|
|
void r_gl_Reinit();
|
|
void r_gl_Close();
|
|
void r_gl_renderElements(struct ElementList *list);
|
|
void r_gl_renderElement(struct Element *element);
|
|
void r_gl_renderScreen();
|
|
void r_gl_clearScreen();
|
|
|
|
void r_gl_renderText(struct Font *font, const char *string, int x, int y);
|
|
void r_gl_renderSprite(struct Spritesheet *sheet, void *surface, int id, int x, int y);
|
|
int r_gl_loadSpritesheet(struct Spritesheet *spritesheet, char *file_name, int width, int height, int columns);
|
|
GLuint r_gl_createTexture(GLuint *texture, SDL_Surface *surface);
|
|
|
|
void r_gl_setupElement(struct Element *element);
|
|
void r_gl_cleanElement(struct Element *element);
|
|
void r_gl_changeElement(struct Element *element);
|
|
#endif
|