Package processing.opengl
Class Texture.Parameters
java.lang.Object
processing.opengl.Texture.Parameters
- Enclosing class:
- Texture
This class stores the parameters for a texture: target, internal format,
minimization filter and magnification filter.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSets all the parameters to default values.Parameters
(int format) Parameters
(int format, int sampling) Parameters
(int format, int sampling, boolean mipmaps) Parameters
(int format, int sampling, boolean mipmaps, int wrap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
set
(int format) void
set
(int format, int sampling) void
set
(int format, int sampling, boolean mipmaps) void
set
(Texture.Parameters src)
-
Field Details
-
target
public int targetTexture target. -
format
public int formatTexture internal format. -
sampling
public int samplingTexture filtering (POINT, LINEAR, BILINEAR or TRILINEAR). -
mipmaps
public boolean mipmapsUse mipmaps or not. -
wrapU
public int wrapUWrapping mode along U. -
wrapV
public int wrapVWrapping mode along V.
-
-
Constructor Details
-
Parameters
public Parameters()Sets all the parameters to default values. -
Parameters
public Parameters(int format) -
Parameters
public Parameters(int format, int sampling) -
Parameters
public Parameters(int format, int sampling, boolean mipmaps) -
Parameters
public Parameters(int format, int sampling, boolean mipmaps, int wrap) -
Parameters
-
-
Method Details
-
set
public void set(int format) -
set
public void set(int format, int sampling) -
set
public void set(int format, int sampling, boolean mipmaps) -
set
-