Method | Description | |
---|---|---|
getName ( |
Gets the name of the first model on a CGFX file. Returns null if the file doesn't contain any model.
|
|
load ( Stream data ) : RenderBase.OModelGroup |
Loads a CGFX file. Note that CGFX must start at offset 0x0 (don't try using it for CGFXs inside containers).
|
|
load ( string fileName ) : RenderBase.OModelGroup |
Loads a CGFX file.
|
Method | Description | |
---|---|---|
getAnimationKeyFrame ( |
Gets an Animation Key frame from the CGFX file. The Reader position must be set to the beggining of the Key Frame Data.
|
|
getDictionary ( |
Reads a Dictionary section from the CGFX file. The Stream is advanced exactly 8 bytes.
|
|
getDictionary ( |
Reads a Dictionary section from the CGFX file.
|
|
getFragmentSampler ( |
Gets an Fragment Sampler from the CGFX. It is used to access 1-D LookUp tables on Fragment Shader Lighting.
|
|
getMatrix ( |
Reads a 4x3 Matrix from the file.
|
|
getRelativeOffset ( |
Gets a relative offset and automaticaly transforms into a absolute offset. If the offset is zero (data doesn't exists), it will remain zero.
|
|
getVector ( |
Gets a Vector4 from Data. Number of used elements of the Vector4 will depend on the vector type.
|
|
scaleSkeleton ( List |
Scales all child bones of the current bone.
|
|
transformSkeleton ( List |
Transforms a Skeleton from relative to absolute positions.
|
public static getName ( |
||
data | ||
return | string |
public static load ( Stream data ) : RenderBase.OModelGroup | ||
data | Stream | Stream of the CGFX file. |
return | RenderBase.OModelGroup |
public static load ( string fileName ) : RenderBase.OModelGroup | ||
fileName | string | File Name of the CGFX file |
return | RenderBase.OModelGroup |