-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
79 lines (60 loc) · 1.33 KB
/
global.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef GAMEDEF_H
#define GAMEDEF_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <SDL2/SDL_image.h>
#include <GL/glu.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#define GAME_NAME "JEWBOY DELUXO PARAMILLITARY 32 bit SCIMPVISION from india with l o v e"
/*
UNTITLED GAME. VERSION 0.1
Hey you slimey kikes and welcome the gamedef header. This is the heart of the
game's definations and is akin to the quakedef.h file in Quake 1.
Ukrainian Nationalist Authority over Territorial Control of Oblasts
*/
void g_init();
void g_render();
void g_update();
void g_close();
void g_renderinit();
void g_keyinput(const Uint8* g_keyinput);
void g_mouseinput(SDL_Event event);
void g_window_resize(int width, int height);
const Uint8* g_keystate;
void r_draw_testcube();
void r_draw_texcube();
void r_draw_texquad(float tex_scale, float size);
GLuint r_loadtexture(char* filepath);
SDL_Window* g_window;
SDL_GLContext g_context;
int screen_width;
int screen_height;
int FOV;
float deg2rad(float deg);
float delta;
float mouse_sense;
bool capture_mouse;
struct g_plyrdata
{
float x;
float y;
float z;
float pitch;
float yaw;
float roll;
float speed;
};
struct vector3
{
float x;
float y;
float z;
};
struct g_plyrdata g_plyr;
#endif