Esempio n. 1
0
 public I6Header(int frames, float frameScale, float step, float floor)
 {
     _numFrames  = (ushort)frames;
     _unk1       = 0;
     _frameScale = frameScale;
     _step       = step;
     _base       = floor;
 }
Esempio n. 2
0
 public I4Header(int entries, float frameScale, float step, float floor)
 {
     _entries    = (ushort)entries;
     _unk        = 0;
     _frameScale = frameScale;
     _step       = step;
     _base       = floor;
 }
Esempio n. 3
0
 public GSNDEntry(float UnkFloat0, float UnkFloat1, string trigger, string name) : this()
 {
     _pad0      = _pad1 = _pad2 = 0;
     _unkFloat0 = UnkFloat0;
     _unkFloat1 = UnkFloat1;
     Name       = name;
     Trigger    = trigger;
     Pad4       = 0;
     unk0       = 0x00000001;
 }
Esempio n. 4
0
 public REFTImageHeader(ushort width, ushort height, byte format, byte pltFormat, ushort colors, uint imgSize, byte lod)
 {
     _unknown    = 0;
     _width      = width;
     _height     = height;
     _imagelen   = imgSize;
     _format     = format;
     _pltFormat  = pltFormat;
     _colorCount = colors;
     _pltSize    = (uint)colors * 2;
     _mipmap     = lod;
     _min_filt   = 0;
     _mag_filt   = 0;
     _reserved   = 0;
     _lod_bias   = 0;
 }
Esempio n. 5
0
        public TEX0v1(int width, int height, WiiPixelFormat format, int mipLevels)
        {
            _header._tag        = Tag;
            _header._size       = TextureConverter.Get(format).GetMipOffset(width, height, mipLevels + 1) + Size;
            _header._version    = 1;
            _header._bresOffset = 0;

            _headerLen      = Size;
            _stringOffset   = 0;
            _hasPalette     = ((format == WiiPixelFormat.CI4) || (format == WiiPixelFormat.CI8)) ? 1 : 0;
            _width          = (short)width;
            _height         = (short)height;
            _pixelFormat    = (int)format;
            _levelOfDetail  = mipLevels;
            _minLod         = 0;
            _maxLod         = mipLevels - 1.0f;
            _origPathOffset = 0;
        }
Esempio n. 6
0
 public GDOREntry(string stageID, string trigger0, string trigger1, string trigger2, int modelIndex)
 {
     _pad0          = 1.0f;
     _unk0          = _unk1 = _unk2 = _unk3 =
         _unk4      = _unk5 = _unk6 = 0;
     _pad1          = 0;
     _unkInt        = 0;
     _xOverride     = _yOverride = _zOverride =
         _unkFloat0 = _unkFloat1 = 0;
     _unk7          = 1;
     _unk8          = _unk9 = _unk10 = 0;
     _nulls         = 0xffffffff;
     _mdlIndex      = (byte)modelIndex;
     _doorIndex     = 0;
     DoorID         = stageID;
     Trigger0       = trigger0;
     Trigger1       = trigger1;
     Trigger2       = trigger2;
     Pad2           = 0;
     Pad4           = 1.0f;
 }
Esempio n. 7
0
        public TEX0(int width, int height, WiiPixelFormat format, int mipLevels)
        {
            _header._tag        = Tag;
            _header._size       = TextureConverter.Get(format).GetMipOffset(width, height, mipLevels + 1) + Size;
            _header._version    = 1;
            _header._bresOffset = 0;

            _headerLen     = Size;
            _stringOffset  = 0;
            _hasPalette    = ((format == WiiPixelFormat.CI4) || (format == WiiPixelFormat.CI8)) ? 1 : 0;
            _width         = (short)width;
            _height        = (short)height;
            _pixelFormat   = (int)format;
            _levelOfDetail = mipLevels;
            _unknown       = 0;
            _lodBias       = mipLevels - 1.0f;

            fixed(uint *p = _padding)
            for (int i = 0; i < 4; i++)
            {
                p[i] = 0;
            }
        }
Esempio n. 8
0
 public SCN0KeyframeStruct(float tan, float index, float value)
 {
     _index = index; _value = value; _tangent = tan;
 }
Esempio n. 9
0
 public void Set(byte min, byte mag, float lodBias)
 {
     _min_filt = min;
     _mag_filt = mag;
     _lod_bias = lodBias;
 }
Esempio n. 10
0
 public I12Entry(float index, float value, float tangent)
 {
     _index   = index;
     _value   = value;
     _tangent = tangent;
 }
Esempio n. 11
0
 public I12Header(int entries, float frameScale)
 {
     _numFrames  = (ushort)entries;
     _pad        = 0;
     _frameScale = frameScale;
 }
Esempio n. 12
0
 public L1Header(float step, float floor)
 {
     _step = step;
     _base = floor;
 }