fg_ddgetobj()Win32 DirectX Fastgraph/Light Prototype int fg_ddgetobj (int code); Function fg_ddgetobj (ByVal code As Long) As Long function fg_ddgetobj (code : integer) : integer; Description The fg_ddgetobj() function returns a pointer to the requested DirectX object. Parameters code specifies the DirectX object:
Return value A pointer to the requested DirectX object. The different versions of the objects correspond to the version of DirectX being used. For example, fg_ddgetobj(0) returns a pointer to a DirectDraw2 object if we are using DirectX 5 or earlier, a DirectDraw4 object for DirectX 6, and a DirectDraw7 object for DirectX 7. If the code parameter does not specify one of the values listed above, the return value is zero. Restrictions This function is available only in Fastgraph's DirectX libraries. The DirectDrawClipper object is meaningful only for windowed programs. The DirectDrawPalette object is meaningful only for full screen programs. See also
|
 
copyright 2001 Ted Gruber Software, Inc.