Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DDisplay Class Reference

#include <W3DDisplay.h>

Inherits Display.

Public Member Functions

 W3DDisplay ()
 
 ~W3DDisplay ()
 
virtual void init (void)
 initialize or re-initialize the sytsem
 
virtual void reset (void)
 Reset system.
 
virtual void setWidth (UnsignedInt width)
 
virtual void setHeight (UnsignedInt height)
 
virtual Bool setDisplayMode (UnsignedInt xres, UnsignedInt yres, UnsignedInt bitdepth, Bool windowed)
 
virtual Int getDisplayModeCount (void)
 return number of display modes/resolutions supported by video card.
 
virtual void getDisplayModeDescription (Int modeIndex, Int *xres, Int *yres, Int *bitDepth)
 return description of mode
 
virtual void setGamma (Real gamma, Real bright, Real contrast, Bool calibrate)
 
virtual void doSmartAssetPurgeAndPreload (const char *usageFileName)
 
virtual void setClipRegion (IRegion2D *region)
 Set clip rectangle for 2D draw operations.
 
virtual Bool isClippingEnabled (void)
 
virtual void enableClipping (Bool onoff)
 
virtual void draw (void)
 redraw the entire display
 
virtual void createLightPulse (const Coord3D *pos, const RGBColor *color, Real innerRadius, Real outerRadius, UnsignedInt increaseFrameTime, UnsignedInt decayFrameTime)
 
virtual void setTimeOfDay (TimeOfDay tod)
 Set the time of day for this display.
 
virtual void drawLine (Int startX, Int startY, Int endX, Int endY, Real lineWidth, UnsignedInt lineColor)
 draw a line on the display in screen coordinates
 
virtual void drawLine (Int startX, Int startY, Int endX, Int endY, Real lineWidth, UnsignedInt lineColor1, UnsignedInt lineColor2)
 draw a line on the display in screen coordinates
 
virtual void drawOpenRect (Int startX, Int startY, Int width, Int height, Real lineWidth, UnsignedInt lineColor)
 draw a rect border on the display in pixel coordinates with the specified color
 
virtual void drawFillRect (Int startX, Int startY, Int width, Int height, UnsignedInt color)
 draw a filled rect on the display in pixel coords with the specified color
 
virtual void drawRectClock (Int startX, Int startY, Int width, Int height, Int percent, UnsignedInt color)
 Draw a percentage of a rectangle, much like a clock (0 to x%)
 
virtual void drawRemainingRectClock (Int startX, Int startY, Int width, Int height, Int percent, UnsignedInt color)
 Draw's the remaining percentage of a rectangle (x% to 100)
 
virtual void drawImage (const Image *image, Int startX, Int startY, Int endX, Int endY, Color color=0xFFFFFFFF, DrawImageMode mode=DRAW_IMAGE_ALPHA)
 draw an image fit within the screen coordinates
 
virtual void drawVideoBuffer (VideoBuffer *buffer, Int startX, Int startY, Int endX, Int endY)
 draw a video buffer fit within the screen coordinates
 
virtual VideoBuffercreateVideoBuffer (void)
 Create a video buffer that can be used for this display.
 
virtual void takeScreenShot (void)
 Save Screen Capture to a file.
 
virtual void toggleMovieCapture (void)
 
virtual void toggleLetterBox (void)
 enabled letter-boxed display
 
virtual void enableLetterBox (Bool enable)
 forces letter-boxed display on/off
 
virtual Bool isLetterBoxFading (void)
 returns true while letterbox fades in/out
 
virtual Bool isLetterBoxed (void)
 
virtual void clearShroud ()
 empty the entire shroud
 
virtual void setShroudLevel (Int x, Int y, CellShroudStatus setting)
 set shroud
 
virtual void setBorderShroudLevel (UnsignedByte level)
 color that will appear in unused border terrain.
 
virtual void preloadModelAssets (AsciiString model)
 preload model asset
 
virtual void preloadTextureAssets (AsciiString texture)
 preload texture asset
 
void drawFPSStats (void)
 draw the fps on the screen
 
virtual Real getAverageFPS (void)
 return the average FPS.
 
virtual Int getLastFrameDrawCalls (void)
 returns the number of draw calls issued in the previous frame
 
- Public Member Functions inherited from Display
 Display ()
 
virtual ~Display ()
 
virtual void update (void)
 Update system.
 
virtual UnsignedInt getWidth (void)
 Returns the width of the display.
 
virtual UnsignedInt getHeight (void)
 Returns the height of the display.
 
