Get real point

From Bennu Wiki
Jump to: navigation, search


Definition

INT get_real_point( <INT controlpoint> , <INT POINTER x> , <INT POINTER y> )

Finds the actual position on the screen of the calling process, given its graphic and the specified controlpoint on this graphic. All process-related variables are taken into account, like x, y, angle, even ctype. These coordinates are then assigned to the variables pointed to by x and y.

Parameters

INT controlpoint - The controlpoint on the process' graphic of which the actual position is wanted.
INT POINTER x - A pointer to an integer to which the X-coordinate will be assigned.
INT POINTER y - A pointer to an integer to which the Y-coordinate will be assigned.

Returns

INT : Successrate

false - Error: no graphic; invalid controlpoint;
true - Success.


Mod_grproc
Globals None
Imported:
DumptypeFadingFpsFrametimeFullscreenGraphmodeM7MouseRestoretypeScalemodeScaleresolutionScaleresolutionaspectratioScaleresolutionorientation
Constants None
Imported:
BACKGROUNDBABLENDBALPHABHMIRRORBNOCOLORKEYBSBLENDBTRANSLUCENTBVMIRRORCOMPLETEDUMPCOMPLETERESTORECSCREENDOUBLEBUFFERHWSURFACEM1024X768M1280X1024M320X200M320X240M320X400M360X240M376X282M400X300M512X384M640X400M640X480M800X600MODE16BITSMODE16BPPMODE2XSCALEMODE8BITSMODE8BPPMODEDOUBLEBUFFERMODEFRAMELESSMODEFULLSCREENMODEHARDWAREMODEMODALMODEWAITVSYNCMODEWINDOWNORESTOREPARTIALDUMPPARTIALRESTORESCALEHQ2XSCALENOFILTERSCALENONESCALENORMAL2XSCALESCALE2XSCALESCANLINE2XSCREEN
Locals None
Imported:
AngleCnumberCtypeSpecial:Badtitle/NS108:FileFlagsHeightRegionResolutionSizeSizexSizeyXXgraphYZ
Functions Advance()Collision()Collisionbox()Collisioncircle()Getangle()Getdist()Getrealpoint()Xadvance()