Torque 3D - Script Manual: RenderMeshExample Class Reference

TorqueScript

Main   Class List   Namespace List   Online

RenderMeshExample Class Reference
[Examples]

An example scene object which renders a mesh. More...

Inheritance diagram for RenderMeshExample:

List of all members.

Public Member Functions

void postApply ()
 A utility method for forcing a network update.

Public Attributes

Rendering

string Material
 The name of the material used to render the mesh.

Static Public Attributes

static bool isRenderable
 Disables rendering of all instances of this type.
static bool isSelectable
 Disables selection of all instances of this type.

Detailed Description

An example scene object which renders a mesh.

This class implements a basic SceneObject that can exist in the world at a 3D position and render itself. There are several valid ways to render an object in Torque. This class implements the preferred rendering method which is to submit a MeshRenderInst along with a Material, vertex buffer, primitive buffer, and transform and allow the RenderMeshMgr handle the actual setup and rendering for you.

See the C++ code for implementation details.


Member Function Documentation

void RenderMeshExample::postApply (  ) 

A utility method for forcing a network update.


Member Data Documentation

The name of the material used to render the mesh.



Copyright © GarageGames, LLC. All Rights Reserved.