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
Modifier and TypeClassDescriptionstatic @interface
TheFilterMode
specifies the sampling method on transformed texture images.static @interface
TheMipmapMode
specifies the interpolation method for MIP image levels when down-sampling texture images. -
Field Summary
Modifier and TypeFieldDescriptionstatic final SamplingOptions
Use bicubic sampling, the Catmull-Rom spline with B=0, C=0.5.static final SamplingOptions
Use bicubic sampling, the cubic B-spline with B=1, C=0.static final int
Interpolate between 2x2 sample points (bilinear interpolation).static final int
Single sample point (nearest neighbor).static final SamplingOptions
Use linear interpolation for minification, magnification; no mipmapping.final float
final float
static final SamplingOptions
static final SamplingOptions
static final SamplingOptions
static final SamplingOptions
static final SamplingOptions
Use linear interpolation for minification, magnification, and mip-level sampling.static final SamplingOptions
Use nearest-neighbour sampling for minification, magnification, and mip-level sampling.static final SamplingOptions
static final SamplingOptions
static final SamplingOptions
static final SamplingOptions
static final int
Interpolate between the two nearest levels.static final int
Sample from the nearest level.static final int
Ignore mipmap levels, sample from the "base".static final SamplingOptions
Use bicubic sampling, the Mitchell–Netravali filter with B=1/3, C=1/3.final byte
final int
final byte
final byte
final boolean
static final SamplingOptions
Use bicubic sampling, the Photoshop bicubic filter with B=0, C=0.75.static final SamplingOptions
Use nearest-neighbour sampling for minification, magnification; no mipmapping. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
static SamplingOptions
make
(int filter) static SamplingOptions
make
(int filter, int mipmap) static SamplingOptions
make
(int minFilter, int magFilter, int mipmapMode) static SamplingOptions
makeAnisotropy
(int maxAnisotropy) static SamplingOptions
makeCubic
(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