Ogre Conversion Notes - Axiom : A 3D Rendering Engine in C#

Ogre Conversion Notes

From Axiom

Jump to: navigation, search

Contents

Overview

Here you will find all of the various pitfalls and hurdles that have been encountered while converting the OGRE project to Axiom.

General

Types

  • In OGRE the Real datatype typically converts to float
    this will be fixed with the new DotNet3D.Math library.

Generics

As near as I can figure out so far:

  • std::map< T >     ->   System.Collections.Generic.Dictionary< T >
  • std::vector< T >   ->   System.Collections.Generic.List< T >
  • std::list< T >       ->   System.Collections.Generic.LinkedList< T >
  • std::deque< T >   ->   System.Collections.Generic.Stack< T >

Methods

  • Convert Get/Set Methods to Properties.
    If the Get/Set Method is simply modifying a field then this can be converted into a Property for the class
  • private methods should be named camelCase with a leading underscore.

Properties and Fields

  • Convert protected fields to private with Protected Properties.
    This is proper implementation for a library, according to the MS guidelines.

Samples

OGRE_Conversion_Sample

Views
Powered by MediaWiki GNU Free Documentation License 1.2