Skip to Content
The Alchemy Project

struct PROJECTION

The projection group. More…

Declared in definitions.h.

Fields

NameDescription
FIXEDfocal16.16 pixels (syPerspective)
FIXEDnearnearer points are not drawn; 16.16 along the view axis
FIXEDfarfarther points are not drawn; 16.16 along the view axis
Sint32centerXscreen pixels
Sint32centerYscreen pixels

Description

The projection group. The 3D projection. The 3D projection onto the screen: its focal length (80, half the screen height, over the tangent of half the vertical field of view, syPerspective), near and far depths, and the screen point the view centres on.

struct PROJECTION

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

Definition at line 1190 of file definitions.h.

Fields in detail

focal

FIXED focal

16.16 pixels (syPerspective)

near

FIXED near

nearer points are not drawn; 16.16 along the view axis

far

FIXED far

farther points are not drawn; 16.16 along the view axis

centerX

Sint32 centerX

screen pixels

centerY

Sint32 centerY

screen pixels