C# Class SharpMod.Model

A class to manage models
Datei anzeigen Open project: txdv/sharpmod

Public Methods

Method Description
GetModel ( Entity entity ) : Model
GetPointer ( Entity entity ) : IntPtr

Gets a model from an entity

GetPointer ( IntPtr entity ) : IntPtr
Index ( string filename ) : int

Gets the index of a loaded Model

Model ( IntPtr model ) : System
Precache ( string filename ) : int

Precaches a mode

Method Details

GetModel() public static method

public static GetModel ( Entity entity ) : Model
entity Entity
return Model

GetPointer() public static method

Gets a model from an entity
public static GetPointer ( Entity entity ) : IntPtr
entity Entity /// Entity which holds the model ///
return System.IntPtr

GetPointer() public static method

public static GetPointer ( IntPtr entity ) : IntPtr
entity System.IntPtr
return System.IntPtr

Index() public static method

Gets the index of a loaded Model
public static Index ( string filename ) : int
filename string /// A ///
return int

Model() public method

public Model ( IntPtr model ) : System
model System.IntPtr
return System

Precache() public static method

Precaches a mode
public static Precache ( string filename ) : int
filename string /// A string represeting the filename ///
return int