D:/WorkAround/prequengine/trunk/src/main.h File Reference

This file contains the main engine functions. It also contains configurations file definitions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ConfigFile

Defines

#define DEFAULT_SCREEN_WIDTH   640
#define DEFAULT_SCREEN_HEIGHT   480
#define SCALE   1
#define SCREEN_WIDTH   DEFAULT_SCREEN_WIDTH * SCALE
#define SCREEN_HEIGHT   DEFAULT_SCREEN_HEIGHT * SCALE
#define FLASCREEN_WIDTH   320
#define FLASCREEN_HEIGHT   200
#define DEFAULT_FRAMES_PER_SECOND   500
#define NUMOFCOLORS   256

Functions

void init_vars ()

Variables

ConfigFile cfgfile
char * cdDir


Detailed Description

This file contains the main engine functions. It also contains configurations file definitions.

Prequengine: a Little Big Adventure engine

Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file main.h.


Define Documentation

#define DEFAULT_FRAMES_PER_SECOND   500

Default frames per second

Definition at line 44 of file main.h.

Referenced by init_configurations().

#define DEFAULT_SCREEN_HEIGHT   480

Original screen height

Definition at line 32 of file main.h.

#define DEFAULT_SCREEN_WIDTH   640

Original screen width

Definition at line 30 of file main.h.

#define FLASCREEN_HEIGHT   200

Original FLA screen height

Definition at line 42 of file main.h.

Referenced by process_frame(), and scale_fla_2x().

#define FLASCREEN_WIDTH   320

Original FLA screen width

Definition at line 40 of file main.h.

Referenced by process_frame(), and scale_fla_2x().

#define NUMOFCOLORS   256

Number of colors used in the game

Definition at line 47 of file main.h.

Referenced by adjust_palette(), black_2_white(), convert_pal_2_RGBA(), and set_back_pal().

#define SCALE   1

Scale screen to double size

Definition at line 34 of file main.h.

Referenced by copy_screen(), and scale_fla_2x().

#define SCREEN_HEIGHT   DEFAULT_SCREEN_HEIGHT * SCALE

#define SCREEN_WIDTH   DEFAULT_SCREEN_WIDTH * SCALE


Function Documentation

void init_vars (  ) 


Variable Documentation

char* cdDir

CD Game directory

Definition at line 121 of file main.h.

Referenced by init_cdrom().


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5