|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CNoise3d Class Reference#include <noise_3d.h>
List of all members.
Public Methods |
| CNoise3d (NL3D::IDriver *pDriver) |
| ~CNoise3d () |
void | init (uint32 w=64, uint32 h=64, uint32 d=32) |
void | render (NLMISC::CQuadUV &qc, float wpos, float intensity) |
void | render2passes (NLMISC::CQuadUV &qc, float wpos, float intensity) |
void | renderGrid (uint32 nbw, uint32 nbh, uint32 w, uint32 h, float UStart, float VStart, float WStart, float dU, float dV, float dW, float intensity) |
void | renderGrid2passes (uint32 nbw, uint32 nbh, uint32 w, uint32 h, float UStart, float VStart, float WStart, float dU, float dV, float dW, float intensity) |
void | flush () |
void | flush2passes () |
uint32 | getWidth () |
uint32 | getHeight () |
uint32 | getDepth () |
Private Attributes |
uint32 | _Width |
uint32 | _Height |
uint32 | _Depth |
uint32 | _NbSliceW |
uint32 | _NbSliceH |
uint8 * | _Mem |
NLMISC::CSmartPtr< NL3D::CTextureMem > | _Tex |
float | _Intensity |
NLMISC::CUV * | _OffS |
float | _ScaleW |
float | _ScaleH |
uint32 | _NbVertices |
NL3D::CVertexBuffer | _VertexBuffer |
NL3D::CMaterial * | _Mat |
NL3D::IDriver * | _Driver |
bool | _IsDriverSupportEnvCombine4 |
Constructor & Destructor Documentation
NL3D::CNoise3d::~CNoise3d |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CNoise3d::flush |
( |
|
) |
|
|
void NL3D::CNoise3d::flush2passes |
( |
|
) |
|
|
uint32 NL3D::CNoise3d::getDepth |
( |
|
) |
|
|
uint32 NL3D::CNoise3d::getHeight |
( |
|
) |
|
|
uint32 NL3D::CNoise3d::getWidth |
( |
|
) |
|
|
|
Definition at line 53 of file noise_3d.cpp.
References _Depth, _Height, _Mat, _Mem, _NbSliceH, _NbSliceW, _OffS, _ScaleH, _ScaleW, _Tex, _VertexBuffer, _Width, NLMISC::getPowerOf2, NL3D::CMaterial::initUnlit, NLMISC::raiseToNextPowerOf2, NL3D::CMaterial::setBlend, NL3D::CMaterial::setBlendFunc, NL3D::CMaterial::setColor, NL3D::CMaterial::setShader, NL3D::CMaterial::setTexture, NL3D::CVertexBuffer::setVertexFormat, NL3D::CMaterial::setZFunc, NL3D::CMaterial::setZWrite, NLMISC::CUV::U, NLMISC::CUV::V, and w. |
void NL3D::CNoise3d::render |
( |
NLMISC::CQuadUV & |
qc, |
|
|
float |
wpos, |
|
|
float |
intensity |
|
) |
|
|
|
Definition at line 202 of file noise_3d.cpp.
References _Depth, _Intensity, _IsDriverSupportEnvCombine4, _NbSliceW, _NbVertices, _OffS, _ScaleH, _ScaleW, _VertexBuffer, NL3D::CVertexBuffer::getColorPointer, NL3D::CVertexBuffer::getNumVertices, NL3D::CVertexBuffer::getTexCoordPointer, NL3D::CVertexBuffer::getVertexCoordPointer, NL3D::CVertexBuffer::getVertexSize, render2passes, NL3D::CVertexBuffer::setNumVertices, NLMISC::CUV::U, and NLMISC::CUV::V. |
void NL3D::CNoise3d::render2passes |
( |
NLMISC::CQuadUV & |
qc, |
|
|
float |
wpos, |
|
|
float |
intensity |
|
) |
|
|
|
Definition at line 133 of file noise_3d.cpp.
References _Depth, _NbVertices, _OffS, _ScaleH, _ScaleW, _VertexBuffer, alpha, NL3D::CVertexBuffer::getColorPointer, NL3D::CVertexBuffer::getNumVertices, NL3D::CVertexBuffer::getTexCoordPointer, NL3D::CVertexBuffer::getVertexCoordPointer, NL3D::CVertexBuffer::getVertexSize, NL3D::CVertexBuffer::setNumVertices, NLMISC::CUV::U, and NLMISC::CUV::V.
Referenced by render. |
void NL3D::CNoise3d::renderGrid |
( |
uint32 |
nbw, |
|
|
uint32 |
nbh, |
|
|
uint32 |
w, |
|
|
uint32 |
h, |
|
|
float |
UStart, |
|
|
float |
VStart, |
|
|
float |
WStart, |
|
|
float |
dU, |
|
|
float |
dV, |
|
|
float |
dW, |
|
|
float |
intensity |
|
) |
|
|
|
Definition at line 266 of file noise_3d.cpp.
References _Depth, _Intensity, _IsDriverSupportEnvCombine4, _NbSliceH, _NbSliceW, _NbVertices, _OffS, _VertexBuffer, NL3D::CVertexBuffer::getColorPointer, NL3D::CVertexBuffer::getNumVertices, NL3D::CVertexBuffer::getTexCoordPointer, NL3D::CVertexBuffer::getVertexCoordPointer, NL3D::CVertexBuffer::getVertexSize, renderGrid2passes, NL3D::CVertexBuffer::setNumVertices, NLMISC::CUV::U, NLMISC::CUV::V, and w. |
void NL3D::CNoise3d::renderGrid2passes |
( |
uint32 |
nbw, |
|
|
uint32 |
nbh, |
|
|
uint32 |
w, |
|
|
uint32 |
h, |
|
|
float |
UStart, |
|
|
float |
VStart, |
|
|
float |
WStart, |
|
|
float |
dU, |
|
|
float |
dV, |
|
|
float |
dW, |
|
|
float |
intensity |
|
) |
|
|
|
Definition at line 340 of file noise_3d.cpp.
References _Depth, _NbSliceH, _NbSliceW, _NbVertices, _OffS, _VertexBuffer, NL3D::CVertexBuffer::getColorPointer, NL3D::CVertexBuffer::getNumVertices, NL3D::CVertexBuffer::getTexCoordPointer, NL3D::CVertexBuffer::getVertexCoordPointer, NL3D::CVertexBuffer::getVertexSize, NL3D::CVertexBuffer::setNumVertices, NLMISC::CUV::U, NLMISC::CUV::V, and w.
Referenced by renderGrid. |
Member Data Documentation
uint32 NL3D::CNoise3d::_Depth [private]
|
|
uint32 NL3D::CNoise3d::_Height [private]
|
|
float NL3D::CNoise3d::_Intensity [private]
|
|
bool NL3D::CNoise3d::_IsDriverSupportEnvCombine4 [private]
|
|
uint8* NL3D::CNoise3d::_Mem [private]
|
|
uint32 NL3D::CNoise3d::_NbSliceH [private]
|
|
uint32 NL3D::CNoise3d::_NbSliceW [private]
|
|
uint32 NL3D::CNoise3d::_NbVertices [private]
|
|
float NL3D::CNoise3d::_ScaleH [private]
|
|
float NL3D::CNoise3d::_ScaleW [private]
|
|
uint32 NL3D::CNoise3d::_Width [private]
|
|
The documentation for this class was generated from the following files:
|
|