-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
43 lines (33 loc) · 881 Bytes
/
main.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
//
// File: main.h
// Author: [email protected]
// Purpose:
// Demo program for loading information from a Wavefront OBJ 3-d model into an
// OpenGL program. This code is based upon tutorial code from James Maples
// (http://http://www.tutorialized.com/tutorial/Write-a-WaveFront-OpenGL-3D-object-loader-in-C)
// and is licensed under a CC BY-NC-SA license.
//
#ifndef _MAIN_H_
#define _MAIN_H_
#include <GL/glut.h>
#include <GL/GL.h>
#include <iostream>
using namespace std;
#include "wavefrontLoader.h"
bool keyState[256];
GLfloat angleX = 90;
GLfloat angleY = 90;
GLfloat angleZ = 90;
GLfloat myX = 0;
GLfloat myY = 0;
GLfloat myZ = 0;
// OpenGL variables
unsigned int g_persp = 1, g_ortho = 1;
// SDL stuff
int screenWidth = 800, screenHeight = 600, screenDepth;
bool screenFullScreen;
// Load models
WFObject model;
// Functions
void draw();
#endif