|
BrawlCrate v0.41
Wii File Editor
|
Public Member Functions | |
| void | SetAssetChanged (int index) |
| PrimitiveManager | HardCopy () |
| Returns an identical copy of this manager but as a completely new instance with reallocated buffers. More... | |
| Vector3[] | GetVertices (bool force) |
| Returns vertex positions from each vertex. More... | |
| Vector3[] | GetNormals (bool force) |
| Retrieves normals from raw facedata in a remapped array. More... | |
| Vector2[] | GetUVs (int index, bool force) |
| Retrieves texture coordinates from raw facedata in a remapped array. More... | |
| RGBAPixel[] | GetColors (int index, bool force) |
| Retrieves color values from raw facedata in a remapped array. More... | |
| PrimitiveManager () | |
| PrimitiveManager (MDL0Object *polygon, AssetStorage assets, IMatrixNode[] nodes, IObject owner) | |
| void | Dispose () |
| int | GetDisplayListSize () |
| void | GroupPrimitives (bool useStrips, uint cacheSize, uint minStripLen, bool pushCacheHits, bool forceCCW, out int newPointCount, out int newFaceCount) |
| Currently should only should be called when importing a model with the collada importer or when internal asset data has changed and needs to be distributed to external arrays More... | |
| void | SetVertexDescList (short[] indices, List< VertexCodec > vertexCodecs, List< ColorCodec > colorCodecs, params bool[] forceDirect) |
| void | WriteVertexDescriptor (out CPVertexFormat vertexFormat, out XFVertexSpecs vertexSpecs) |
| This sets up how to read the facepoints that are going to be written. More... | |
| void | SetFormatList (MDL0ObjectNode polygon, ModelLinker linker) |
| void | WriteVertexFormat (MDL0Object *polygon) |
| uint | ShiftVtxLo (uint pmidx, uint t76543210midx, uint pos, uint nrm, uint col0, uint col1) |
| uint | ShiftVtxHi (uint tex0, uint tex1, uint tex2, uint tex3, uint tex4, uint tex5, uint tex6, uint tex7) |
| uint | ShiftXFSpecs (uint host_colors, uint host_normal, uint host_textures) |
| uint | ShiftUVATA (uint posCnt, uint posFmt, uint posShft, uint nrmCnt, uint nrmFmt, uint Col0Cnt, uint Col0Fmt, uint Col1Cnt, uint Col1Fmt, uint tex0Cnt, uint tex0Fmt, uint tex0Shft, uint normalIndex3) |
| uint | ShiftUVATB (uint tex1Cnt, uint tex1Fmt, uint tex1Shft, uint tex2Cnt, uint tex2Fmt, uint tex2Shft, uint tex3Cnt, uint tex3Fmt, uint tex3Shft, uint tex4Cnt, uint tex4Fmt) |
| uint | ShiftUVATC (uint tex4Shft, uint tex5Cnt, uint tex5Fmt, uint tex5Shft, uint tex6Cnt, uint tex6Fmt, uint tex6Shft, uint tex7Cnt, uint tex7Fmt, uint tex7Shft) |
| void | Unweight (bool updateAssets) |
| void | Weight () |
| void | PrepareStream () |
| void | BindStream () |
| void | DisableTextures () |
| void | ApplyTexture (TexSourceRow source) |
| void | RenderMesh () |
| void | PositionsChanged (MDL0ObjectNode obj, bool forceNewNode=false) |
| void | NormalsChanged (MDL0ObjectNode obj, bool forceNewNode=false) |
| void | ColorsChanged (MDL0ObjectNode obj, int id, bool forceNewNode=false) |
| void | UVsChanged (MDL0ObjectNode obj, int id, bool forceNewNode=false) |
Public Attributes | |
| List< Vertex3 > | _vertices |
| UnsafeBuffer | _indices |
| int | _pointCount |
| int | _faceCount |
| int | _renderStride |
| UnsafeBuffer[] | _faceData = new UnsafeBuffer[12] |
| bool[] | _dirty = new bool[12] |
| UnsafeBuffer | _graphicsBuffer |
| bool[] | HasTextureMatrix = new bool[8] |
| bool[] | UseIdentityTexMtx = new bool[8] |
| bool | _remakePrimitives |
| bool | _isWeighted |
| int | _primitiveSize |
| List< FacepointAttribute > | _descList |
| List< VertexAttributeFormat > | _fmtList |
| XFArrayFlags | _arrayFlags |
| int | _fpStride |
| List< PrimitiveGroup > | _primGroups = new List<PrimitiveGroup>() |
| int | _arrayHandle |
| int | _arrayBufferHandle |
| int | _elementArrayBufferHandle |
| bool | _render = true |
| bool | _renderNormals = true |
Static Public Attributes | |
| static Color | DefaultVertColor = Color.FromArgb(0, 128, 0) |
| static Color | DefaultNormColor = Color.FromArgb(0, 0, 128) |
| static float | NormalLength = 0.5f |
| const float | _nodeRadius = 0.05f |
Properties | |
| bool | AssetsChanged [get, set] |
| bool | HasTexMtx [get] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieves color values from raw facedata in a remapped array.
| index | The color set to retrieve. Values 0 - 1 |
| force | If not forced, will return values created by a previous call (if there was one). |
|
inline |
|
inline |
Retrieves normals from raw facedata in a remapped array.
| force | If not forced, will return values created by a previous call (if there was one). |
|
inline |
Retrieves texture coordinates from raw facedata in a remapped array.
| index | The UV set to retrieve. Values 0 - 7 |
| force | If not forced, will return values created by a previous call (if there was one). |
|
inline |
Returns vertex positions from each vertex.
| force | If not forced, will return values created by a previous call (if there was one). |
|
inline |
Currently should only should be called when importing a model with the collada importer or when internal asset data has changed and needs to be distributed to external arrays
|
inline |
Returns an identical copy of this manager but as a completely new instance with reallocated buffers.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This sets up how to read the facepoints that are going to be written.
|
inline |
| int BrawlLib.Modeling.PrimitiveManager._arrayBufferHandle |
| XFArrayFlags BrawlLib.Modeling.PrimitiveManager._arrayFlags |
| int BrawlLib.Modeling.PrimitiveManager._arrayHandle |
| List<FacepointAttribute> BrawlLib.Modeling.PrimitiveManager._descList |
| bool [] BrawlLib.Modeling.PrimitiveManager._dirty = new bool[12] |
| int BrawlLib.Modeling.PrimitiveManager._elementArrayBufferHandle |
| int BrawlLib.Modeling.PrimitiveManager._faceCount |
| UnsafeBuffer [] BrawlLib.Modeling.PrimitiveManager._faceData = new UnsafeBuffer[12] |
| List<VertexAttributeFormat> BrawlLib.Modeling.PrimitiveManager._fmtList |
| int BrawlLib.Modeling.PrimitiveManager._fpStride |
| UnsafeBuffer BrawlLib.Modeling.PrimitiveManager._graphicsBuffer |
| UnsafeBuffer BrawlLib.Modeling.PrimitiveManager._indices |
| bool BrawlLib.Modeling.PrimitiveManager._isWeighted |
|
static |
| int BrawlLib.Modeling.PrimitiveManager._pointCount |
| List<PrimitiveGroup> BrawlLib.Modeling.PrimitiveManager._primGroups = new List<PrimitiveGroup>() |
| int BrawlLib.Modeling.PrimitiveManager._primitiveSize |
| bool BrawlLib.Modeling.PrimitiveManager._remakePrimitives |
| bool BrawlLib.Modeling.PrimitiveManager._render = true |
| bool BrawlLib.Modeling.PrimitiveManager._renderNormals = true |
| int BrawlLib.Modeling.PrimitiveManager._renderStride |
| List<Vertex3> BrawlLib.Modeling.PrimitiveManager._vertices |
|
static |
|
static |
| bool [] BrawlLib.Modeling.PrimitiveManager.HasTextureMatrix = new bool[8] |
|
static |
| bool [] BrawlLib.Modeling.PrimitiveManager.UseIdentityTexMtx = new bool[8] |
|
getset |
|
get |