virtual void setBitDepth (UnsignedInt bitDepth)
 
virtual UnsignedInt getBitDepth (void)
 
virtual void setWindowed (Bool windowed)
 set windowd/fullscreen flag
 
virtual Bool getWindowed (void)
 return widowed/fullscreen flag
 
virtual Bool testMinSpecRequirements (Bool *videoPassed, Bool *cpuPassed, Bool *memPassed, StaticGameLODLevel *idealVideoLevel=NULL, Real *cpuTime=NULL)
 
virtual void attachView (View *view)
 Attach the given view to the world.
 
virtual ViewgetFirstView (void)
 Return the first view of the world.
 
virtual ViewgetNextView (View *view)
 
virtual void drawViews (void)
 Render all views of the world.
 
virtual void updateViews (void)
 Updates state of world views.
 
virtual void playLogoMovie (AsciiString movieName, Int minMovieLength, Int minCopyrightLength)
 FullScreen video playback.
 
virtual void playMovie (AsciiString movieName)
 
virtual void stopMovie (void)
 
virtual Bool isMoviePlaying (void)
 
virtual void setDebugDisplayCallback (DebugDisplayCallback *callback, void *userData=NULL)
 Register debug display callback.
 
virtual DebugDisplayCallbackgetDebugDisplayCallback ()
 
virtual void setCinematicText (AsciiString string)
 
virtual void setCinematicFont (GameFont *font)
 
virtual void setCinematicTextFrames (Int frames)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Static Public Attributes

static RTS3DScenem_3DScene = NULL
 our 3d scene representation
 
static RTS2DScenem_2DScene = NULL
 our 2d scene representation
 
static RTS3DInterfaceScenem_3DInterfaceScene = NULL
 our 3d interface scene that draws last (for 3d mouse cursor, etc)
 
static W3DAssetManagerm_assetManager = NULL
 W3D asset manager.
 

Protected Types

enum  {
  FPS , Frame , Polygons , Vertices ,
  VideoRam , DebugInfo , KEY_MOUSE_STATES , MousePosition ,
  Particles , Objects , NetIncoming , NetOutgoing ,
  NetStats , NetFPSAverages , SelectedInfo , TerrainStats ,
  DisplayStringCount
}
 

Protected Member Functions

void initAssets (void)
 init assets for WW3D
 
void init3DScene (void)
 init 3D scene for WW3D
 
void init2DScene (void)
 init 2D scene for WW3D
 
void gatherDebugStats (void)
 compute debug stats
 
void drawDebugStats (void)
 display debug stats
 
void drawCurrentDebugDisplay (void)
 draws current debug display
 
void calculateTerrainLOD (void)
 Calculate terrain LOD.
 
void renderLetterBox (UnsignedInt time)
 draw letter box border
 
void updateAverageFPS (void)
 figure out the average fps over the last 30 frames.
 
- Protected Member Functions inherited from Display
virtual void deleteViews (void)
 delete all views
 

Protected Attributes

Byte m_initialized
 TRUE when system is initialized.
 
LightClassm_myLight [LightEnvironmentClass::MAX_LIGHTS]
 light hack for now
 
Render2DClassm_2DRender
 interface for common 2D functions
 
IRegion2D m_clipRegion
 the clipping region for images
 
Bool m_isClippedEnabled
 used by 2D drawing operations to define clip re
 
Real m_averageFPS
 average fps over the last 30 frames.
 
DisplayStringm_displayStrings [DisplayStringCount]
 
DisplayStringm_benchmarkDisplayString
 
W3DDebugDisplaym_nativeDebugDisplay
 W3D specific debug display interface.
 
- Protected Attributes inherited from Display
UnsignedInt m_width
 
UnsignedInt m_height
 Dimensions of the display.
 
UnsignedInt m_bitDepth
 bit depth of the display
 
Bool m_windowed
 TRUE when windowed, FALSE when fullscreen.
 
Viewm_viewList
 All of the views into the world.
 
AsciiString m_cinematicText
 string of the cinematic text that should be displayed
 
GameFontm_cinematicFont
 font for cinematic text
 
Int m_cinematicTextFrames
 count of how long the cinematic text should be displayed
 
VideoBufferm_videoBuffer
 Video playback buffer.
 
VideoStreamInterfacem_videoStream
 Video stream;.
 
AsciiString m_currentlyPlayingMovie
 The currently playing video. Used to notify TheScriptEngine of completed videos.
 
