GetTextCelCoords

Retrieves text cel's CCB coordinates.

Synopsis

void GetTextCelCoords (TextCel *tCel, Coord *ccbX, Coord *ccbY)

Description

Retrieves the TextCel CCB coordinates (ccb_XPos and ccb_YPos).

If you find it convenient to do so, work with the CCB's position, size, and perspective fields directly; you don't have to use this function to safely obtain the on screen position.

The ccbX and ccbY values are interpreted as frac16 values (the same as the ccb_XPos and ccb_YPos fields themselves).

Arguments

tCel
Pointer to a TextCel structure.
ccbX
Pointer to a variable to receive the x coordinate for the text cel CCB.
ccbY
Pointer to a variable to receive the y coordinate for the text cel CCB.

Associated Files

lib3do.lib, textlib.h