Changed: #ifdef'd windows only stuff
Changed: Removed an old comment ~g2k
This commit is contained in:
@@ -1,19 +1,21 @@
|
|||||||
#ifndef __main_h__
|
#ifndef __main_h__
|
||||||
#define __main_h__
|
#define __main_h__
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
#include <windows.h> // Header file for windows
|
#include <windows.h> // Header file for windows
|
||||||
#include <stdio.h> // Header file for standard input/output
|
#endif
|
||||||
#include <gl\gl.h> // Header file for OpenGL32 library
|
#include <cstdio> // Header file for standard input/output
|
||||||
#include <gl\glu.h> // Header file for Glu32 library
|
#include <GL/gl.h> // Header file for OpenGL32 library
|
||||||
#include <gl\glaux.h> // Header file for GLaux library
|
#include <GL/glu.h> // Header file for Glu32 library
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "camera.h"
|
#include "camera.h"
|
||||||
#include "level.h"
|
#include "level.h"
|
||||||
#include "myGL.h"
|
#include "mygl.h"
|
||||||
#include "WorldDefs.h"
|
#include "worlddefs.h"
|
||||||
#include "mydefs.h"
|
#include "mydefs.h"
|
||||||
|
#include "screen.h"
|
||||||
|
#include "window.h"
|
||||||
#pragma warning(disable: 4786)
|
#pragma warning(disable: 4786)
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Variables
|
// Variables
|
||||||
@@ -27,13 +29,17 @@ static bool fullscreen=true; // Is window fullscreen flag
|
|||||||
|
|
||||||
|
|
||||||
//static SCREEN g_Screen = {800,600,16,1,"OpenArena"};
|
//static SCREEN g_Screen = {800,600,16,1,"OpenArena"};
|
||||||
|
#ifdef WIN32
|
||||||
static POINT mpos;
|
static POINT mpos;
|
||||||
|
#endif
|
||||||
static float lastTime = 0.0f; // This will hold the time from the last frame
|
static float lastTime = 0.0f; // This will hold the time from the last frame
|
||||||
static float currentTime;
|
static float currentTime;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Function Declarations
|
// Function Declarations
|
||||||
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); // Declaration for WndProc
|
|
||||||
|
//This shouldn't need to be here
|
||||||
|
//LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); // Declaration for WndProc
|
||||||
|
|
||||||
void InitControls(); // Sets up player controls
|
void InitControls(); // Sets up player controls
|
||||||
int InitGL(); // All setup for OpenGL goes here
|
int InitGL(); // All setup for OpenGL goes here
|
||||||
|
|||||||
Reference in New Issue
Block a user