coastline 0.0.4
Loading...
Searching...
No Matches
D3DMaterial Class Reference

A Direct3D material and the description it was set from. More...

#include <renderer.h>

Public Member Functions

D3DMATERIALHANDLE GetMaterialHandle () const
void SetDiffuseColor (float red, float green, float blue)
 Set the diffuse red, green, and blue components and mark the material dirty.
void SetRampSize (DWORD size)
 Set the material's colour-ramp size.
HRESULT ApplyDescription ()
 Apply the material description to the Direct3D material.
 D3DMaterial (IDirect3D2 *pDirect3D2, IDirect3DDevice2 *pD3DDevice)
 Create an opaque material of Direct3D and its handle on a device.
void Release ()
 Release the material of Direct3D.
HRESULT CommitMaterialIfDirty ()
 Give desc to the material of Direct3D when it changed.

Detailed Description

A Direct3D material and the description it was set from.

Constructor & Destructor Documentation

◆ D3DMaterial()

D3DMaterial::D3DMaterial ( IDirect3D2 * pDirect3D2,
IDirect3DDevice2 * pD3DDevice )

Create an opaque material of Direct3D and its handle on a device.

Parameters
pDirect3D2The Direct3D interface that creates the material.
pD3DDeviceThe device the handle belongs to.
Ghidra address:
BRD3D: 0x1000a100

Member Function Documentation

◆ GetMaterialHandle()

D3DMATERIALHANDLE D3DMaterial::GetMaterialHandle ( ) const
inline
Returns
The material handle for the device.

◆ SetDiffuseColor()

void D3DMaterial::SetDiffuseColor ( float red,
float green,
float blue )
inline

Set the diffuse red, green, and blue components and mark the material dirty.

◆ SetRampSize()

void D3DMaterial::SetRampSize ( DWORD size)
inline

Set the material's colour-ramp size.

◆ ApplyDescription()

HRESULT D3DMaterial::ApplyDescription ( )
inline

Apply the material description to the Direct3D material.

◆ Release()

void D3DMaterial::Release ( )

Release the material of Direct3D.

Ghidra address:
BRD3D: 0x1000a170

◆ CommitMaterialIfDirty()

HRESULT D3DMaterial::CommitMaterialIfDirty ( )

Give desc to the material of Direct3D when it changed.

Returns
The result of SetMaterial(), or 0 when desc did not change.
Ghidra address:
BRD3D: 0x1001c620

The documentation for this class was generated from the following file: