Advanced Strategic Command
Functions | Variables
graphics.cpp File Reference
#include <stdlib.h>
#include <SDL.h>
#include "graphics.h"
#include "../basegfx.h"
#include "../global.h"
#include "../ascstring.h"
#include "../util/messaginghub.h"
#include "sdlstretch.cpp"
Include dependency graph for graphics.cpp:

Go to the source code of this file.

Functions

void setWindowCaption (const char *s)
 sets the caption of the main window More...
 
void initASCGraphicSubsystem (SDL_Surface *_screen)
 
void shutdownASCGraphicSubsystem ()
 
SurfacegetActiveSurface ()
 
int copy2screen (void)
 
int copy2screen (int x1, int y1, int x2, int y2)
 

Variables

SDL_Surface * screen = NULL
 
bool dummyScreenPaletteSetup = false
 

Function Documentation

int copy2screen ( void  )
int copy2screen ( int  x1,
int  y1,
int  x2,
int  y2 
)
Surface& getActiveSurface ( )

Definition at line 82 of file graphics.cpp.

References agmp, and tgraphmodeparameters::surface.

void initASCGraphicSubsystem ( SDL_Surface *  _screen)
void setWindowCaption ( const char *  s)

sets the caption of the main window

Definition at line 34 of file graphics.cpp.

Referenced by main().

void shutdownASCGraphicSubsystem ( )

Definition at line 69 of file graphics.cpp.

References agmp, and tgraphmodeparameters::surface.

Referenced by ASC_PG_App::~ASC_PG_App().

Variable Documentation

bool dummyScreenPaletteSetup = false

Definition at line 40 of file graphics.cpp.

Referenced by copy2screen(), and initASCGraphicSubsystem().

SDL_Surface* screen = NULL