| Class T3dMaterial (unit TMatrix) |
TObject
T3DMaterial: T3dMaterial implements the iDirect3DMaterial interface Now this is auto updating, every time you set a value it will refresh the internal image The main reason this is different is because the original C++ classes where done this way But I am almost sure now that there is no reason for the update function used in the two previous classes to exist, they should also be auto-updating.
| Constructors |
constructor Create(pIEngine : IDirect3d; pIDevice : IDirect3dDevice);| Functions |
function GetHandle : D3DMATERIALHANDLE;
function GetInterface : IDirect3dMaterial;
function SetColor(r,g,b : double) : boolean;
function SetShades(n : integer) : boolean;
function SetTextureHandle(h : integer) : boolean;| Properties |
| Events |
| Variables |
m_hMat : D3DMATERIALHANDLE;
m_Material : D3DMATERIAL;
m_pIMat : IDirect3dMaterial;| Constructors |
constructor Create(pIEngine : IDirect3d; pIDevice : IDirect3dDevice);////////////////////////////////////////// ////////////////////////////////////////// //////////////////////////////////////////
| Functions |
function GetHandle : D3DMATERIALHANDLE;
function GetInterface : IDirect3dMaterial;
function SetColor(r,g,b : double) : boolean;
function SetShades(n : integer) : boolean;SetShades : This value should be 1 for backgrounds
function SetTextureHandle(h : integer) : boolean;| Properties |
| Events |
| Variables |
m_hMat : D3DMATERIALHANDLE;
m_Material : D3DMATERIAL;
m_pIMat : IDirect3dMaterial;