CSPspEmu.Core.Gpu.VertexReader.ReadTextureCoordinatesByte C# (CSharp) Method

ReadTextureCoordinatesByte() protected method

protected ReadTextureCoordinatesByte ( ) : void
return void
        protected void ReadTextureCoordinatesByte()
        {
            Align1();

            VertexInfo->Texture.X = (float)((byte*)Pointer)[0];
            VertexInfo->Texture.Y = (float)((byte*)Pointer)[1];
            VertexInfo->Texture.Z = (VertexType.NormalCount > 2) ? (float)((byte*)Pointer)[2] : 0.0f;

            if (!Transform2D)
            {
                VertexInfo->Texture.X *= 1.0f / 128.0f;
                VertexInfo->Texture.Y *= 1.0f / 128.0f;
                VertexInfo->Texture.Z *= 1.0f / 128.0f;
            }

            PointerOffset += sizeof(byte) * VertexType.NormalCount;
        }