resonance 1.0.1
Loading...
Searching...
No Matches
APolygonEdge Struct Reference

One side of a convex polygon, walked a row at a time by the ACanvas polygon fills. More...

#include <apolygonedge.h>

Collaboration diagram for APolygonEdge:

Public Attributes

short mFrom
short mTo
int mX
int mStepX
short mTop
short mBottom
APoint mTexCoord
APoint mTexStep

Detailed Description

One side of a convex polygon, walked a row at a time by the ACanvas polygon fills.

The record is not polymorphic and has no RTTI, and the image retains no title for it. The name here follows the A prefix every other art library type uses and the routines that fill it, APolygon::SetupEdge() and APolygon::SetupTexturedEdge(), and is therefore inferred rather than recovered.

The record is 0x20 bytes. Both fills place their two edges 0x20 bytes apart on the stack, and the textured setup writes the last member at 0x1c. The flat fill leaves the texture members unwritten.

mTop and mBottom are destination rows and bound the rows the edge covers, from mTop up to but excluding mBottom. mX and both texture members are 24.8 fixed point.

Member Data Documentation

◆ mFrom

short APolygonEdge::mFrom

The polygon vertex the edge starts at. +0x00

◆ mTo

short APolygonEdge::mTo

The polygon vertex the edge ends at. +0x02

◆ mX

int APolygonEdge::mX

The column on the current row. +0x04

◆ mStepX

int APolygonEdge::mStepX

The column advance per row. +0x08

◆ mTop

short APolygonEdge::mTop

The first row the edge covers. +0x0c

◆ mBottom

short APolygonEdge::mBottom

One past the last row the edge covers. +0x0e

◆ mTexCoord

APoint APolygonEdge::mTexCoord

The texel position on the current row. +0x10

◆ mTexStep

APoint APolygonEdge::mTexStep

The texel advance per row. +0x18


The documentation for this struct was generated from the following file: