no message

This was SVN commit r43.
This commit is contained in:
janwas 2003-11-06 20:10:52 +00:00
parent 48e4105926
commit 09031a412b
4 changed files with 5 additions and 36 deletions

View File

@ -23,7 +23,7 @@ CRenderer::~CRenderer ()
} }
bool CRenderer::Initialize (HWND hwnd, int width, int height, int depth) bool CRenderer::Initialize (int width, int height, int depth)
{ {
m_Width = width; m_Width = width;
m_Height = height; m_Height = height;

View File

@ -1,7 +1,6 @@
#ifndef RENDERER_H #ifndef RENDERER_H
#define RENDERER_H #define RENDERER_H
#include <windows.h>
#include "ogl.h" #include "ogl.h"
#include "Terrain.H" #include "Terrain.H"
@ -15,7 +14,7 @@ class CRenderer
CRenderer(); CRenderer();
~CRenderer(); ~CRenderer();
bool Initialize (HWND hwnd, int width, int height, int depth); bool Initialize (int width, int height, int depth);
void Shutdown (); void Shutdown ();
void RenderTerrain (CTerrain *terrain, CCamera *camera); void RenderTerrain (CTerrain *terrain, CCamera *camera);

View File

@ -11,28 +11,8 @@
#ifndef TYPES_H #ifndef TYPES_H
#define TYPES_H #define TYPES_H
#include <windows.h>
#include <stdio.h> #include <stdio.h>
//basic return types
enum FRESULT
{
R_OK = 0,
R_FAIL, //use if nothing else matches the return type
R_BADPARAMS, //one or more of the parameters were invalid
R_NOMEMORY, //not enough memory for an operation
R_FILE_NOOPEN, //file could not be opened
R_FILE_NOREAD, //file could not be read
R_FILE_INVALID //file is corrupt or not supported
};
//string related
#define MAX_NAME_LENGTH (50)
#define MAX_PATH_LENGTH (100)
//color structures //color structures
struct SColor4ub struct SColor4ub
{ {
@ -51,14 +31,9 @@ struct SColor4f
}; };
//all the major classes: //all the major classes:
class CBitmap;
class CCamera; class CCamera;
class CDiesel3DVertex;
class CGameResource;
class CEngine; class CEngine;
class CEntity; class CEntity;
@ -78,7 +53,6 @@ class CPlane;
class CRenderer; class CRenderer;
class CTerrain; class CTerrain;
class CTexture;
class CVector3D; class CVector3D;

View File

@ -1,5 +1,3 @@
#include <windows.h>
#include "Matrix3D.H" #include "Matrix3D.H"
#include "Renderer.H" #include "Renderer.H"
#include "Terrain.H" #include "Terrain.H"
@ -8,9 +6,9 @@
#include "wsdl.h" #include "wsdl.h"
#include "tex.h" #include "tex.h"
// TODO: fix scrolling hack - framerate independent, use SDL
#include "win.h" // REMOVEME
HWND InitializeGame (HINSTANCE hInstance);
void DestroyGame();
void InitScene (); void InitScene ();
void InitResources (); void InitResources ();
@ -19,8 +17,6 @@ void RenderScene ();
extern bool keys[256]; extern bool keys[256];
HWND GameWindow;
CMatrix3D g_WorldMat; CMatrix3D g_WorldMat;
CRenderer g_Renderer; CRenderer g_Renderer;
CTerrain g_Terrain; CTerrain g_Terrain;
@ -50,7 +46,7 @@ extern int xres, yres;
void terr_init() void terr_init()
{ {
g_Renderer.Initialize (GameWindow, 1280, 1024, 32); g_Renderer.Initialize (1280, 1024, 32);
InitResources (); InitResources ();
InitScene (); InitScene ();