DisplayInfo_t Struct Reference
[Render System]

Contains globally accessible information about the display. More...

#include <render.h>


Data Fields

union {
   struct {
      Bool   scrollField: 1
 True when the battle field is too large to fit on screen so it must scroll with the player's movement.
      Bool   showGame: 1
 Render the game instead of the menu.
      Bool   showLabels: 1
 If true, the names of the players will be drawn above their tank.
   } 
   Uint8   flags
 A group of global application specific flags that relate to what and how things are rendered.
}; 
SDL_Surface * display
 The surface that represents the viewable area presented to the user.
Uint16 lh
 The height of the display window in logical positions.
Uint16 luh
Uint16 luw
 Width in physical positions of one logical unit.
Uint16 lw
 The width of the display window in logical positions.
Uint16 ph
 The height of the display window in pixels.
Uint16 pw
 The width of the display window in pixels.


Detailed Description

Contains globally accessible information about the display.

main() must change this when the screen settings or window size change. The drawing functions need it for the colors and the resolution setting.

Author:
Jeff Jackowski

Definition at line 134 of file render.h.


Field Documentation

union { ... }

SDL_Surface* DisplayInfo_t::display

The surface that represents the viewable area presented to the user.

Definition at line 138 of file render.h.

Referenced by ColorBlend(), GameRun(), GraphicReset(), main(), Render(), ResizeWindow(), and SetupColorVals().

Uint8 DisplayInfo_t::flags

A group of global application specific flags that relate to what and how things are rendered.

Definition at line 174 of file render.h.

Uint16 DisplayInfo_t::lh

The height of the display window in logical positions.

Note:
This field is specific to this game and is not used by the rendering library.

Definition at line 162 of file render.h.

Referenced by BfldErrInit(), GameInit(), ResizeWindow(), SetupScrolling(), SplashInit(), and TeamSelInit().

Uint16 DisplayInfo_t::luh

Definition at line 168 of file render.h.

Referenced by AddPlayer(), BfldErrInit(), DrawTank(), GameInit(), main(), MoveShell(), MoveTank(), ObstacleInit(), PlacePlayerLabel(), ReadPlayer(), ResizeWindow(), SpawnTank(), SplashInit(), and TeamSelInit().

Uint16 DisplayInfo_t::luw

Width in physical positions of one logical unit.

Note:
This field is specific to this game and is not used by the rendering library.

Definition at line 168 of file render.h.

Referenced by AddPlayer(), BfldErrInit(), BfldErrResize(), DrawTank(), GameInit(), main(), MoveTank(), ObstacleInit(), PlacePlayerLabel(), ResizeWindow(), SpawnTank(), SplashInit(), SplashResize(), and TeamSelInit().

Uint16 DisplayInfo_t::lw

The width of the display window in logical positions.

Note:
This field is specific to this game and is not used by the rendering library.

Definition at line 156 of file render.h.

Referenced by BfldErrInit(), GameInit(), ResizeWindow(), SetupScrolling(), SplashInit(), and TeamSelInit().

Uint16 DisplayInfo_t::ph

The height of the display window in pixels.

Warning:
Any change of this value after initalizing the render system should be accompanied by a call to RenderClearStates().

Definition at line 150 of file render.h.

Referenced by BfldErrInit(), BfldErrResize(), ClearRenderItem(), GameInit(), GameRun(), GraphicReset(), main(), MenuRun(), PlacePlayerLabel(), PlaceRenderItem(), Render(), ResizeWindow(), SetupMenu(), SplashInit(), SplashResize(), and TeamSelInit().

Uint16 DisplayInfo_t::pw

The width of the display window in pixels.

Warning:
Any change of this value after initalizing the render system should be accompanied by a call to RenderClearStates().

Definition at line 144 of file render.h.

Referenced by AddNotice(), BfldErrInit(), BfldErrResize(), ClearRenderItem(), GameInit(), GameRun(), GraphicReset(), main(), MenuRun(), PlacePlayerLabel(), PlaceRenderItem(), Render(), RenderScore(), ResizeWindow(), SetupMenu(), SplashInit(), SplashResize(), TeamSelInit(), and UpdateNotices().

Bool DisplayInfo_t::scrollField

True when the battle field is too large to fit on screen so it must scroll with the player's movement.

Note:
This field is specific to this game and is not used by the rendering library.

Definition at line 195 of file render.h.

Referenced by GameInit(), and SetupScrolling().

Bool DisplayInfo_t::showGame

Render the game instead of the menu.

Needed because the game simulation loop in UpdatePlayers() is called whenever the process is a server or is connected to a server.

Definition at line 181 of file render.h.

Referenced by GameInit(), and GameUninit().

Bool DisplayInfo_t::showLabels

If true, the names of the players will be drawn above their tank.

Note:
This field is specific to this game and is not used by the rendering library.

Definition at line 188 of file render.h.

Referenced by AddPlayer(), GameRun(), main(), PlacePlayerLabel(), and RenderGame().


The documentation for this struct was generated from the following file:
Generated on Mon May 28 04:41:44 2007 for Retro Tank Super Attack by  doxygen 1.5.2