22#ifndef ULTIMA4_GFX_SCREEN_H
23#define ULTIMA4_GFX_SCREEN_H
25#include "common/file.h"
26#include "graphics/screen.h"
27#include "ultima/ultima4/core/config.h"
28#include "ultima/ultima4/core/types.h"
29#include "ultima/ultima4/gfx/scale.h"
30#include "ultima/ultima4/map/direction.h"
31#include "ultima/ultima4/map/map_tile.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
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);
220 void screenWait(
int numberOfAnimationFrames);
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);
253 void screenTextAt(
int x,
int y,
const char *fmt, ...);
259 bool screenTileUpdate(
TileView *view,
const Coords &coords,
bool redraw =
true);
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);
Definition: managed_surface.h:51
ManagedSurface * scale(int16 newWidth, int16 newHeight, bool filtering=false, byte flip=0) const
Definition: scalerplugin.h:28
Definition: imagemgr.h:106
Definition: map_tile.h:34
void screenUpdate(TileView *view, bool showmap, bool blackout)
void screenShowChar(int chr, int x, int y)
void setMouseCursor(MouseCursor cursor)
void screenDrawImage(const Common::String &name, int x=0, int y=0)
int screenPointInMouseArea(int x, int y, const MouseArea *area)
Image * screenScale(Image *src, int scale, int n, int filter)
void screenScrollMessageArea()
void screenShake(int iterations)
void screenTextColor(int color)
Image * screenScaleDown(Image *src, int scale)
Definition: tileanim.h:216
Definition: tileview.h:42