Package jgl.context.attrib
Class gl_texture
- java.lang.Object
-
- jgl.context.attrib.gl_texture
-
public class gl_texture extends Object
gl_texture is the texturing class of jGL 2.4.- Version:
- 0.5, 14 May 2003
- Author:
- Robin Bing-Yu Chen
-
-
Field Summary
Fields Modifier and Type Field Description gl_texture_obj
Current1D
For texture x-Dgl_texture_obj
Current2D
gl_texture_obj
Current3D
gl_texture_obj
CurrentObj
gl_texture_gen
CurrentQ
gl_texture_gen
CurrentR
gl_texture_gen
CurrentS
For texgen xgl_texture_gen
CurrentT
boolean
Enable1D
GL_TEXTURE_x: True if x-D texturing enabled (x is 1D, 2D, or 3D)boolean
Enable2D
boolean
Enable3D
float[]
EnvColor
GL_TEXTURE_ENV_COLOR: Texture environment colorint
EnvMode
GL_TEXTURE_ENV_MODE: Texture application function
-
Constructor Summary
Constructors Constructor Description gl_texture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind_texture(int target, gl_texture_obj obj)
boolean
check_tex()
float[]
get_tex_gen_coord(float[] obj, float[] eye, float[] nor)
gl_image
get_tex_image(int target, int level)
int
is_tex_enabled()
boolean
is_tex_enabled(int cap)
int
is_tex_gen_enabled()
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 Detail
-
Enable1D
public boolean Enable1D
GL_TEXTURE_x: True if x-D texturing enabled (x is 1D, 2D, or 3D)
-
Enable2D
public boolean Enable2D
-
Enable3D
public boolean Enable3D
-
Current1D
public gl_texture_obj Current1D
For texture x-D
-
Current2D
public gl_texture_obj Current2D
-
Current3D
public gl_texture_obj Current3D
-
CurrentObj
public gl_texture_obj CurrentObj
-
EnvMode
public int EnvMode
GL_TEXTURE_ENV_MODE: Texture application function
-
EnvColor
public float[] EnvColor
GL_TEXTURE_ENV_COLOR: Texture environment color
-
CurrentS
public gl_texture_gen CurrentS
For texgen x
-
CurrentT
public gl_texture_gen CurrentT
-
CurrentR
public gl_texture_gen CurrentR
-
CurrentQ
public gl_texture_gen CurrentQ
-
-
Method Detail
-
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
public void set_tex_image(int target, int level, int border, gl_image img)
-
get_tex_image
public gl_image get_tex_image(int target, int level)
-
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
public void bind_texture(int target, gl_texture_obj obj)
-
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)
-
-