9#ifndef RENDERER_GRAPHICS_H
10#define RENDERER_GRAPHICS_H
16#define SDL_MAIN_HANDLED
18#include <SDL2/SDL_ttf.h>
23#define OV_DEBUG_ENABLE 1
55 SDL_Renderer *renderer;
57 SDL_Texture *target_texture;
60 SDL_Surface *text_surface[MAX_WIGS];
61 SDL_Texture *text_texture[MAX_WIGS];
63 const char *fonttitle;
68 int pixel_data[MAXWID*MAXHEI];
69 char *last_pixel_data;
82 const char *names[MAX_WIGS];
83 vec2 wig_sizes[MAX_WIGS];
84 vec2 wig_pos[MAX_WIGS];
118void OV_renderFrame(SDL_Event event);
119void OV_setFlags(
int flag);
120void OV_setFont(
const char *font);
121int OVInit(SDL_Window *window,
int width,
int height,
const char *winname);
color header for the Oblivision API.
struct vec2_s vec2
Vector data for things like window position/sizes.
void OV_setBackground(OV_COLOR bg_color)
Sets the background color of your Oblivision window.
Definition oblivision.c:25
void OV_pollEvent(SDL_Event event)
runs the SDL event poll loop to register key events and update window positions
Definition oblivision.c:183
struct color_s OV_COLOR
A "non-proprietary" typedef holding colordata.
void OV_colorTest()
Runs a simple color tester.
Definition oblivision.c:11
int OV_createWindow(int width, int height, vec2 pos, const char *name)
Initializes and creates an Oblivision window.
Definition oblivision.c:39
Definition oblivision.h:28
Definition oblivision.h:35
Main structure for managing all pixel data, textures, sizes, etc.
Definition oblivision.h:51