DebugDisplayInterfacem_debugDisplay
 Actual debug display.
 
DebugDisplayCallbackm_debugDisplayCallback
 Code to update the debug display.
 
void * m_debugDisplayUserData
 Data for debug display update handler.
 
Real m_letterBoxFadeLevel
 tracks the current alpha level for fading letter-boxed mode in/out.
 
Bool m_letterBoxEnabled
 current state of letterbox
 
UnsignedInt m_letterBoxFadeStartTime
 time of letterbox fade start
 
Int m_movieHoldTime
 time that we hold on the last frame of the movie
 
Int m_copyrightHoldTime
 time that the copyright must be on the screen
 
UnsignedInt m_elapsedMovieTime
 used to make sure we show the stuff long enough
 
UnsignedInt m_elapsedCopywriteTime
 Hold on the last frame until both have expired.
 
DisplayStringm_copyrightDisplayString
 this'll hold the display string
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Additional Inherited Members

- Public Types inherited from Display
enum  DrawImageMode { DRAW_IMAGE_SOLID , DRAW_IMAGE_GRAYSCALE , DRAW_IMAGE_ALPHA , DRAW_IMAGE_ADDITIVE }
 
typedef void DebugDisplayCallback(DebugDisplayInterface *debugDisplay, void *userData, FILE *fp=NULL)
 

Detailed Description

W3D implementation of the game display which is responsible for creating all interaction with the screen and updating the display

Definition at line 57 of file W3DDisplay.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
FPS 

debug display frames per second

Frame 

debug display current frame

Polygons 

debug display polygons

Vertices 

debug display vertices

VideoRam 

debug display for video ram used

DebugInfo 

miscellaneous debug info string

KEY_MOUSE_STATES 

keyboard modifier and mouse button states.

MousePosition 

debug display mouse position

Particles 

debug display particles

Objects 

debug display total number of objects

NetIncoming 

debug display network incoming stats

NetOutgoing 

debug display network outgoing stats

NetStats 

debug display network performance stats.

NetFPSAverages 

debug display all players' average fps.

SelectedInfo 

debug display for the selected object in the UI

TerrainStats 

debug display for the terrain renderer

DisplayStringCount 

Definition at line 174 of file W3DDisplay.h.

Constructor & Destructor Documentation

◆ W3DDisplay()

W3DDisplay::W3DDisplay ( )

Definition at line 394 of file W3DDisplay.cpp.

◆ ~W3DDisplay()

W3DDisplay::~W3DDisplay ( )

Definition at line 424 of file W3DDisplay.cpp.

Member Function Documentation

◆ calculateTerrainLOD()

void W3DDisplay::calculateTerrainLOD ( void )
protected

Calculate terrain LOD.

Calculates an adequately speedy terrain Level Of Detail.

Definition at line 1568 of file W3DDisplay.cpp.

◆ clearShroud()

void W3DDisplay::clearShroud ( )
virtual

empty the entire shroud

Implements Display.

Definition at line 2882 of file W3DDisplay.cpp.

◆ createLightPulse()

void W3DDisplay::createLightPulse ( const Coord3D * pos,
const RGBColor * color,
Real innerRadius,
Real attenuationWidth,
UnsignedInt increaseFrameTime,
UnsignedInt decayFrameTime )
virtual
Todo
Replace these light management routines with a LightManager singleton

Create a "light pulse" which is a dynamic light that grows, decays and vanishes over several frames

Implements Display.

Definition at line 2079 of file W3DDisplay.cpp.

◆ createVideoBuffer()

VideoBuffer * W3DDisplay::createVideoBuffer ( void )
virtual

Create a video buffer that can be used for this display.

Todo
query video player for supported formats - we assume bink formats here

Implements Display.

Definition at line 2800 of file W3DDisplay.cpp.

◆ doSmartAssetPurgeAndPreload()

void W3DDisplay::doSmartAssetPurgeAndPreload ( const char * usageFileName)
virtual

Implements Display.

Definition at line 3249 of file W3DDisplay.cpp.

◆ draw()

void W3DDisplay::draw ( void )
virtual

redraw the entire display

Draw the entire W3D Display

Todo
Make more explicit drawing layers(ground, ground UI, objects, object UI, overlay UI)
Todo
: Ask Vegas why the LOD optimizer hangs particle system.
Todo
: I'm assuming the first view is our main 3D view.
Todo
: Is there a better place to put per-frame updates like this?
Todo
Decouple framerate from timestep

Reimplemented from Display.

Definition at line 1664 of file W3DDisplay.cpp.

