46 lines
827 B
C
46 lines
827 B
C
#ifndef WINDOW_H
|
|
#define WINDOW_H
|
|
|
|
|
|
#include "render.h"
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
struct window {
|
|
int id;
|
|
int width;
|
|
int height;
|
|
double dpi;
|
|
int rwidth;
|
|
int rheight;
|
|
bool render;
|
|
bool mouseFocus;
|
|
bool keyboardFocus;
|
|
bool fullscreen;
|
|
bool minimized;
|
|
bool iconified;
|
|
bool focus;
|
|
bool shown;
|
|
};
|
|
|
|
struct Texture;
|
|
|
|
extern struct window mainwin;
|
|
|
|
void window_resize(int width, int height);
|
|
void window_quit();
|
|
void window_focused(int focus);
|
|
void window_iconified(int s);
|
|
void window_suspended(int s);
|
|
|
|
void window_makefullscreen(struct window *w);
|
|
void window_togglefullscreen(struct window *w);
|
|
void window_unfullscreen(struct window *w);
|
|
|
|
void window_set_icon(const char *png);
|
|
void window_seticon(struct window *w, struct Texture *icon);
|
|
|
|
void window_render(struct window *w);
|
|
|
|
#endif
|