#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 | |
| void | initASCGraphicSubsystem (SDL_Surface *_screen) |
| void | shutdownASCGraphicSubsystem () |
| Surface & | getActiveSurface () |
| int | copy2screen (void) |
| int | copy2screen (int x1, int y1, int x2, int y2) |
Variables | |
| SDL_Surface * | screen = NULL |
| bool | dummyScreenPaletteSetup = false |
| int copy2screen | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
Definition at line 110 of file graphics.cpp.
References Surface::assignDefaultPalette(), dummyScreenPaletteSetup, Surface::getBaseSurface(), hgmp, min(), screen, and tgraphmodeparameters::surface.
| int copy2screen | ( | void | ) |
Definition at line 91 of file graphics.cpp.
Referenced by copySurface2screen(), collategraphicoperations::off(), releasetimeslice(), and collategraphicoperations::~collategraphicoperations().
| Surface& getActiveSurface | ( | ) |
| void initASCGraphicSubsystem | ( | SDL_Surface * | _screen | ) |
Definition at line 42 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 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().
| bool dummyScreenPaletteSetup = false |
Definition at line 40 of file graphics.cpp.
Referenced by copy2screen(), and initASCGraphicSubsystem().
| SDL_Surface* screen = NULL |
Definition at line 31 of file graphics.cpp.
Referenced by copy2screen(), InitScreenOp::execute(), UpdateRectsOp::execute(), UpdateRectOp::execute(), initASCGraphicSubsystem(), Weathercast::painter(), OverviewMapPanel::painter(), WeaponInfoLine::painter(), DashboardPanel::painter(), Weathercast::paintWeatherArea(), and StartupScreen::StartupScreen().
1.5.1