Package icyllis.arc3d.core
Class SamplingOptions
java.lang.Object
icyllis.arc3d.core.SamplingOptions
Immutable struct describing image sampling options (resampling or interpolation method).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceTheFilterModespecifies the sampling method on transformed texture images.static @interfaceTheMipmapModespecifies the interpolation method for MIP image levels when down-sampling texture images. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SamplingOptionsUse bicubic sampling, the Catmull-Rom spline with B=0, C=0.5.static final SamplingOptionsUse bicubic sampling, the cubic B-spline with B=1, C=0.static final intInterpolate between 2x2 sample points (bilinear interpolation).static final intSingle sample point (nearest neighbor).static final SamplingOptionsUse linear interpolation for minification, magnification; no mipmapping.final floatfinal floatstatic final SamplingOptionsstatic final SamplingOptionsstatic final SamplingOptionsstatic final SamplingOptionsstatic final SamplingOptionsUse linear interpolation for minification, magnification, and mip-level sampling.static final SamplingOptionsUse nearest-neighbour sampling for minification, magnification, and mip-level sampling.static final SamplingOptionsstatic final SamplingOptionsstatic final SamplingOptionsstatic final SamplingOptionsstatic final intInterpolate between the two nearest levels.static final intSample from the nearest level.static final intIgnore mipmap levels, sample from the "base".static final SamplingOptionsUse bicubic sampling, the Mitchell–Netravali filter with B=1/3, C=1/3.final bytefinal intfinal bytefinal bytefinal booleanstatic final SamplingOptionsUse bicubic sampling, the Photoshop bicubic filter with B=0, C=0.75.static final SamplingOptionsUse nearest-neighbour sampling for minification, magnification; no mipmapping. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanstatic SamplingOptionsmake(int filter) static SamplingOptionsmake(int filter, int mipmap) static SamplingOptionsmake(int minFilter, int magFilter, int mipmapMode) static SamplingOptionsmakeAnisotropy(int maxAnisotropy) static SamplingOptionsmakeCubic(float B, float C)
-
Field Details
-
FILTER_MODE_NEAREST
public static final int FILTER_MODE_NEARESTSingle sample point (nearest neighbor).- See Also:
-
FILTER_MODE_LINEAR
public static final int FILTER_MODE_LINEARInterpolate between 2x2 sample points (bilinear interpolation).- See Also:
-
MIPMAP_MODE_NONE
public static final int MIPMAP_MODE_NONEIgnore mipmap levels, sample from the "base".- See Also:
-
MIPMAP_MODE_NEAREST
public static final int MIPMAP_MODE_NEARESTSample from the nearest level.- See Also:
-
MIPMAP_MODE_LINEAR
public static final int MIPMAP_MODE_LINEARInterpolate between the two nearest levels.- See Also:
-
POINT
Use nearest-neighbour sampling for minification, magnification; no mipmapping. Also known as point sampling. -
LINEAR
Use linear interpolation for minification, magnification; no mipmapping. Also known as triangle sampling and bilinear sampling. -
MIN_MAG_MIP_POINT
Use nearest-neighbour sampling for minification, magnification, and mip-level sampling. -
MIN_MAG_POINT_MIP_LINEAR
-
MIN_MAG_LINEAR_MIP_POINT
-
MIN_MAG_MIP_LINEAR
Use linear interpolation for minification, magnification, and mip-level sampling. -
MIN_POINT_MAG_LINEAR
-
MIN_LINEAR_MAG_POINT
-
MIN_POINT_MAG_LINEAR_MIP_POINT
-
MIN_LINEAR_MAG_MIP_POINT
-
MIN_POINT_MAG_MIP_LINEAR
-
MIN_LINEAR_MAG_POINT_MIP_LINEAR
-
CUBIC_BSPLINE
Use bicubic sampling, the cubic B-spline with B=1, C=0. -
MITCHELL
Use bicubic sampling, the Mitchell–Netravali filter with B=1/3, C=1/3. -
PHOTOSHOP_BICUBIC
Use bicubic sampling, the Photoshop bicubic filter with B=0, C=0.75. -
CATMULLROM
Use bicubic sampling, the Catmull-Rom spline with B=0, C=0.5. -
mMinFilter
public final byte mMinFilter -
mMagFilter
public final byte mMagFilter -
mMipmapMode
public final byte mMipmapMode -
mUseCubic
public final boolean mUseCubic -
mCubicB
public final float mCubicB -
mCubicC
public final float mCubicC -
mMaxAnisotropy
public final int mMaxAnisotropy
-
-
Method Details