#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. |
main() must change this when the screen settings or window size change. The drawing functions need it for the colors and the resolution setting.
Definition at line 134 of file render.h.
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 |
Uint16 DisplayInfo_t::lh |
The height of the display window in logical positions.
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.
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.
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.
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.
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().
True when the battle field is too large to fit on screen so it must scroll with the player's movement.
Definition at line 195 of file render.h.
Referenced by GameInit(), and SetupScrolling().
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().
If true, the names of the players will be drawn above their tank.
Definition at line 188 of file render.h.
Referenced by AddPlayer(), GameRun(), main(), PlacePlayerLabel(), and RenderGame().