LLDrawPoolSky Class Reference

#include <lldrawpoolsky.h>

Inheritance diagram for LLDrawPoolSky:

Inheritance graph
[legend]
Collaboration diagram for LLDrawPoolSky:

Collaboration graph
[legend]
List of all members.

Public Types

 VERTEX_DATA_MASK
enum  { VERTEX_DATA_MASK }

Public Member Functions

virtual U32 getVertexDataMask ()
 LLDrawPoolSky ()
LLDrawPoolinstancePool ()
void prerender ()
void render (S32 pass=0)
void renderForSelect ()
void setSkyTex (LLSkyTex *const st)
void setSun (LLHeavenBody *sun_flag)
void setMoon (LLHeavenBody *moon)
void renderSkyCubeFace (U8 side)
void renderHeavenlyBody (U8 hb, LLFace *face)
void renderSunHalo (LLFace *face)
virtual S32 getMaterialAttribIndex ()

Private Attributes

LLSkyTexmSkyTex
LLHeavenBodymHB [2]

Detailed Description

Definition at line 40 of file lldrawpoolsky.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERTEX_DATA_MASK 

Definition at line 47 of file lldrawpoolsky.h.


Constructor & Destructor Documentation

LLDrawPoolSky::LLDrawPoolSky (  ) 

Definition at line 51 of file lldrawpoolsky.cpp.

Referenced by instancePool().


Member Function Documentation

virtual S32 LLDrawPoolSky::getMaterialAttribIndex (  )  [inline, virtual]

Implements LLDrawPool.

Definition at line 70 of file lldrawpoolsky.h.

virtual U32 LLDrawPoolSky::getVertexDataMask (  )  [inline, virtual]

Implements LLDrawPool.

Definition at line 53 of file lldrawpoolsky.h.

References VERTEX_DATA_MASK.

LLDrawPool * LLDrawPoolSky::instancePool (  )  [virtual]

Implements LLDrawPool.

Definition at line 56 of file lldrawpoolsky.cpp.

References LLDrawPoolSky().

void LLDrawPoolSky::prerender (  )  [virtual]

Implements LLDrawPool.

Definition at line 61 of file lldrawpoolsky.cpp.

References LLShaderMgr::getVertexShaderLevel(), LLDrawPool::mVertexShaderLevel, and LLShaderMgr::SHADER_ENVIRONMENT.

void LLDrawPoolSky::render ( S32  pass = 0  )  [virtual]

Implements LLDrawPool.

Definition at line 66 of file lldrawpoolsky.cpp.

References LLPipeline::disableLights(), LLVOSky::FACE_BLOOM, LLVOSky::FACE_MOON, LLVOSky::FACE_SUN, gAgent, gCamera, LLCoordFrame::getOrigin(), LLAgent::getRegion(), LLViewerRegion::getWaterHeight(), glPopMatrix, glTranslatef, gPipeline, gSky, i, LLVOSky::isSameFace(), llmin(), LLFacePool::mDrawFace, LLVector3::mV, LLSky::mVOSkyp, NULL, renderHeavenlyBody(), renderSkyCubeFace(), renderSunHalo(), S32, and VZ.

void LLDrawPoolSky::renderForSelect (  )  [virtual]

Implements LLFacePool.

Definition at line 203 of file lldrawpoolsky.cpp.

void LLDrawPoolSky::renderHeavenlyBody ( U8  hb,
LLFace face 
)

Definition at line 172 of file lldrawpoolsky.cpp.

References LLImageGL::bind(), face, mHB, and LLDrawPool::mIndicesDrawn.

Referenced by render().

void LLDrawPoolSky::renderSkyCubeFace ( U8  side  ) 

Definition at line 149 of file lldrawpoolsky.cpp.

References LLSkyTex::bindTexture(), LLSkyTex::doInterpolate(), face, LLVOSky::FACE_SIDE0, FALSE, LLSkyTex::getInterpVal(), glColor4f, LLFacePool::mDrawFace, LLDrawPool::mIndicesDrawn, mSkyTex, and TRUE.

Referenced by render().

void LLDrawPoolSky::renderSunHalo ( LLFace face  ) 

Definition at line 187 of file lldrawpoolsky.cpp.

References LLImageGL::bind(), f, face, llclamp(), mHB, LLDrawPool::mIndicesDrawn, and LLColor4::mV.

Referenced by render().

void LLDrawPoolSky::setMoon ( LLHeavenBody moon  )  [inline]

Definition at line 64 of file lldrawpoolsky.h.

References mHB.

Referenced by LLVOSky::createDrawable().

void LLDrawPoolSky::setSkyTex ( LLSkyTex *const   st  )  [inline]

Definition at line 62 of file lldrawpoolsky.h.

References mSkyTex.

Referenced by LLVOSky::createDrawable().

void LLDrawPoolSky::setSun ( LLHeavenBody sun_flag  )  [inline]

Definition at line 63 of file lldrawpoolsky.h.

References mHB.

Referenced by LLVOSky::createDrawable().


Member Data Documentation

LLHeavenBody* LLDrawPoolSky::mHB[2] [private]

Definition at line 44 of file lldrawpoolsky.h.

Referenced by renderHeavenlyBody(), renderSunHalo(), setMoon(), and setSun().

LLSkyTex* LLDrawPoolSky::mSkyTex [private]

Definition at line 43 of file lldrawpoolsky.h.

Referenced by renderSkyCubeFace(), and setSkyTex().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:15 2010 for Second Life Viewer by  doxygen 1.4.7