23#ifndef TINSEL_POLYGONS_H
24#define TINSEL_POLYGONS_H
27#include "tinsel/scene.h"
36 BLOCK, EFFECT, PATH, REFER, TAG,
37 EX_BLOCK, EX_EFFECT, EX_PATH, EX_REFER, EX_TAG,
41 SCALE, EX_SCALE, SHAPE
64 PS_NO_POINT, PS_NOT_POINTING, PS_POINTING
79bool IsInPolygon(
int xt,
int yt,
HPOLYGON p);
80HPOLYGON InPolygon(
int xt,
int yt, PTYPE type);
81void BlockingCorner(
HPOLYGON poly,
int *x,
int *y,
int tarx,
int tary);
82void FindBestPoint(
HPOLYGON path,
int *x,
int *y,
int *line);
85int NearestEndNode(
HPOLYGON path,
int x,
int y);
87int NearestNodeWithin(
HPOLYGON npath,
int x,
int y);
89bool IsPolyCorner(
HPOLYGON hPath,
int x,
int y);
91int GetBrightness(
HPOLYGON hPath,
int y);
92void getNpathNode(
HPOLYGON npath,
int node,
int *px,
int *py);
94void GetPolyNode(
HPOLYGON hp,
int *pNodeX,
int *pNodeY);
100void DisableBlock(
int block);
101void EnableBlock(
int block);
102void DisableEffect(
int effect);
103void EnableEffect(
int effect);
104void DisablePath(
int path);
105void EnablePath(
int path);
106void DisableRefer(
int refer);
107void EnableRefer(
int refer);
111void DisableExit(
int exitno);
112void EnableExit(
int exitno);
115void InitPolygons(
SCNHANDLE ph,
int numPoly,
bool bRestart);
119void SaveDeadPolys(
bool *sdp);
120void RestoreDeadPolys(
bool *sdp);
135void SetPolyPointState(
HPOLYGON hp, PSTATE ps);
136void SetPolyTagState(
HPOLYGON hp, TSTATE ts);
139void MaxPolygons(
int maxPolys);
143void SetPolyPointedTo(
HPOLYGON hp,
bool bPointedTo);
145void SetPolyTagWanted(
HPOLYGON hp,
bool bTagWanted,
bool bCursor,
SCNHANDLE hOverrideTag);
147bool PolyTagFollowsCursor(
HPOLYGON hp);
149bool IsTagPolygon(
int tagno);
150void GetPolyMidBottom(
HPOLYGON hp,
int *pX,
int *pY);
152void MovePolygon(PTYPE ptype,
int id,
int x,
int y);
153void MovePolygonTo(PTYPE ptype,
int id,
int x,
int y);
161void UpdateGroundPlane();
163enum class NoteBookPoly {
184 virtual NoteBookPoly mostSpecificHit(
const Common::Point &point)
const = 0;
186 virtual bool isInsideNotebook(
const Common::Point &point)
const = 0;
Definition: polygons.h:178
#define CORO_PARAM
Definition: coroutines.h:107
SCALE
Definition: scene.h:62
uint32 SCNHANDLE
Definition: dw.h:31
int HPOLYGON
Definition: dw.h:34
REEL
Definition: scene.h:70
Definition: polygons.h:72