Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

graphics.cpp File Reference

#include <stdlib.h>
#include <SDL.h>
#include "graphics.h"
#include "../basegfx.h"
#include "../global.h"
#include "../ascstring.h"
#include "../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
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
int fullscreen = 1
 this variable determines whether the next call to initgraphics will open a window or a fullscreen session
bool dummyScreenPaletteSetup = false


Function Documentation

int copy2screen int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 111 of file graphics.cpp.

References Surface::assignDefaultPalette(), dummyScreenPaletteSetup, Surface::getBaseSurface(), hgmp, min(), screen, and tgraphmodeparameters::surface.

int copy2screen void   ) 
 

Definition at line 92 of file graphics.cpp.

Referenced by copySurface2screen(), collategraphicoperations::off(), releasetimeslice(), and collategraphicoperations::~collategraphicoperations().

Surface& getActiveSurface  ) 
 

Definition at line 83 of file graphics.cpp.

References agmp, and tgraphmodeparameters::surface.

Referenced by tshownewtanks::init().

void initASCGraphicSubsystem SDL_Surface *  _screen  ) 
 

Definition at line 43 of file graphics.cpp.

References agmp, tgraphmodeparameters::bitperpix, tgraphmodeparameters::byteperpix, tgraphmodeparameters::bytesperscanline, Surface::createSurface(), tgraphmodeparameters::directscreenaccess, dummyScreenPaletteSetup, hgmp, tgraphmodeparameters::linearaddress, tgraphmodeparameters::resolutionx, tgraphmodeparameters::resolutiony, tgraphmodeparameters::scanlinelength, tgraphmodeparameters::scanlinenumber, screen, tgraphmodeparameters::surface, and tgraphmodeparameters::windowstatus.

Referenced by InitScreenOp::execute(), and ASC_PG_App::InitScreen().

void setWindowCaption const char *  s  ) 
 

sets the caption of the main window

Definition at line 35 of file graphics.cpp.

Referenced by main().

void shutdownASCGraphicSubsystem  ) 
 

Definition at line 70 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 41 of file graphics.cpp.

Referenced by copy2screen(), and initASCGraphicSubsystem().

int fullscreen = 1
 

this variable determines whether the next call to initgraphics will open a window or a fullscreen session

Definition at line 32 of file graphics.cpp.

Referenced by main().

SDL_Surface* screen = NULL
 

Definition at line 31 of file graphics.cpp.

Referenced by PG_RectList::Blit(), copy2screen(), PG_ThemeWidget::CreateThemedSurface(), PG_Window::eventMouseButtonUp(), PG_Window::eventMouseMotion(), InitScreenOp::execute(), PG_Widget::FadeIn(), PG_Widget::FadeOut(), PG_Application::GetScreen(), PG_Widget::Hide(), initASCGraphicSubsystem(), PG_Widget::MoveWidget(), OverviewMapPanel::painter(), WeaponInfoLine::painter(), DashboardPanel::painter(), PG_Draw::CreateRGBSurface(), PG_Layout::GetParamRect(), StartupScreen::StartupScreen(), and PG_Widget::UpdateRect().


Generated on Tue Jun 24 01:46:59 2008 for Advanced Strategic Command by  doxygen 1.4.2