Package jgl.context.attrib
Class gl_viewport
java.lang.Object
jgl.context.attrib.gl_viewport
gl_viewport is the viewport class of jGL 2.4.
- Version:
- 0.2, 15 Mar 2001
- Author:
- Robin Bing-Yu Chen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
set_depth_range
(float n, float f) void
set_viewport
(int x, int y, int width, int height) float[]
Transformation
(float[] NDC) Viewport Transformation from normalized dievice coord. to win. coord.
-
Field Details
-
X
public int XGL_VIEWPORT: Viewport origin and extent -
Y
public int Y -
Width
public int Width -
Height
public int Height -
Size
public int Size -
Near
public float NearGL_DEPTH_RANGE: Depth range near and far -
Far
public float Far -
Sx
public float Sx -
Sy
public float Sy -
Sz
public float Sz -
Tx
public float Tx -
Ty
public float Ty -
Tz
public float Tz
-
-
Constructor Details
-
gl_viewport
-
gl_viewport
public gl_viewport()
-
-
Method Details
-
set_viewport
public void set_viewport(int x, int y, int width, int height) -
set_depth_range
public void set_depth_range(float n, float f) -
Transformation
public float[] Transformation(float[] NDC) Viewport Transformation from normalized dievice coord. to win. coord.
-