|
|
@ -281,12 +281,6 @@ public class TextureUtil { |
|
|
|
public static IosGLImageFormat getImageFormat(Format fmt) throws UnsupportedOperationException { |
|
|
|
public static IosGLImageFormat getImageFormat(Format fmt) throws UnsupportedOperationException { |
|
|
|
IosGLImageFormat imageFormat = new IosGLImageFormat(); |
|
|
|
IosGLImageFormat imageFormat = new IosGLImageFormat(); |
|
|
|
switch (fmt) { |
|
|
|
switch (fmt) { |
|
|
|
case RGBA16: |
|
|
|
|
|
|
|
case RGB16: |
|
|
|
|
|
|
|
case RGB10: |
|
|
|
|
|
|
|
case Luminance16: |
|
|
|
|
|
|
|
case Luminance16Alpha16: |
|
|
|
|
|
|
|
case Alpha16: |
|
|
|
|
|
|
|
case Depth32: |
|
|
|
case Depth32: |
|
|
|
case Depth32F: |
|
|
|
case Depth32F: |
|
|
|
throw new UnsupportedOperationException("The image format '" |
|
|
|
throw new UnsupportedOperationException("The image format '" |
|
|
@ -325,11 +319,6 @@ public class TextureUtil { |
|
|
|
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_6_5; |
|
|
|
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_6_5; |
|
|
|
imageFormat.renderBufferStorageFormat = JmeIosGLES.GL_RGB565; |
|
|
|
imageFormat.renderBufferStorageFormat = JmeIosGLES.GL_RGB565; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ARGB4444: |
|
|
|
|
|
|
|
imageFormat.format = JmeIosGLES.GL_RGBA4; |
|
|
|
|
|
|
|
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_4_4_4_4; |
|
|
|
|
|
|
|
imageFormat.renderBufferStorageFormat = JmeIosGLES.GL_RGBA4; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case RGB5A1: |
|
|
|
case RGB5A1: |
|
|
|
imageFormat.format = JmeIosGLES.GL_RGBA; |
|
|
|
imageFormat.format = JmeIosGLES.GL_RGBA; |
|
|
|
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_5_5_1; |
|
|
|
imageFormat.dataType = JmeIosGLES.GL_UNSIGNED_SHORT_5_5_5_1; |
|
|
|