91
Loading an image is a simple call to Image.FromFile(filename). Which leaves us the texture coordinates. Would that be in Object3D?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Logger.log("Texture of polyID 1: "+TextureManager.getInstance().getNameByID(sphere.getPolygonManager().getPolygonTexture(1)));
private static System.UInt32 ReverseBytes(System.UInt32 value) {
value = (value | 255);//MAKE OPAQUE
return (value & 0x000000FFU) << 24 | (value & 0x0000FF00U) << 8 | (value & 0x00FF0000U) >> 8 | (value & 0xFF000000U) >> 24;
}
private static System.UInt32 ReverseBytes(System.UInt32 value) {
value += 4278190080;//MAKE OPAQUE; IS THIS RIGHT? (THAT'S 1111 1111 0000 0000 0000 0000 0000 0000)
return (value & 0x000000FFU) << 24 | (value & 0x0000FF00U) << 8 | (value & 0x00FF0000U) >> 8 | (value & 0xFF000000U) >> 24;
}
g=(((col>>8)&255)*(sgI>>10))>>16;