Skip to Content
The Alchemy Project

struct PROJECTION

The projection group. More…

Declared in definitions.h.

Fields

NameDescription
FIXEDfocal16.16 pixels
FIXEDnearnearest depth drawn, 16.16 pixels
FIXEDfarfarthest depth drawn, 16.16 pixels
Sint32centerXscreen pixels
Sint32centerYscreen pixels

Description

The projection group. The 3D projection the battle engine and the field engine draw with (syPerspective, syConvert3Dto2D). The 3D projection onto the screen: its focal length, near and far depths, and the screen point the view centres on.

struct PROJECTION

Referenced by ProjectionWork, syConvert3Dto2D() and sySetScreenDist().

Definition at line 1286 of file definitions.h.

Fields in detail

focal

FIXED focal

16.16 pixels

near

FIXED near

nearest depth drawn, 16.16 pixels

far

FIXED far

farthest depth drawn, 16.16 pixels

centerX

Sint32 centerX

screen pixels

centerY

Sint32 centerY

screen pixels