 |
|
 |
 |
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CCloud Class Reference#include <cloud.h>
List of all members.
Public Methods |
| | CCloud (CCloudScape *pCloudScape) |
| | ~CCloud () |
| void | init (uint32 nVoxelW, uint32 nVoxelH, uint32 nVoxelD, float rBaseFreq, uint32 nNbOctave) |
| void | generate (CNoise3d &noise) |
| void | light () |
| void | reset (NL3D::CCamera *pViewer) |
| void | anim (double dt, double dt2) |
| void | disp () |
| void | dispXYZ (NL3D::CMaterial *pMat=NULL) |
| void | genBill (NL3D::CCamera *pViewer, uint32 nBillSize=128) |
| void | dispBill (NL3D::CCamera *pViewer) |
| float | getX () |
| float | getLastX () |
| float | getY () |
| float | getZ () |
| float | getSizeX () |
| float | getSizeY () |
| float | getSizeZ () |
| void | setX (float x) |
| void | setY (float y) |
| void | setZ (float z) |
| void | setSizeX (float x) |
| void | setSizeY (float y) |
| void | setSizeZ (float z) |
| void | setTexClamp (SCloudTextureClamp &t) |
| void | setTex3DTemp (SCloudTexture3D &t) |
| void | setLooping () |
| uint32 | getBillSize () |
| uint32 | getMemSize () |
Public Attributes |
| double | Time |
| double | FuturTime |
| NLMISC::CRGBA | CloudDiffuse |
| NLMISC::CRGBA | CloudAmbient |
| uint8 | CloudPower |
| uint8 | CloudDistAtt |
| uint8 | LastCloudPower |
Private Methods |
| void | setMode2D () |
| void | calcBill (const NLMISC::CVector &Viewer, const NLMISC::CVector &Center, const NLMISC::CVector &Size, NLMISC::CVector &I, NLMISC::CVector &J, NLMISC::CVector &K, float &Left, float &Right, float &Top, float &Bottom, float &Near, float &Far) |
Private Attributes |
| uint32 | _Width |
| uint32 | _Height |
| uint32 | _Depth |
| uint32 | _NbW |
| uint32 | _NbH |
| NLMISC::CVector | _Size |
| NLMISC::CVector | _Pos |
| float | _LastX |
| float | _BaseFreq |
| uint32 | _NbOctave |
| double * | _UStart |
| double * | _VStart |
| double * | _WStart |
| CCloudScape * | _CloudScape |
| SCloudTexture3D * | _CloudTexTmp |
| SCloudTextureClamp * | _CloudTexClamp |
| uint32 | _BillSize |
| uint8 * | _MemBill |
| NLMISC::CSmartPtr< NL3D::CTextureMem > | _TexBill |
| uint32 | _OldBillSize |
| uint8 * | _MemOldBill |
| NLMISC::CSmartPtr< NL3D::CTextureMem > | _TexOldBill |
| uint8 | _WaitState |
| NLMISC::CVector | _BillViewer |
| NLMISC::CVector | _BillCenter |
| NLMISC::CVector | _BillOldCenter |
| NL3D::IDriver * | _Driver |
Constructor & Destructor Documentation
|
|
Definition at line 41 of file cloud.cpp.
References _BillSize, _CloudScape, _Driver, _OldBillSize, _UStart, _VStart, _WaitState, _WStart, CloudAmbient, CloudDiffuse, CloudDistAtt, CloudPower, and LastCloudPower. |
| NL3D::CCloud::~CCloud |
( |
|
) |
|
|
Member Function Documentation
| void NL3D::CCloud::anim |
( |
double |
dt, |
|
|
double |
dt2 |
|
) |
|
|
| void NL3D::CCloud::calcBill |
( |
const NLMISC::CVector & |
Viewer, |
|
|
const NLMISC::CVector & |
Center, |
|
|
const NLMISC::CVector & |
Size, |
|
|
NLMISC::CVector & |
I, |
|
|
NLMISC::CVector & |
J, |
|
|
NLMISC::CVector & |
K, |
|
|
float & |
Left, |
|
|
float & |
Right, |
|
|
float & |
Top, |
|
|
float & |
Bottom, |
|
|
float & |
Near, |
|
|
float & |
Far |
|
) |
[private] |
|
| void NL3D::CCloud::disp |
( |
|
) |
|
|
|
|
Definition at line 328 of file cloud.cpp.
References _CloudScape, _CloudTexTmp, _Driver, _Height, _NbH, _NbW, _Width, NL3D::IDriver::activeVertexBuffer, NL3D::IDriver::renderQuads, s, NL3D::IDriver::setFrustum, NL3D::IDriver::setupModelMatrix, NL3D::IDriver::setupScissor, NL3D::IDriver::setupViewMatrix, NL3D::IDriver::setupViewport, and w. |
|
|
Definition at line 600 of file cloud.cpp.
References _BillCenter, _BillOldCenter, _BillViewer, _CloudScape, _Driver, _MemBill, _MemOldBill, _Pos, _Size, _TexBill, _TexOldBill, _WaitState, NL3D::IDriver::activeVertexBuffer, calcBill, FuturTime, NL3D::IDriver::renderQuads, NL3D::IDriver::setPolygonMode, Time, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
|
|
Definition at line 388 of file cloud.cpp.
References _CloudScape, _Driver, _NbH, _NbW, _Pos, _Size, NL3D::IDriver::activeVertexBuffer, NL3D::IDriver::renderQuads, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z.
Referenced by genBill. |
|
|
Definition at line 509 of file cloud.cpp.
References _BillCenter, _BillOldCenter, _BillSize, _BillViewer, _CloudScape, _CloudTexTmp, _Driver, _LastX, _MemBill, _MemOldBill, _OldBillSize, _Pos, _Size, _TexBill, _TexOldBill, _WaitState, NL3D::IDriver::activeVertexBuffer, calcBill, CloudAmbient, NL3D::IDriver::copyFrameBufferToTexture, dispXYZ, NL3D::IDriver::getWindowSize, NL3D::IDriver::renderQuads, NL3D::IDriver::setFrustum, NL3D::IDriver::setupModelMatrix, NL3D::IDriver::setupViewMatrix, NL3D::IDriver::setupViewport, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
| void NL3D::CCloud::generate |
( |
CNoise3d & |
noise |
) |
|
|
|
|
Definition at line 110 of file cloud.cpp.
References _BaseFreq, _CloudScape, _CloudTexClamp, _CloudTexTmp, _Depth, _Driver, _Height, _NbH, _NbOctave, _NbW, _UStart, _VStart, _Width, _WStart, NL3D::IDriver::activeVertexBuffer, CloudDistAtt, CloudPower, NL3D::IDriver::copyFrameBufferToTexture, NL3D::IDriver::renderQuads, and setMode2D. |
| uint32 NL3D::CCloud::getBillSize |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getLastX |
( |
|
) |
[inline] |
|
| uint32 NL3D::CCloud::getMemSize |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getSizeX |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getSizeY |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getSizeZ |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getX |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getY |
( |
|
) |
[inline] |
|
| float NL3D::CCloud::getZ |
( |
|
) |
[inline] |
|
|
|
Definition at line 65 of file cloud.cpp.
References _BaseFreq, _BillSize, _Depth, _Height, _MemBill, _MemOldBill, _NbH, _NbOctave, _NbW, _OldBillSize, _Size, _UStart, _VStart, _Width, _WStart, NLMISC::getPowerOf2, NLMISC::raiseToNextPowerOf2, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
| void NL3D::CCloud::light |
( |
|
) |
|
|
|
|
Definition at line 182 of file cloud.cpp.
References _CloudScape, _CloudTexTmp, _Driver, _Height, _NbH, _NbW, _Width, NLMISC::CRGBA::A, NL3D::IDriver::activeVertexBuffer, CloudDiffuse, NL3D::IDriver::copyFrameBufferToTexture, NL3D::IDriver::renderQuads, NL3D::IDriver::setColorMask, and setMode2D. |
|
|
Definition at line 251 of file cloud.cpp.
References _BillCenter, _BillOldCenter, _BillSize, _BillViewer, _CloudScape, _Driver, _MemBill, _MemOldBill, _OldBillSize, _Pos, _Size, _TexBill, _TexOldBill, NL3D::IDriver::activeVertexBuffer, calcBill, NL3D::IDriver::copyFrameBufferToTexture, NL3D::IDriver::renderQuads, setMode2D, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
| void NL3D::CCloud::setLooping |
( |
|
) |
[inline] |
|
| void NL3D::CCloud::setMode2D |
( |
|
) |
[private] |
|
| void NL3D::CCloud::setSizeX |
( |
float |
x |
) |
[inline] |
|
| void NL3D::CCloud::setSizeY |
( |
float |
y |
) |
[inline] |
|
| void NL3D::CCloud::setSizeZ |
( |
float |
z |
) |
[inline] |
|
| void NL3D::CCloud::setX |
( |
float |
x |
) |
[inline] |
|
| void NL3D::CCloud::setY |
( |
float |
y |
) |
[inline] |
|
| void NL3D::CCloud::setZ |
( |
float |
z |
) |
[inline] |
|
Member Data Documentation
float NL3D::CCloud::_BaseFreq [private]
|
|
uint32 NL3D::CCloud::_BillSize [private]
|
|
uint32 NL3D::CCloud::_Depth [private]
|
|
uint32 NL3D::CCloud::_Height [private]
|
|
float NL3D::CCloud::_LastX [private]
|
|
uint8* NL3D::CCloud::_MemBill [private]
|
|
uint8* NL3D::CCloud::_MemOldBill [private]
|
|
uint32 NL3D::CCloud::_NbH [private]
|
|
uint32 NL3D::CCloud::_NbOctave [private]
|
|
uint32 NL3D::CCloud::_NbW [private]
|
|
uint32 NL3D::CCloud::_OldBillSize [private]
|
|
|
|
Definition at line 131 of file cloud.h.
Referenced by dispBill, dispXYZ, genBill, getSizeX, getSizeY, getSizeZ, init, reset, setSizeX, setSizeY, and setSizeZ. |
double* NL3D::CCloud::_UStart [private]
|
|
double * NL3D::CCloud::_VStart [private]
|
|
uint8 NL3D::CCloud::_WaitState [private]
|
|
uint32 NL3D::CCloud::_Width [private]
|
|
double * NL3D::CCloud::_WStart [private]
|
|
| uint8 NL3D::CCloud::CloudDistAtt
|
|
| uint8 NL3D::CCloud::CloudPower
|
|
| double NL3D::CCloud::FuturTime
|
|
| uint8 NL3D::CCloud::LastCloudPower
|
|
| double NL3D::CCloud::Time
|
|
The documentation for this class was generated from the following files:
|
 |