|
coastline 0.0.4
|
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. | |
A Direct3D material and the description it was set from.
| D3DMaterial::D3DMaterial | ( | IDirect3D2 * | pDirect3D2, |
| IDirect3DDevice2 * | pD3DDevice ) |
Create an opaque material of Direct3D and its handle on a device.
| pDirect3D2 | The Direct3D interface that creates the material. |
| pD3DDevice | The device the handle belongs to. |
|
inline |
|
inline |
Set the diffuse red, green, and blue components and mark the material dirty.
|
inline |
Set the material's colour-ramp size.
|
inline |
Apply the material description to the Direct3D material.
| void D3DMaterial::Release | ( | ) |
Release the material of Direct3D.
| HRESULT D3DMaterial::CommitMaterialIfDirty | ( | ) |
Give desc to the material of Direct3D when it changed.