Пример #1
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;
 }
Пример #2
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;
        }
Пример #3
0
 public BVec4(float x, float y, float z, float w)
 {
     _x = x; _y = y; _z = z; _w = w;
 }
Пример #4
0
 public BVec3(float x, float y, float z)
 {
     _x = x; _y = y; _z = z;
 }
Пример #5
0
 public BVec2(float x, float y)
 {
     _x = x; _y = y;
 }