# 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::CWaterRenderObs Class Reference

#include <water_model.h>

Inheritance diagram for NL3D::CWaterRenderObs:

NL3D::CTransformShapeRenderObs NL3D::CTransformRenderObs NL3D::IBaseRenderObs NL3D::IObs NLMISC::CRefCount List of all members.

Public Methods

virtual void traverse (IObs *caller)
 setup lighting if lightable, render the instance and Don't traverseSons(). More...


Static Public Methods

IObscreator ()

Private Methods

void setupMaterialNVertexShader (IDriver *drv, CWaterShape *shape, const NLMISC::CVector &obsPos, bool above, float maxDist, float zHeight)
 Compute a quad in Water height field space that contains the useful heights This helps us to decide wether we should do a lookup in the height map. More...


Member Function Documentation

IObs* NL3D::CWaterRenderObs::creator   [inline, static]
 

Reimplemented from NL3D::CTransformShapeRenderObs.

Definition at line 90 of file water_model.h.

References NL3D::IObs::IObs.

void NL3D::CWaterRenderObs::setupMaterialNVertexShader IDriver   drv,
CWaterShape   shape,
const NLMISC::CVector   obsPos,
bool    above,
float    maxDist,
float    zHeight
[private]
 

Compute a quad in Water height field space that contains the useful heights This helps us to decide wether we should do a lookup in the height map.

Definition at line 816 of file water_model.cpp.

References NLMISC::CTime::getLocalTime, nlwarning, NLMISC::CVectorH::set, NLMISC::CRGBA::White, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z.

Referenced by traverse.

void NL3D::CWaterRenderObs::traverse IObs   caller [virtual]
 

setup lighting if lightable, render the instance and Don't traverseSons().

Reimplemented from NL3D::CTransformShapeRenderObs.

Definition at line 364 of file water_model.cpp.

References NLMISC::CPolygon::clip, NL3D::IBaseRenderObs::ClipObs, NLMISC::CPolygon2D::computeBorders, NL3D::ComputeUpMatrix, NLMISC::CPlane::d, NL3D::DrawPoly2D, NLMISC::CMatrix::getI, NLMISC::CMatrix::getJ, NLMISC::CMatrix::getK, NLMISC::CMatrix::getPos, NL3D::GetWaterPoolManager, H_AUTO, NL3D::IBaseRenderObs::HrcObs, NLMISC::CMatrix::inverted, NLAISCRIPT::l, NLMISC::CPlane::make, min, nlassert, nlwarning, NLMISC::CMatrix::setPos, setupMaterialNVertexShader, NL3D::SetupWaterVertex, t, NLMISC::CPolygon2D::TRasterVect, NL3D::IObs::traverseSons, NLMISC::CPolygon2D::Vertices, NLMISC::CPolygon::Vertices, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z.


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