- This wiki is out of date, use the continuation of this wiki instead
 
Get point
From FenixWiki
| Revision as of 13:19, 1 May 2007 (edit) FCR (Talk | contribs) ← Previous diff  | 
				Revision as of 13:43, 1 May 2007 (edit) (undo) FCR (Talk | contribs) Next diff →  | 
			||
| Line 2: | Line 2: | ||
| ==Definition== | ==Definition== | ||
| - | '''INT''' Get_point ( <'''INT''' library> , ) | + | '''INT''' Get_point ( <'''INT''' library> , <'''INT''' graph>, <'''INT''' number>, <'''INT''' x>, <'''INT''' y>) | 
| - | + | This command allows you to obtain a control point of a particular graphic file. | |
| - | + | Any graph can contain an undetermined number of control points where control point 0 is the centre of the graphic, and the rest are available to the user. This function allows you to know the location of any control point belonging to any graph. | |
| == Parameters == | == Parameters == | ||
| {| | {| | ||
| - | | '''INT'''  | + | | '''INT''' library || - Number of the FPG library. | 
| |- | |- | ||
| - | | ''' | + | | '''INT''' graph|| - Number of the graph inside the library which you want to use. | 
| |- | |- | ||
| - | |  | + | | '''INT''' number|| - Number of the control point (where control point 0 is the centre of the graphic). | 
| + | |- | ||
| + | | '''INT''' x|| - Offset of a variable of entire type (INT) which will hold the horizontal coordinate(X) of the control point. | ||
| + | |- | ||
| + | | '''INT''' y|| - Offset of a variable of entire type (INT) which will hold the vertical coordinate(Y) of the control point. | ||
| |} | |} | ||
| == Returns == | == Returns == | ||
| - | '''INT''' :  | + | '''INT''' : If the number of the control points specified is out of range, the function returns -1 and the variables x and y will not be modified. But if the control point is in range, but not defined, x and y will have the value -1. | 
| - | == Notes == | + | ==Notes== | 
| - | + | In the rest of the cases, x and y will have the coordinates of the control point, then (0, 0) will represent the pixel located in the top left corner of the graph. | |
| == Example == | == Example == | ||
Revision as of 13:43, 1 May 2007
Contents | 
Definition
INT Get_point ( <INT library> , <INT graph>, <INT number>, <INT x>, <INT y>)
This command allows you to obtain a control point of a particular graphic file.
Any graph can contain an undetermined number of control points where control point 0 is the centre of the graphic, and the rest are available to the user. This function allows you to know the location of any control point belonging to any graph.
Parameters
| INT library | - Number of the FPG library. | 
| INT graph | - Number of the graph inside the library which you want to use. | 
| INT number | - Number of the control point (where control point 0 is the centre of the graphic). | 
| INT x | - Offset of a variable of entire type (INT) which will hold the horizontal coordinate(X) of the control point. | 
| INT y | - Offset of a variable of entire type (INT) which will hold the vertical coordinate(Y) of the control point. | 
Returns
INT : If the number of the control points specified is out of range, the function returns -1 and the variables x and y will not be modified. But if the control point is in range, but not defined, x and y will have the value -1.
Notes
In the rest of the cases, x and y will have the coordinates of the control point, then (0, 0) will represent the pixel located in the top left corner of the graph.
Example
Program example;
Begin
    Loop
        frame;
    End
End
						
			
		