summaryrefslogtreecommitdiff
path: root/src/main.h
blob: 1ff41eca33aca12368b3e54973601a9111a3847b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MAIN_H_INCLUDED
#define MAIN_H_INCLUDED

#define GL_GLEXT_PROTOTYPES

#include <caca.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/glu.h>

typedef struct {
	caca_display_t *dp;
	caca_canvas_t *cv;
   	caca_dither_t *d;
	int w, h; // caca terminal size in characters
	SDL_Window* sdl_win;
	SDL_Renderer *sdl_rndr;
	SDL_Texture *sdl_target;
	void *raw_target;
	SDL_GLContext gl_ctx;
	Uint32 sdl_ticks;
	Uint32 framecount;
	Uint32 sc_framecount;
} graphical_env_t;
#endif