* Deprecated FloatToFixed: You should use regular floats on Android instead of using fixed decimal format (most mobile GPUs support float anyway)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9490 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 37aa17302f
commit fbf29530f3
  1. 2
      engine/src/tools/jme3tools/converters/model/FloatToFixed.java

@ -46,6 +46,7 @@ import com.jme3.scene.mesh.IndexBuffer;
import com.jme3.util.BufferUtils; import com.jme3.util.BufferUtils;
import java.nio.*; import java.nio.*;
@Deprecated
public class FloatToFixed { public class FloatToFixed {
private static final float shortSize = Short.MAX_VALUE - Short.MIN_VALUE; private static final float shortSize = Short.MAX_VALUE - Short.MIN_VALUE;
@ -54,6 +55,7 @@ public class FloatToFixed {
private static final float byteSize = Byte.MAX_VALUE - Byte.MIN_VALUE; private static final float byteSize = Byte.MAX_VALUE - Byte.MIN_VALUE;
private static final float byteOff = (Byte.MAX_VALUE + Byte.MIN_VALUE) * 0.5f; private static final float byteOff = (Byte.MAX_VALUE + Byte.MIN_VALUE) * 0.5f;
@Deprecated
public static void convertToFixed(Geometry geom, Format posFmt, Format nmFmt, Format tcFmt){ public static void convertToFixed(Geometry geom, Format posFmt, Format nmFmt, Format tcFmt){
geom.updateModelBound(); geom.updateModelBound();
BoundingBox bbox = (BoundingBox) geom.getModelBound(); BoundingBox bbox = (BoundingBox) geom.getModelBound();

Loading…
Cancel
Save