◆ drawCurrentDebugDisplay()

void W3DDisplay::drawCurrentDebugDisplay ( void )
protected

draws current debug display

Draw current debug display

Definition at line 1549 of file W3DDisplay.cpp.

◆ drawDebugStats()

void W3DDisplay::drawDebugStats ( void )
protected

display debug stats

Draw debug statistics

Definition at line 1494 of file W3DDisplay.cpp.

◆ drawFillRect()

void W3DDisplay::drawFillRect ( Int startX,
Int startY,
Int width,
Int height,
UnsignedInt color )
virtual

draw a filled rect on the display in pixel coords with the specified color

Todo
we need to consider the efficiency of the 2D renderer

Implements Display.

Definition at line 2271 of file W3DDisplay.cpp.

◆ drawFPSStats()

void W3DDisplay::drawFPSStats ( void )

draw the fps on the screen

Draw the FPS on the screen

Definition at line 1524 of file W3DDisplay.cpp.

◆ drawImage()

void W3DDisplay::drawImage ( const Image * image,
Int startX,
Int startY,
Int endX,
Int endY,
Color color = 0xFFFFFFFF,
DrawImageMode mode = DRAW_IMAGE_ALPHA )
virtual

draw an image fit within the screen coordinates

Draws an images at the screen coordinates and keeps it within the end screen coords specified

Todo
: Why are we alpha blending all images? Reduces our fillrate. -MW

Implements Display.

Definition at line 2627 of file W3DDisplay.cpp.

◆ drawLine() [1/2]

void W3DDisplay::drawLine ( Int startX,
Int startY,
Int endX,
Int endY,
Real lineWidth,
UnsignedInt lineColor )
virtual

draw a line on the display in screen coordinates

draw a line on the display in pixel coordinates with the specified color

Todo
we need to consider the efficiency of the 2D renderer

Implements Display.

Definition at line 2183 of file W3DDisplay.cpp.

◆ drawLine() [2/2]

void W3DDisplay::drawLine ( Int startX,
Int startY,
Int endX,
Int endY,
Real lineWidth,
UnsignedInt lineColor1,
UnsignedInt lineColor2 )
virtual

draw a line on the display in screen coordinates

draw a line on the display in pixel coordinates with the specified color

Todo
we need to consider the efficiency of the 2D renderer

Implements Display.

Definition at line 2201 of file W3DDisplay.cpp.

◆ drawOpenRect()

void W3DDisplay::drawOpenRect ( Int startX,
Int startY,
Int width,
Int height,
Real lineWidth,
UnsignedInt lineColor )
virtual

draw a rect border on the display in pixel coordinates with the specified color

Todo
we need to consider the efficiency of the 2D renderer

Implements Display.

Definition at line 2219 of file W3DDisplay.cpp.

◆ drawRectClock()

void W3DDisplay::drawRectClock ( Int startX,
Int startY,
Int width,
Int height,
Int percent,
UnsignedInt color )
virtual

Draw a percentage of a rectangle, much like a clock (0 to x%)

Implements Display.

Definition at line 2287 of file W3DDisplay.cpp.

◆ drawRemainingRectClock()

void W3DDisplay::drawRemainingRectClock ( Int startX,
Int startY,
Int width,
Int height,
Int percent,
UnsignedInt color )
virtual

Draw's the remaining percentage of a rectangle (x% to 100)

Implements Display.

Definition at line 2451 of file W3DDisplay.cpp.

◆ drawVideoBuffer()

void W3DDisplay::drawVideoBuffer ( VideoBuffer * buffer,
Int startX,
Int startY,
Int endX,
Int endY )
virtual

draw a video buffer fit within the screen coordinates

Implements Display.

Definition at line 2853 of file W3DDisplay.cpp.

◆ enableClipping()

virtual void W3DDisplay::enableClipping ( Bool onoff)
inlinevirtual

Implements Display.

Definition at line 82 of file W3DDisplay.h.

◆ enableLetterBox()

void W3DDisplay::enableLetterBox ( Bool enable)
virtual

forces letter-boxed display on/off

Implements Display.

Definition at line 2116 of file W3DDisplay.cpp.

◆ gatherDebugStats()

void W3DDisplay::gatherDebugStats ( void )
protected

compute debug stats

Compute and display debug stats on screen

Definition at line 936 of file W3DDisplay.cpp.

◆ getAverageFPS()

Real W3DDisplay::getAverageFPS ( void )
virtual

return the average FPS.

Implements Display.

