Public Types | Public Member Functions

IGameConversionManager Class Reference

Search for all occurrences

Detailed Description

A developer can use this class to define what Coord Systems IGame exports the data in.

IGame will convert data from the standard 3ds Max RH Z up system to any defined system. At the moment direct support for DirectX and OpenGL are provided. This means that all Matrix and vertex data will have been converted ready to use on your target system.
The coordinate system should set up straight after initialising IGame. The default is to provide everything in 3ds Max native formats.

#include <IConversionManager.h>

Inheritance diagram for IGameConversionManager:
Inheritance graph
[legend]

List of all members.

Public Types

enum   CoordSystem { IGAME_MAX, IGAME_D3D, IGAME_OGL, IGAME_USER }
 

The supported Coordinate Systems.

More...

Public Member Functions

virtual void  SetCoordSystem (CoordSystem Coord)=0
  Set IGame up for the Coordinate System you are wanting the data to be present in.
virtual CoordSystem  GetCoordSystem ()=0
  Get the Coordinate System.
virtual void  SetUserCoordSystem (UserCoord UC)=0
  Set the User defined Coordinate system, if the CoordSystem has been defined as IGAME_USER.

Member Enumeration Documentation

The supported Coordinate Systems.

These are used to tell IGame how to format the data

Enumerator:
IGAME_MAX 

Max RH Z up & +Y.

IGAME_D3D 

DirectX LH Y up & +Z.

IGAME_OGL 

OpenGL RH Y up & -Z.

IGAME_USER 

User defined Coord System.


Member Function Documentation

virtual void SetCoordSystem ( CoordSystem  Coord ) [pure virtual]

Set IGame up for the Coordinate System you are wanting the data to be present in.

The default system is the 3ds MAX system.

Parameters:
Coord The Coordinate system to use If Coord is IGAME_USER then you must set this data via SetUserCoordSystem
virtual CoordSystem GetCoordSystem ( ) [pure virtual]

Get the Coordinate System.

The default system is the 3ds MAX system.

Returns:
The current Coordinate System used, one of the IGameConversionManager::CoordSystem
virtual void SetUserCoordSystem ( UserCoord  UC ) [pure virtual]

Set the User defined Coordinate system, if the CoordSystem has been defined as IGAME_USER.

Allow a user definable Coordinate System. See comments above.

Parameters:
UC THe data to define the system

IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager
IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager IGameConversionManager