|
Public Types |
| enum | EWaterType {
eWater = 0,
eOceanWater = 1,
eRiverWater = 2,
eStagnantWater = 3,
eLava = 4,
eHotLava = 5,
eCrustyLava = 6,
eQuicksand = 7
} |
| enum | WaterConst { WC_NUM_SUBMERGE_TEX = 2
} |
| enum | WaterAttributes { eDepthMapResolution = 512
} |
Public Member Functions |
| | WaterBlock () |
| | ~WaterBlock () |
| bool | onAdd (void) |
| | Called when the object is added to the sim.
|
| void | onRemove (void) |
| | Called when the object is removed from the sim.
|
| bool | onSceneAdd (SceneGraph *graph) |
| | Called when this is added to the SceneGraph.
|
| void | setTransform (const MatrixF &mat) |
| | Sets the Object -> World transform.
|
| void | setScale (const VectorF &scale) |
| | Sets the scale for the object.
|
| bool | prepRenderImage (SceneState *state, const U32 stateKey, const U32 startZone, const bool modifyBaseZoneState=false) |
| | Called when the SceneGraph is ready for the registration of RenderImages.
|
| void | renderObject (SceneState *state, SceneRenderImage *image) |
| | Called when the object is supposed to render itself.
|
| void | inspectPostApply (void) |
| | Called after any property of the object is changed in the world editor.
|
| F32 | getSurfaceHeight (void) |
| void | UpdateFluidRegion (void) |
| void | toggleWireFrame () |
| | DECLARE_CONOBJECT (WaterBlock) |
| EWaterType | getLiquidType () const |
| F32 | getViscosity () const |
| F32 | getDensity () const |
| U32 | packUpdate (NetConnection *conn, U32 mask, BitStream *stream) |
| | Instructs this object to pack its state for transfer over the network.
|
| void | unpackUpdate (NetConnection *conn, BitStream *stream) |
| | Instructs this object to read state data previously packed with packUpdate.
|
| bool | isPointSubmerged (const Point3F &pos, bool worldSpace=true) const |
| bool | isPointSubmergedSimple (const Point3F &pos, bool worldSpace=true) const |
| AudioEnvironment * | getAudioEnvironment () |
Static Public Member Functions |
| static void | SnagTerrain (SceneObject *sceneObj, void *key) |
| static void | cToggleWireFrame (SimObject *, S32, const char **) |
| static void | initPersistFields () |
| | Register dynamic fields in a subclass of ConsoleObject.
|
| static bool | isWater (U32 liquidType) |
| static bool | isLava (U32 liquidType) |
| static bool | isQuicksand (U32 liquidType) |
| static TextureHandle | getSubmergeTexture (U32 index) |
Static Public Attributes |
| static bool | mCameraSubmerged |
| static U32 | mSubmergedType |
Protected Member Functions |
| bool | castRay (const Point3F &start, const Point3F &end, RayInfo *info) |
| | Casts a ray and obtain collision information, returns true if RayInfo is modified.
|
| void | CalculateDepthMaps (void) |
| | Calculate Depth Map.
|
| void | GenerateDepthTextures (GBitmap *pBitmap, TextureHandle &mTexture, bool ShoreFlag) |
| | Generate Depth.
|
Private Types |
| typedef SceneObject | Parent |
Private Attributes |
| fluid | mFluid |
| bool | mTile |
| TextureHandle | mSurfaceTexture |
| TextureHandle | mSpecMaskTex |
| | Specular mask texture.
|
| TextureHandle | mEnvMapOverTexture |
| | Overhead environment map texture handle.
|
| TextureHandle | mEnvMapUnderTexture |
| | Undersea environment map texture handle.
|
| TextureHandle | mShoreTexture |
| | Shore texture handle.
|
| PlaneF | mClipPlane [6] |
| | Frustrum clip planes: 0=T 1=B 2=L 3=R 4=N 5=F.
|
| TerrainBlock * | mpTerrain |
| | Terrain block.
|
| F32 | mSurfaceZ |
| | Height of surface (approx.).
|
| EWaterType | mLiquidType |
| | Type of liquid: Water? Lava? What?
|
| F32 | mDensity |
| | Density of liquid.
|
| F32 | mViscosity |
| | Viscosity of liquid.
|
| F32 | mWaveMagnitude |
| | Size of waves.
|
| StringTableEntry | mSurfaceName |
| | Surface texture.
|
| StringTableEntry | mSpecMaskName |
| | Specular mask texture.
|
| F32 | mSurfaceOpacity |
| | Opacity of surface texture.
|
| StringTableEntry | mEnvMapOverName |
| | Overhead environment map texture name.
|
| StringTableEntry | mEnvMapUnderName |
| | Undersea environment maptexture name.
|
| F32 | mEnvMapIntensity |
| | Intensity of environment maps.
|
| StringTableEntry | mShoreName |
| | Shore texture name.
|
| StringTableEntry | mSubmergeName [WC_NUM_SUBMERGE_TEX] |
| | Name of submerge texture.
|
| bool | mRemoveWetEdges |
| | Remove wet edges?
|
| AudioEnvironment * | mAudioEnvironment |
| | Audio environment handle.
|
| bool | mEditorApplied |
| | Editor Applied Flag.
|
| GBitmap * | mDepthBitmap |
| | Depth Bitmap.
|
| TextureHandle | mDepthTexture |
| | Depth Texture.
|
| GBitmap * | mShoreDepthBitmap |
| | Shore Bitmap.
|
| TextureHandle | mShoreDepthTexture |
| | Shore Texture.
|
| bool | mUseDepthMap |
| | Use Depth-Map Flag.
|
| F32 | mShoreDepth |
| | Shore Depth.
|
| F32 | mMinAlpha |
| | Minimum Alpha.
|
| F32 | mMaxAlpha |
| | Maximum Alpha.
|
| F32 | mDepthGradient |
| | Depth Gradient.
|
| F32 | mTessellationSurface |
| | Tessellation Surface.
|
| F32 | mTessellationShore |
| | Tessellation Shore.
|
| F32 | mSurfaceParallax |
| | Surface Parallax.
|
| F32 | mFlowAngle |
| | Flow Angle.
|
| F32 | mFlowRate |
| | Flow Rate.
|
| F32 | mDistortGridScale |
| | Distort Grid Scale.
|
| F32 | mDistortMagnitude |
| | Distort Magnitude.
|
| F32 | mDistortTime |
| | Distortion Time.
|
| ColorF | mSpecColor |
| F32 | mSpecPower |
| U32 | mTerrainHalfSize |
| U32 | mTerrainSquareSize |
| bool | mIsFluidUpdated |
| TextureHandle | mLocalSubmergeTexture [WC_NUM_SUBMERGE_TEX] |
Static Private Attributes |
| static TextureHandle | mSubmergeTexture [WC_NUM_SUBMERGE_TEX] |