Definition at line 1648 of file W3DDisplay.cpp.

◆ getDisplayModeCount()

Int W3DDisplay::getDisplayModeCount ( void )
virtual

return number of display modes/resolutions supported by video card.

Reimplemented from Display.

Definition at line 487 of file W3DDisplay.cpp.

◆ getDisplayModeDescription()

void W3DDisplay::getDisplayModeDescription ( Int modeIndex,
Int * xres,
Int * yres,
Int * bitDepth )
virtual

return description of mode

Reimplemented from Display.

Definition at line 519 of file W3DDisplay.cpp.

◆ getLastFrameDrawCalls()

Int W3DDisplay::getLastFrameDrawCalls ( void )
virtual

returns the number of draw calls issued in the previous frame

Implements Display.

Definition at line 1653 of file W3DDisplay.cpp.

◆ init()

void W3DDisplay::init ( void )
virtual

initialize or re-initialize the sytsem

Initialize or re-initialize the W3D display system. Here we need to create our window, and get our 3D hardware setup and online

Todo
W3DDisplay needs RE-init logic!

<set to 0xff to make collision boxes visible

< this makes text look good :)

Todo
we should set this according to options read from a file

Reimplemented from Display.

Definition at line 655 of file W3DDisplay.cpp.

◆ init2DScene()

void W3DDisplay::init2DScene ( void )
protected

init 2D scene for WW3D

This is the 2D scene, you can use it to draw on a 2D plane over the 3D background

Definition at line 646 of file W3DDisplay.cpp.

◆ init3DScene()

void W3DDisplay::init3DScene ( void )
protected

init 3D scene for WW3D

Definition at line 637 of file W3DDisplay.cpp.

◆ initAssets()

void W3DDisplay::initAssets ( void )
protected

init assets for WW3D

Definition at line 629 of file W3DDisplay.cpp.

◆ isClippingEnabled()

virtual Bool W3DDisplay::isClippingEnabled ( void )
inlinevirtual

Implements Display.

Definition at line 81 of file W3DDisplay.h.

◆ isLetterBoxed()

Bool W3DDisplay::isLetterBoxed ( void )
virtual

Reimplemented from Display.

Definition at line 2070 of file W3DDisplay.cpp.

◆ isLetterBoxFading()

Bool W3DDisplay::isLetterBoxFading ( void )
virtual

returns true while letterbox fades in/out

Reimplemented from Display.

Definition at line 2060 of file W3DDisplay.cpp.

◆ preloadModelAssets()

void W3DDisplay::preloadModelAssets ( AsciiString model)
virtual

preload model asset

Preload using the W3D asset manager the model referenced by the string parameter

Implements Display.

Definition at line 3219 of file W3DDisplay.cpp.

◆ preloadTextureAssets()

void W3DDisplay::preloadTextureAssets ( AsciiString texture)
virtual

preload texture asset

Preload using the W3D asset manager the texture referenced by the string parameter

Implements Display.

Definition at line 3236 of file W3DDisplay.cpp.

◆ renderLetterBox()

void W3DDisplay::renderLetterBox ( UnsignedInt currentTime)
protected

draw letter box border

Render letter-box border at top/bottom of display

Definition at line 2011 of file W3DDisplay.cpp.

◆ reset()

void W3DDisplay::reset ( void )
virtual

Reset system.

Reset the W3D display system. Here we need to remove the objects from the previous map.

Todo
really need that "scene abstraction", having this stuff in the display is icky

Reimplemented from Display.

Definition at line 841 of file W3DDisplay.cpp.

◆ setBorderShroudLevel()

void W3DDisplay::setBorderShroudLevel ( UnsignedByte level)
virtual

color that will appear in unused border terrain.

Implements Display.

Definition at line 2888 of file W3DDisplay.cpp.

◆ setClipRegion()

void W3DDisplay::setClipRegion ( IRegion2D * region)
virtual

Set clip rectangle for 2D draw operations.

Set the clipping region for images.

Todo
: Make this work for all primitives, not just drawImage.

Implements Display.

Definition at line 2870 of file W3DDisplay.cpp.

◆ setDisplayMode()

Bool W3DDisplay::setDisplayMode ( UnsignedInt xres,
UnsignedInt yres,
UnsignedInt bitdepth,
Bool windowed )
virtual

Set resolution of display

Reimplemented from Display.

Definition at line 581 of file W3DDisplay.cpp.

◆ setGamma()

void W3DDisplay::setGamma ( Real gamma,
Real bright,
Real contrast,
Bool calibrate )
virtual

