torque Torque Game Engine Documentation
TGE Version 1.5.2

Automatic Gui Updates


Detailed Description

This collection of functions is used to make textures which automatically update every frame based on the content of a GuiControl.


Functions

void DynamicTexture::registerForGuiUpdates (GuiControl *control)
 This registers this DynamicTexture to be updated every frame with the contents of a GuiControl.
bool DynamicTexture::unregisterForGuiUpdates ()
 This will unregister this DynamicTexture from per-frame Gui updates.
static void DynamicTexture::updateGuiTextures ()
 This method is called in GuiCanvas before the screen-rendering takes place to update all of the registered GUI update textures.


Function Documentation

void DynamicTexture::registerForGuiUpdates ( GuiControl control  )  [inherited]

This registers this DynamicTexture to be updated every frame with the contents of a GuiControl.

Parameters:
control Gui control to render to this texture every frame

bool DynamicTexture::unregisterForGuiUpdates (  )  [inherited]

This will unregister this DynamicTexture from per-frame Gui updates.

Returns:
True if it removed this from updating

static void DynamicTexture::updateGuiTextures (  )  [static, inherited]

This method is called in GuiCanvas before the screen-rendering takes place to update all of the registered GUI update textures.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen