fg_project() (legacy function)Win32 DirectX Fastgraph/Light Prototype void fg_project (long *transform, long *source, int *dest, int n); Sub fg_project (transform() As Long, source() As Long, dest() As Long, ByVal n As Long) procedure fg_project (var transform, source : longint; var dest : integer; n : integer); Description The fg_project() legacy function projects a series of 3D (x,y,z) points to 2D (x,y) screen space points, using the specified transformation matrix. Parameters transform is the name of the 12-element transformation matrix containing fixed point 3D rotation and 3D translation values. source is the name of the array containing the fixed point 3D (x,y,z) coordinates to project to screen space. The first three elements of the source array contain the coordinates for the first point, the next three elements are for the next point, and so on. dest is the name of the array that receives the projected 2D (x,y) screen space coordinates. The first two elements of the dest array will contain the coordinates for the first point, the next two elements will contain the next point, and so on. The size of dest must be large enough to hold 2/3*n integer values. n is the number of 3D points to project. Return value none Restrictions Before using this function, you must set up a 3D viewport with fg_view3d(). Replaced by Floating point 3D geometry system
|
 
copyright 2001 Ted Gruber Software, Inc.