aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_window.h
blob: 15528147be7f9345fbdd757297ddd041069d47d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SAFFRON_WINDOW_H
#define SAFFRON_WINDOW_H

#include <SDL3/SDL.h>
#include <SDL3/SDL_egl.h>
#include <SDL3/SDL_opengles2.h>
#include "saffron_event_hooks.h"
#include "saffron_widget.h"

typedef struct {
	SaffronWidget *root;
	SDL_Window *sdl_window;
	SDL_Renderer *renderer;
	int w, h;
	const char* title;
	SfInternalEventHook hooks[32];
	int hook_count;
	SDL_GLContext gl_context;
} SaffronWindow;

#endif