22 #ifndef ULTIMA4_GFX_SCREEN_H 23 #define ULTIMA4_GFX_SCREEN_H 25 #include "graphics/screen.h" 26 #include "ultima/ultima4/core/config.h" 27 #include "ultima/ultima4/core/types.h" 28 #include "ultima/ultima4/gfx/scale.h" 29 #include "ultima/ultima4/map/direction.h" 30 #include "ultima/ultima4/map/map_tile.h" 31 #include "ultima/shared/core/file.h" 36 #define SCR_CYCLE_PER_SECOND 4 37 #define SCR_CYCLE_MAX 16 38 #define SCREEN_FRAME_TIME 50 39 #define SCREEN_WIDTH 320 40 #define SCREEN_HEIGHT 200 45 #define ____H 0x01 // obscured along the horizontal face 46 #define ___C_ 0x02 // obscured at the center 47 #define __V__ 0x04 // obscured along the vertical face 48 #define _N___ 0x80 // start of new raster 106 int _currentMouseCursor;
118 int _los[VIEWPORT_W][VIEWPORT_H];
120 uint32 _priorFrameTime;
132 void loadMouseCursors();
139 void screenLoadGraphicsFromConf();
145 void screenShowGemTile(
Layout *layout,
Map *map,
MapTile &t,
bool focus,
int x,
int y);
185 void screenGetLineTerms(
int x1,
int y1,
int x2,
int y2,
double *a,
double *b);
192 int screenPointsOnSameSideOfLine(
int x1,
int y1,
int x2,
int y2,
double a,
double b);
194 int screenPointInTriangle(
int x,
int y,
int tx1,
int ty1,
int tx2,
int ty2,
int tx3,
int ty3);
195 Layout *screenGetGemLayout(
const Map *map);
214 void setMouseCursor(MouseCursor cursor);
220 void screenWait(
int numberOfAnimationFrames);
225 void screenDrawImage(
const Common::String &name,
int x = 0,
int y = 0);
230 void screenEraseMapArea();
231 void screenEraseTextArea(
int x,
int y,
int width,
int height);
232 void screenGemUpdate();
234 void screenMessage(
const char *fmt, ...);
236 void screenRedrawMapArea();
237 void screenRedrawTextArea(
int x,
int y,
int width,
int height);
242 void screenScrollMessageArea();
247 void screenShake(
int iterations);
252 void screenShowChar(
int chr,
int x,
int y);
253 void screenTextAt(
int x,
int y,
const char *fmt, ...);
258 void screenTextColor(
int color);
259 bool screenTileUpdate(
TileView *view,
const Coords &coords,
bool redraw =
true);
266 void screenUpdate(
TileView *view,
bool showmap,
bool blackout);
267 void screenUpdateCursor();
268 void screenUpdateMoons();
269 void screenUpdateWind();
272 void screenShowCursor();
273 void screenHideCursor();
274 void screenEnableCursor();
275 void screenDisableCursor();
276 void screenSetCursorPos(
int x,
int y);
281 int screenPointInMouseArea(
int x,
int y,
const MouseArea *area);
296 Image *screenScaleDown(
Image *src,
int scale);
void clear(uint32 color=0)
Definition: managed_surface.h:51
Definition: imagemgr.h:105
Definition: tileanim.h:216
Definition: detection.h:27
Definition: tileview.h:42
Definition: map_tile.h:34
ManagedSurface * scale(int16 newWidth, int16 newHeight, bool filtering=false) const
Definition: scalerplugin.h:28
Definition: movie_decoder.h:32
Definition: containers.h:38