Package jgl.context.attrib
Class gl_texture
java.lang.Object
jgl.context.attrib.gl_texture
gl_texture is the texturing class of jGL 2.4.
- Version:
- 0.5, 14 May 2003
- Author:
- Robin Bing-Yu Chen
-
Field Summary
Modifier and TypeFieldDescriptionFor texture x-DFor texgen xboolean
GL_TEXTURE_x: True if x-D texturing enabled (x is 1D, 2D, or 3D)boolean
boolean
float[]
GL_TEXTURE_ENV_COLOR: Texture environment colorint
GL_TEXTURE_ENV_MODE: Texture application function -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind_texture
(int target, gl_texture_obj obj) boolean
float[]
get_tex_gen_coord
(float[] obj, float[] eye, float[] nor) get_tex_image
(int target, int level) int
boolean
is_tex_enabled
(int cap) int
boolean
is_tex_gen_enabled
(int cap) void
set_tex
(int target, int pname, float[] params) void
set_tex_gen_f
(int coord, int pname, float[] params) void
set_tex_gen_i
(int coord, int param) void
set_tex_image
(int target, int level, int border, gl_image img) boolean
tex_enable
(int state) boolean
tex_enable
(int cap, boolean state) void
tex_gen_enable
(int state) void
tex_gen_enable
(int cap, boolean state) int
tex_vertex
(float s, float t, float r) int
tex_vertex
(float s, float t, float r, float w, float dsdx, float dsdy, float dtdx, float dtdy, float drdx, float drdy)
-
Field Details
-
Enable1D
public boolean Enable1DGL_TEXTURE_x: True if x-D texturing enabled (x is 1D, 2D, or 3D) -
Enable2D
public boolean Enable2D -
Enable3D
public boolean Enable3D -
Current1D
For texture x-D -
Current2D
-
Current3D
-
CurrentObj
-
EnvMode
public int EnvModeGL_TEXTURE_ENV_MODE: Texture application function -
EnvColor
public float[] EnvColorGL_TEXTURE_ENV_COLOR: Texture environment color -
CurrentS
For texgen x -
CurrentT
-
CurrentR
-
CurrentQ
-
-
Constructor Details
-
gl_texture
public gl_texture()
-
-
Method Details
-
check_tex
public boolean check_tex() -
is_tex_enabled
public int is_tex_enabled() -
is_tex_enabled
public boolean is_tex_enabled(int cap) -
tex_enable
public boolean tex_enable(int state) -
tex_enable
public boolean tex_enable(int cap, boolean state) -
is_tex_gen_enabled
public int is_tex_gen_enabled() -
is_tex_gen_enabled
public boolean is_tex_gen_enabled(int cap) -
tex_gen_enable
public void tex_gen_enable(int state) -
tex_gen_enable
public void tex_gen_enable(int cap, boolean state) -
set_tex
public void set_tex(int target, int pname, float[] params) -
set_tex_image
-
get_tex_image
-
set_tex_gen_i
public void set_tex_gen_i(int coord, int param) -
set_tex_gen_f
public void set_tex_gen_f(int coord, int pname, float[] params) -
bind_texture
-
tex_vertex
public int tex_vertex(float s, float t, float r, float w, float dsdx, float dsdy, float dtdx, float dtdy, float drdx, float drdy) -
tex_vertex
public int tex_vertex(float s, float t, float r) -
get_tex_gen_coord
public float[] get_tex_gen_coord(float[] obj, float[] eye, float[] nor)
-