Reimplemented from Display.

Definition at line 543 of file W3DDisplay.cpp.

◆ setHeight()

void W3DDisplay::setHeight ( UnsignedInt height)
virtual

Set height of display

Reimplemented from Display.

Definition at line 614 of file W3DDisplay.cpp.

◆ setShroudLevel()

void W3DDisplay::setShroudLevel ( Int x,
Int y,
CellShroudStatus setting )
virtual

set shroud

<

Todo
placeholder to get feedback on logic work while graphic side being decided

Implements Display.

Definition at line 2897 of file W3DDisplay.cpp.

◆ setTimeOfDay()

void W3DDisplay::setTimeOfDay ( TimeOfDay tod)
virtual

Set the time of day for this display.

Implements Display.

Definition at line 2151 of file W3DDisplay.cpp.

◆ setWidth()

void W3DDisplay::setWidth ( UnsignedInt width)
virtual

Set width of display

Reimplemented from Display.

Definition at line 599 of file W3DDisplay.cpp.

◆ takeScreenShot()

void W3DDisplay::takeScreenShot ( void )
virtual

Save Screen Capture to a file.

Implements Display.

Definition at line 2994 of file W3DDisplay.cpp.

◆ toggleLetterBox()

void W3DDisplay::toggleLetterBox ( void )
virtual

enabled letter-boxed display

Implements Display.

Definition at line 2104 of file W3DDisplay.cpp.

◆ toggleMovieCapture()

void W3DDisplay::toggleMovieCapture ( void )
virtual

Start/Stop campturing an AVI movie

Implements Display.

Definition at line 3123 of file W3DDisplay.cpp.

◆ updateAverageFPS()

void W3DDisplay::updateAverageFPS ( void )
protected

figure out the average fps over the last 30 frames.

Update a moving average of the last 30 fps measurements. Also try to filter out temporary spikes. This code is designed to be used by the GameLOD sytems to determine the correct dynamic LOD setting.

Definition at line 874 of file W3DDisplay.cpp.

Member Data Documentation

◆ m_2DRender

Render2DClass* W3DDisplay::m_2DRender
protected

interface for common 2D functions

Definition at line 166 of file W3DDisplay.h.

◆ m_2DScene

RTS2DScene * W3DDisplay::m_2DScene = NULL
static

our 2d scene representation

Definition at line 144 of file W3DDisplay.h.

◆ m_3DInterfaceScene

RTS3DInterfaceScene * W3DDisplay::m_3DInterfaceScene = NULL
static

our 3d interface scene that draws last (for 3d mouse cursor, etc)

Definition at line 145 of file W3DDisplay.h.

◆ m_3DScene

RTS3DScene * W3DDisplay::m_3DScene = NULL
static

our 3d scene representation

Todo
Need a scene abstraction

Definition at line 143 of file W3DDisplay.h.

◆ m_assetManager

W3DAssetManager * W3DDisplay::m_assetManager = NULL
static

W3D asset manager.

Definition at line 146 of file W3DDisplay.h.

◆ m_averageFPS

Real W3DDisplay::m_averageFPS
protected

average fps over the last 30 frames.

Definition at line 169 of file W3DDisplay.h.

◆ m_benchmarkDisplayString

DisplayString* W3DDisplay::m_benchmarkDisplayString
protected

Definition at line 197 of file W3DDisplay.h.

◆ m_clipRegion

IRegion2D W3DDisplay::m_clipRegion
protected

the clipping region for images

Definition at line 167 of file W3DDisplay.h.

◆ m_displayStrings

DisplayString* W3DDisplay::m_displayStrings[DisplayStringCount]
protected

Definition at line 196 of file W3DDisplay.h.

◆ m_initialized

Byte W3DDisplay::m_initialized
protected

TRUE when system is initialized.

Definition at line 164 of file W3DDisplay.h.

◆ m_isClippedEnabled

Bool W3DDisplay::m_isClippedEnabled
protected

used by 2D drawing operations to define clip re

Definition at line 168 of file W3DDisplay.h.

◆ m_myLight

LightClass* W3DDisplay::m_myLight[LightEnvironmentClass::MAX_LIGHTS]
protected

light hack for now

Definition at line 165 of file W3DDisplay.h.

◆ m_nativeDebugDisplay

W3DDebugDisplay* W3DDisplay::m_nativeDebugDisplay
protected

W3D specific debug display interface.

Definition at line 199 of file W3DDisplay.h.


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