Class TD3D (unit direct3d)

Inherits from

TObject

Constructors


constructor Create ( pScreen : TDDScreen ) ;



Functions

function CreateViewPort : boolean;


destructor Destroy ;

D3d := nil;

function Gettexture(n : integer; var tf : T3DTextureFormat) : boolean;


function GetTextureNum : integer;

/* * Set the default format to -1 to let the callback know it's being * called for the first time.

function SetMode (cm : D3DCOLORMODEL) : boolean;


function CreateZBuffer(bpp : integer; dwMemFlags : DWORD) : boolean;


function EnumTextureFormats : boolean;

/* * D3DAppIEnumTextureFormats * Get a list of available texture map formats from the Direct3D driver by * enumeration.

Properties

Events

Variables

D3D : IDirect3D ;


D3DDevice : IDirect3dDevice;


D3DViewPort : IDirect3DViewport;


ThisTextureFormat : T3dTextureFormat;


CurrTextureFormat : integer;


FZBuffer : IDirectDrawSurface;


scrScreen : TDDSCreen;



Constructors


constructor Create ( pScreen : TDDScreen ) ;


Functions


function CreateViewPort : boolean;


destructor Destroy ;

D3d := nil;


function Gettexture(n : integer; var tf : T3DTextureFormat) : boolean;


function GetTextureNum : integer;

/* * Set the default format to -1 to let the callback know it's being * called for the first time. */


function SetMode (cm : D3DCOLORMODEL) : boolean;


function CreateZBuffer(bpp : integer; dwMemFlags : DWORD) : boolean;


function EnumTextureFormats : boolean;

/* * D3DAppIEnumTextureFormats * Get a list of available texture map formats from the Direct3D driver by * enumeration. Choose a default format (paletted is prefered). */


Properties


Events


Variables


D3D : IDirect3D ;


D3DDevice : IDirect3dDevice;


D3DViewPort : IDirect3DViewport;


ThisTextureFormat : T3dTextureFormat;


CurrTextureFormat : integer;


FZBuffer : IDirectDrawSurface;


scrScreen : TDDSCreen;