forked from Derailedzack/Client-C-Version
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindow.h
More file actions
25 lines (25 loc) · 717 Bytes
/
Window.h
File metadata and controls
25 lines (25 loc) · 717 Bytes
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
#pragma once
#include <stdbool.h>
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
typedef void(Create_Window_Func)(int w, int h);
typedef void (RenderLoop_func)();
typedef void (Destroy_Window_func)();
typedef void (OnRenderingFinished_func)();
typedef void (OnRenderingFailure_func)();
typedef enum WINDOW_TYPE
{
NONE,
GL,
SDL,
GDI,
DIRECTX,
LUA
}WINDOW_TYPE;
WINDOW_TYPE Current_window;
//void CreateWindow(Create_Window_Func* create_window);
void RenderLoop(RenderLoop_func* renderloop);
//void DestroyWindow(Destroy_Window_func* destroywindow);
void OnRenderingFinished(OnRenderingFinished_func* onrenderingfinished);
void OnRenderingFailure(OnRenderingFailure_func* onrenderingfailure);
void Tick();