# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
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 NL3D::IDriver   pDriver
 

Definition at line 36 of file noise_3d.cpp.

References _Driver, _IsDriverSupportEnvCombine4, _Mat, and _NbVertices.

NL3D::CNoise3d::~CNoise3d  
 

Definition at line 45 of file noise_3d.cpp.

References _Mat, and _OffS.


Member Function Documentation

void NL3D::CNoise3d::flush  
 

Definition at line 416 of file noise_3d.cpp.

References _Driver, _Intensity, _IsDriverSupportEnvCombine4, _Mat, _NbVertices, _VertexBuffer, NL3D::IDriver::activeVertexBuffer, flush2passes, NL3D::IDriver::renderQuads, and NL3D::CMaterial::setColor.

void NL3D::CNoise3d::flush2passes  
 

Definition at line 431 of file noise_3d.cpp.

References _Driver, _Mat, _NbVertices, _VertexBuffer, NL3D::IDriver::activeVertexBuffer, and NL3D::IDriver::renderQuads.

Referenced by flush.

uint32 NL3D::CNoise3d::getDepth  
 

Definition at line 452 of file noise_3d.cpp.

References _Depth.

uint32 NL3D::CNoise3d::getHeight  
 

Definition at line 446 of file noise_3d.cpp.

References _Height.

uint32 NL3D::CNoise3d::getWidth  
 

Definition at line 440 of file noise_3d.cpp.

References _Width.

void NL3D::CNoise3d::init uint32    w = 64,
uint32    h = 64,
uint32    d = 32
 

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]
 

Definition at line 74 of file noise_3d.h.

Referenced by getDepth, init, render, render2passes, renderGrid, and renderGrid2passes.

NL3D::IDriver* NL3D::CNoise3d::_Driver [private]
 

Definition at line 88 of file noise_3d.h.

Referenced by CNoise3d, flush, and flush2passes.

uint32 NL3D::CNoise3d::_Height [private]
 

Definition at line 74 of file noise_3d.h.

Referenced by getHeight, and init.

float NL3D::CNoise3d::_Intensity [private]
 

Definition at line 80 of file noise_3d.h.

Referenced by flush, render, and renderGrid.

bool NL3D::CNoise3d::_IsDriverSupportEnvCombine4 [private]
 

Definition at line 89 of file noise_3d.h.

Referenced by CNoise3d, flush, render, and renderGrid.

NL3D::CMaterial* NL3D::CNoise3d::_Mat [private]
 

Definition at line 86 of file noise_3d.h.

Referenced by CNoise3d, flush, flush2passes, init, and ~CNoise3d.

uint8* NL3D::CNoise3d::_Mem [private]
 

Definition at line 77 of file noise_3d.h.

Referenced by init.

uint32 NL3D::CNoise3d::_NbSliceH [private]
 

Definition at line 75 of file noise_3d.h.

Referenced by init, renderGrid, and renderGrid2passes.

uint32 NL3D::CNoise3d::_NbSliceW [private]
 

Definition at line 75 of file noise_3d.h.

Referenced by init, render, renderGrid, and renderGrid2passes.

uint32 NL3D::CNoise3d::_NbVertices [private]
 

Definition at line 84 of file noise_3d.h.

Referenced by CNoise3d, flush, flush2passes, render, render2passes, renderGrid, and renderGrid2passes.

NLMISC::CUV* NL3D::CNoise3d::_OffS [private]
 

Definition at line 81 of file noise_3d.h.

Referenced by init, render, render2passes, renderGrid, renderGrid2passes, and ~CNoise3d.

float NL3D::CNoise3d::_ScaleH [private]
 

Definition at line 82 of file noise_3d.h.

Referenced by init, render, and render2passes.

float NL3D::CNoise3d::_ScaleW [private]
 

Definition at line 82 of file noise_3d.h.

Referenced by init, render, and render2passes.

NLMISC::CSmartPtr<NL3D::CTextureMem> NL3D::CNoise3d::_Tex [private]
 

Definition at line 78 of file noise_3d.h.

Referenced by init.

NL3D::CVertexBuffer NL3D::CNoise3d::_VertexBuffer [private]
 

Definition at line 85 of file noise_3d.h.

Referenced by flush, flush2passes, init, render, render2passes, renderGrid, and renderGrid2passes.

uint32 NL3D::CNoise3d::_Width [private]
 

Definition at line 74 of file noise_3d.h.

Referenced by getWidth, and init.


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