NAME

cgD3D9GetDevice - retrieves the current D3D9 device associated with the runtime

SYNOPSIS

  #include <Cg/cgD3D9.h>

  IDirect3DDevice9 * cgD3D9GetDevice( void );

PARAMETERS

None.

RETURN VALUES

cgD3D9GetDevice returns the current D3D9 device associated with the runtime. Note that this could be NULL.

DESCRIPTION

cgD3D9GetDevice retrieves the current D3D9 device associated with the runtime. Note that this could be NULL.

EXAMPLES

The following example code illustrates the use of cgD3D9GetDevice:

  IDirect3DDevice9* curDevice = cgD3D9GetDevice();
        

ERRORS

cgD3D9GetDevice does not generate any errors.

    or

to-be-written

HISTORY

cgD3D9GetDevice was introduced in Cg to-be-written.

SEE ALSO

cgD3D9SetDevice