src/tron/gFloor.cpp File Reference

#include "rSDL.h"
#include "defs.h"
#include "gStuff.h"
#include "gLogo.h"
#include "eFloor.h"
#include "tConfiguration.h"
#include "rScreen.h"
#include "rTexture.h"
#include "rRender.h"
#include "uMenu.h"
#include "tSysTime.h"
#include "nConfig.h"

Include dependency graph for gFloor.cpp:

Go to the source code of this file.

Classes

class  gFloor

Functions

static void MenuBackground ()

Variables

static REAL sg_gridSize = 1
static tSettingItem< REALg_s ("GRID_SIZE", sg_gridSize)
static REAL sg_gridSizeMoviePack = 2
static tSettingItem< REALg_sm ("GRID_SIZE_MOVIEPACK", sg_gridSizeMoviePack)
static REAL moviepack_floor_red = .5
static REAL moviepack_floor_green = .5
static REAL moviepack_floor_blue = .5
static REAL floor_red = .15
static REAL floor_green = .3
static REAL floor_blue = .15
static tSettingItem< REALmfr ("MOVIEPACK_FLOOR_RED", moviepack_floor_red)
static tSettingItem< REALmfg ("MOVIEPACK_FLOOR_GREEN", moviepack_floor_green)
static tSettingItem< REALmfb ("MOVIEPACK_FLOOR_BLUE", moviepack_floor_blue)
static tSettingItem< REALfr ("FLOOR_RED", floor_red)
static tSettingItem< REALfg ("FLOOR_GREEN", floor_green)
static tSettingItem< REALfb ("FLOOR_BLUE", floor_blue)
static rFileTexture floor_a (rTextureGroups::TEX_FLOOR,"textures/floor_a.png", 1, 1)
static rFileTexture floor_b (rTextureGroups::TEX_FLOOR,"textures/floor_b.png", 1, 1)
static rFileTexture mp_floor_a (rTextureGroups::TEX_FLOOR,"moviepack/floor_a.png", 1, 1)
static rFileTexture mp_floor_b (rTextureGroups::TEX_FLOOR,"moviepack/floor_b.png", 1, 1)
rFileTexture ArmageTron_floor (rTextureGroups::TEX_FLOOR,"textures/floor.png", 1, 1)
rFileTexture ArmageTron_mp_floor (rTextureGroups::TEX_FLOOR,"moviepack/floor.png", 1, 1)
static gFloor GFLOOR
static uCallbackMenuBackground
backgr & 
MenuBackground


Function Documentation

static void MenuBackground (  )  [static]

Definition at line 161 of file gFloor.cpp.

References BeginQuads(), gLogo::Display(), height, REAL, RenderEnd(), se_glFloorColor(), se_glFloorTexture(), sr_screenHeight, sr_screenWidth, rTextureGroups::TEX_FLOOR, TexMatrix(), rTextureGroups::TextureMode, tSysTimeFloat(), width, and x.

00161                             {
00162     if (rTextureGroups::TextureMode[rTextureGroups::TEX_FLOOR]>=0){
00163         se_glFloorTexture();
00164         se_glFloorColor(1,1);
00165 
00166         REAL x=tSysTimeFloat()/3.0;
00167         REAL y=tSysTimeFloat()/5.0;
00168         REAL width=16;
00169         REAL height=12;
00170 
00171         static GLfloat tm[4][4]={{.8,.2,0,0},
00172                                  {-.2,.8,0,0},
00173                                  {0,0,1,0},
00174                                  {0,0,0,1}};
00175 
00176         TexMatrix();
00177         glLoadMatrixf(&tm[0][0]);
00178 
00179         glScalef((REAL)sr_screenWidth/sr_screenHeight/4. * 3., 1., 1.);
00180 
00181 
00182         BeginQuads();
00183 
00184         glTexCoord2d(x,y);
00185         glVertex2f(-1,-1);
00186 
00187         glTexCoord2d(x+width,y);
00188         glVertex2f(1,-1);
00189 
00190         glTexCoord2d(x+width,y-height);
00191         glVertex2f(1,1);
00192 
00193         glTexCoord2d(x,y-height);
00194         glVertex2f(-1,1);
00195 
00196         RenderEnd();
00197 
00198         TexMatrix();
00199         glLoadIdentity();
00200     }
00201 
00202     gLogo::Display();
00203 }

Here is the call graph for this function:


Variable Documentation

rFileTexture ArmageTron_floor(rTextureGroups::TEX_FLOOR,"textures/floor.png", 1, 1)

Referenced by gFloor::glFloorTexture().

rFileTexture ArmageTron_mp_floor(rTextureGroups::TEX_FLOOR,"moviepack/floor.png", 1, 1)

Referenced by gFloor::glFloorTexture().

tSettingItem<REAL> fb("FLOOR_BLUE", floor_blue)

tSettingItem<REAL> fg("FLOOR_GREEN", floor_green)

rFileTexture floor_a(rTextureGroups::TEX_FLOOR,"textures/floor_a.png", 1, 1) [static]

Referenced by gFloor::glFloorTexture_a().

rFileTexture floor_b(rTextureGroups::TEX_FLOOR,"textures/floor_b.png", 1, 1) [static]

Referenced by gFloor::glFloorTexture_b().

REAL floor_blue = .15 [static]

Definition at line 45 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

REAL floor_green = .3 [static]

Definition at line 45 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

REAL floor_red = .15 [static]

Definition at line 45 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

tSettingItem<REAL> fr("FLOOR_RED", floor_red)

Referenced by gCycleMovement::GetMaxSpaceAhead(), and gCycle::TimestepCore().

tSettingItem<REAL> g_s("GRID_SIZE", sg_gridSize) [static]

tSettingItem<REAL> g_sm("GRID_SIZE_MOVIEPACK", sg_gridSizeMoviePack) [static]

gFloor GFLOOR [static]

Definition at line 159 of file gFloor.cpp.

uCallbackMenuBackground backgr& MenuBackground [static]

Definition at line 205 of file gFloor.cpp.

tSettingItem<REAL> mfb("MOVIEPACK_FLOOR_BLUE", moviepack_floor_blue)

tSettingItem<REAL> mfg("MOVIEPACK_FLOOR_GREEN", moviepack_floor_green)

tSettingItem<REAL> mfr("MOVIEPACK_FLOOR_RED", moviepack_floor_red) [static]

REAL moviepack_floor_blue = .5 [static]

Definition at line 44 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

REAL moviepack_floor_green = .5 [static]

Definition at line 44 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

REAL moviepack_floor_red = .5 [static]

Definition at line 44 of file gFloor.cpp.

Referenced by gFloor::FloorColor().

rFileTexture mp_floor_a(rTextureGroups::TEX_FLOOR,"moviepack/floor_a.png", 1, 1) [static]

Referenced by gFloor::glFloorTexture_a().

rFileTexture mp_floor_b(rTextureGroups::TEX_FLOOR,"moviepack/floor_b.png", 1, 1) [static]

Referenced by gFloor::glFloorTexture_b().

REAL sg_gridSize = 1 [static]

Definition at line 39 of file gFloor.cpp.

Referenced by gFloor::GridSize().

REAL sg_gridSizeMoviePack = 2 [static]

Definition at line 41 of file gFloor.cpp.

Referenced by gFloor::GridSize().


Generated on Sat Mar 15 23:15:22 2008 for Armagetron Advanced by  doxygen 1.5.4