fg_3Dproject()Win32 DirectX Fastgraph/Light Prototype void fg_3Dproject (double *source, int *dest, int n); Sub fg_3Dproject (source() As Double, dest() As Long, ByVal n As Long) procedure fg_3Dproject (var source : double; var dest : integer; n : integer); Description The fg_3Dproject() function projects a series of transformed 3D (x,y,z) points to 2D (x,y) screen space points. This function is called internally by Fastgraph's 3D functions and is not usually called directly by applications. Parameters source is the name of the array containing the transformed 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_3Dviewport(). See also fg_3Dtransform(), fg_3Dtransformobject()

copyright 2001 Ted Gruber Software, Inc.