public class WebGLRenderingContext extends Object
Constructor and Description |
---|
WebGLRenderingContext(HTMLCanvasElement element,
WebGLContextAttributes attributes) |
Modifier and Type | Method and Description |
---|---|
void |
attachShader(WebGLProgram program,
WebGLShader shader) |
void |
bindBuffer(int target,
WebGLBuffer buffer) |
void |
blendFunc(int sfactor,
int dfactor) |
void |
bufferData(int target,
com.google.gwt.typedarrays.shared.ArrayBuffer data,
int usage) |
void |
bufferData(int target,
com.google.gwt.typedarrays.shared.ArrayBufferView data,
int usage) |
void |
clear(int mask) |
void |
clearColor(float red,
float green,
float blue,
float alpha) |
void |
clearDepth(float depth) |
void |
clearStencil(int s) |
void |
compileShader(WebGLShader shader) |
WebGLBuffer |
createBuffer() |
WebGLProgram |
createProgram() |
WebGLShader |
createShader(int type) |
void |
cullFace(int mode) |
void |
deleteBuffer(WebGLBuffer buffer) |
void |
depthFunc(int func) |
void |
depthMask(boolean flag) |
void |
depthRange(float zNear,
float zFar) |
void |
detachShader(WebGLProgram program,
WebGLShader shader) |
void |
disable(int cap) |
void |
disableVertexAttribArray(int index) |
void |
drawArrays(int mode,
int first,
int count) |
void |
drawElements(int mode,
int count,
int type,
int offset) |
int |
drawingBufferHeight() |
int |
drawingBufferWidth() |
void |
enable(int cap) |
void |
enableVertexAttribArray(int index) |
void |
finish() |
void |
flush() |
void |
frontFace(int mode) |
int |
getAttribLocation(WebGLProgram program,
String name) |
WebGLProgram |
getShaderProgram() |
WebGLUniformLocation |
getUniformLocation(WebGLProgram program,
String name) |
void |
hint(int target,
int mode) |
void |
lineWidth(float width) |
void |
linkProgram(WebGLProgram program) |
void |
shaderSource(WebGLShader shader,
String source) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
com.google.gwt.typedarrays.shared.Float32Array value) |
void |
useProgram(WebGLProgram program) |
void |
validateProgram(WebGLProgram program) |
void |
vertexAttribPointer(int indx,
int size,
int type,
boolean normalized,
int stride,
int offset) |
void |
viewport(int x,
int y,
int width,
int height) |
public static final int DEPTH_BUFFER_BIT
public static final int STENCIL_BUFFER_BIT
public static final int COLOR_BUFFER_BIT
public static final int POINTS
public static final int LINES
public static final int LINE_LOOP
public static final int LINE_STRIP
public static final int TRIANGLES
public static final int TRIANGLE_STRIP
public static final int TRIANGLE_FAN
public static final int ZERO
public static final int ONE
public static final int SRC_COLOR
public static final int ONE_MINUS_SRC_COLOR
public static final int SRC_ALPHA
public static final int ONE_MINUS_SRC_ALPHA
public static final int DST_ALPHA
public static final int ONE_MINUS_DST_ALPHA
public static final int DST_COLOR
public static final int ONE_MINUS_DST_COLOR
public static final int SRC_ALPHA_SATURATE
public static final int FUNC_ADD
public static final int BLEND_EQUATION
public static final int BLEND_EQUATION_RGB
public static final int BLEND_EQUATION_ALPHA
public static final int FUNC_SUBTRACT
public static final int FUNC_REVERSE_SUBTRACT
public static final int BLEND_DST_RGB
public static final int BLEND_SRC_RGB
public static final int BLEND_DST_ALPHA
public static final int BLEND_SRC_ALPHA
public static final int CONSTANT_COLOR
public static final int ONE_MINUS_CONSTANT_COLOR
public static final int CONSTANT_ALPHA
public static final int ONE_MINUS_CONSTANT_ALPHA
public static final int BLEND_COLOR
public static final int ARRAY_BUFFER
public static final int ELEMENT_ARRAY_BUFFER
public static final int ARRAY_BUFFER_BINDING
public static final int ELEMENT_ARRAY_BUFFER_BINDING
public static final int STREAM_DRAW
public static final int STATIC_DRAW
public static final int DYNAMIC_DRAW
public static final int BUFFER_SIZE
public static final int BUFFER_USAGE
public static final int CURRENT_VERTEX_ATTRIB
public static final int FRONT
public static final int BACK
public static final int FRONT_AND_BACK
public static final int CULL_FACE
public static final int BLEND
public static final int DITHER
public static final int STENCIL_TEST
public static final int DEPTH_TEST
public static final int SCISSOR_TEST
public static final int POLYGON_OFFSET_FILL
public static final int SAMPLE_ALPHA_TO_COVERAGE
public static final int SAMPLE_COVERAGE
public static final int NO_ERROR
public static final int INVALID_ENUM
public static final int INVALID_VALUE
public static final int INVALID_OPERATION
public static final int OUT_OF_MEMORY
public static final int CW
public static final int CCW
public static final int LINE_WIDTH
public static final int ALIASED_POINT_SIZE_RANGE
public static final int ALIASED_LINE_WIDTH_RANGE
public static final int CULL_FACE_MODE
public static final int FRONT_FACE
public static final int DEPTH_RANGE
public static final int DEPTH_WRITEMASK
public static final int DEPTH_CLEAR_VALUE
public static final int DEPTH_FUNC
public static final int STENCIL_CLEAR_VALUE
public static final int STENCIL_FUNC
public static final int STENCIL_FAIL
public static final int STENCIL_PASS_DEPTH_FAIL
public static final int STENCIL_PASS_DEPTH_PASS
public static final int STENCIL_REF
public static final int STENCIL_VALUE_MASK
public static final int STENCIL_WRITEMASK
public static final int STENCIL_BACK_FUNC
public static final int STENCIL_BACK_FAIL
public static final int STENCIL_BACK_PASS_DEPTH_FAIL
public static final int STENCIL_BACK_PASS_DEPTH_PASS
public static final int STENCIL_BACK_REF
public static final int STENCIL_BACK_VALUE_MASK
public static final int STENCIL_BACK_WRITEMASK
public static final int VIEWPORT
public static final int SCISSOR_BOX
public static final int COLOR_CLEAR_VALUE
public static final int COLOR_WRITEMASK
public static final int UNPACK_ALIGNMENT
public static final int PACK_ALIGNMENT
public static final int MAX_TEXTURE_SIZE
public static final int MAX_VIEWPORT_DIMS
public static final int SUBPIXEL_BITS
public static final int RED_BITS
public static final int GREEN_BITS
public static final int BLUE_BITS
public static final int ALPHA_BITS
public static final int DEPTH_BITS
public static final int STENCIL_BITS
public static final int POLYGON_OFFSET_UNITS
public static final int POLYGON_OFFSET_FACTOR
public static final int TEXTURE_BINDING_2D
public static final int SAMPLE_BUFFERS
public static final int SAMPLES
public static final int SAMPLE_COVERAGE_VALUE
public static final int SAMPLE_COVERAGE_INVERT
public static final int COMPRESSED_TEXTURE_FORMATS
public static final int DONT_CARE
public static final int FASTEST
public static final int NICEST
public static final int GENERATE_MIPMAP_HINT
public static final int BYTE
public static final int UNSIGNED_BYTE
public static final int SHORT
public static final int UNSIGNED_SHORT
public static final int INT
public static final int UNSIGNED_INT
public static final int FLOAT
public static final int DEPTH_COMPONENT
public static final int ALPHA
public static final int RGB
public static final int RGBA
public static final int LUMINANCE
public static final int LUMINANCE_ALPHA
public static final int UNSIGNED_SHORT_4_4_4_4
public static final int UNSIGNED_SHORT_5_5_5_1
public static final int UNSIGNED_SHORT_5_6_5
public static final int FRAGMENT_SHADER
public static final int VERTEX_SHADER
public static final int MAX_VERTEX_ATTRIBS
public static final int MAX_VERTEX_UNIFORM_VECTORS
public static final int MAX_VARYING_VECTORS
public static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS
public static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS
public static final int MAX_TEXTURE_IMAGE_UNITS
public static final int MAX_FRAGMENT_UNIFORM_VECTORS
public static final int SHADER_TYPE
public static final int DELETE_STATUS
public static final int LINK_STATUS
public static final int VALIDATE_STATUS
public static final int ATTACHED_SHADERS
public static final int ACTIVE_UNIFORMS
public static final int ACTIVE_ATTRIBUTES
public static final int SHADING_LANGUAGE_VERSION
public static final int CURRENT_PROGRAM
public static final int NEVER
public static final int LESS
public static final int EQUAL
public static final int LEQUAL
public static final int GREATER
public static final int NOTEQUAL
public static final int GEQUAL
public static final int ALWAYS
public static final int KEEP
public static final int REPLACE
public static final int INCR
public static final int DECR
public static final int INVERT
public static final int INCR_WRAP
public static final int DECR_WRAP
public static final int VENDOR
public static final int RENDERER
public static final int VERSION
public static final int NEAREST
public static final int LINEAR
public static final int NEAREST_MIPMAP_NEAREST
public static final int LINEAR_MIPMAP_NEAREST
public static final int NEAREST_MIPMAP_LINEAR
public static final int LINEAR_MIPMAP_LINEAR
public static final int TEXTURE_MAG_FILTER
public static final int TEXTURE_MIN_FILTER
public static final int TEXTURE_WRAP_S
public static final int TEXTURE_WRAP_T
public static final int TEXTURE_2D
public static final int TEXTURE
public static final int TEXTURE_CUBE_MAP
public static final int TEXTURE_BINDING_CUBE_MAP
public static final int TEXTURE_CUBE_MAP_POSITIVE_X
public static final int TEXTURE_CUBE_MAP_NEGATIVE_X
public static final int TEXTURE_CUBE_MAP_POSITIVE_Y
public static final int TEXTURE_CUBE_MAP_NEGATIVE_Y
public static final int TEXTURE_CUBE_MAP_POSITIVE_Z
public static final int TEXTURE_CUBE_MAP_NEGATIVE_Z
public static final int MAX_CUBE_MAP_TEXTURE_SIZE
public static final int TEXTURE0
public static final int TEXTURE1
public static final int TEXTURE2
public static final int TEXTURE3
public static final int TEXTURE4
public static final int TEXTURE5
public static final int TEXTURE6
public static final int TEXTURE7
public static final int TEXTURE8
public static final int TEXTURE9
public static final int TEXTURE10
public static final int TEXTURE11
public static final int TEXTURE12
public static final int TEXTURE13
public static final int TEXTURE14
public static final int TEXTURE15
public static final int TEXTURE16
public static final int TEXTURE17
public static final int TEXTURE18
public static final int TEXTURE19
public static final int TEXTURE20
public static final int TEXTURE21
public static final int TEXTURE22
public static final int TEXTURE23
public static final int TEXTURE24
public static final int TEXTURE25
public static final int TEXTURE26
public static final int TEXTURE27
public static final int TEXTURE28
public static final int TEXTURE29
public static final int TEXTURE30
public static final int TEXTURE31
public static final int ACTIVE_TEXTURE
public static final int REPEAT
public static final int CLAMP_TO_EDGE
public static final int MIRRORED_REPEAT
public static final int FLOAT_VEC2
public static final int FLOAT_VEC3
public static final int FLOAT_VEC4
public static final int INT_VEC2
public static final int INT_VEC3
public static final int INT_VEC4
public static final int BOOL
public static final int BOOL_VEC2
public static final int BOOL_VEC3
public static final int BOOL_VEC4
public static final int FLOAT_MAT2
public static final int FLOAT_MAT3
public static final int FLOAT_MAT4
public static final int SAMPLER_2D
public static final int SAMPLER_CUBE
public static final int VERTEX_ATTRIB_ARRAY_ENABLED
public static final int VERTEX_ATTRIB_ARRAY_SIZE
public static final int VERTEX_ATTRIB_ARRAY_STRIDE
public static final int VERTEX_ATTRIB_ARRAY_TYPE
public static final int VERTEX_ATTRIB_ARRAY_NORMALIZED
public static final int VERTEX_ATTRIB_ARRAY_POINTER
public static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
public static final int COMPILE_STATUS
public static final int LOW_FLOAT
public static final int MEDIUM_FLOAT
public static final int HIGH_FLOAT
public static final int LOW_INT
public static final int MEDIUM_INT
public static final int HIGH_INT
public static final int FRAMEBUFFER
public static final int RENDERBUFFER
public static final int RGBA4
public static final int RGB5_A1
public static final int RGB565
public static final int DEPTH_COMPONENT16
public static final int STENCIL_INDEX
public static final int STENCIL_INDEX8
public static final int DEPTH_STENCIL
public static final int RENDERBUFFER_WIDTH
public static final int RENDERBUFFER_HEIGHT
public static final int RENDERBUFFER_INTERNAL_FORMAT
public static final int RENDERBUFFER_RED_SIZE
public static final int RENDERBUFFER_GREEN_SIZE
public static final int RENDERBUFFER_BLUE_SIZE
public static final int RENDERBUFFER_ALPHA_SIZE
public static final int RENDERBUFFER_DEPTH_SIZE
public static final int RENDERBUFFER_STENCIL_SIZE
public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
public static final int COLOR_ATTACHMENT0
public static final int DEPTH_ATTACHMENT
public static final int STENCIL_ATTACHMENT
public static final int DEPTH_STENCIL_ATTACHMENT
public static final int NONE
public static final int FRAMEBUFFER_COMPLETE
public static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT
public static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
public static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS
public static final int FRAMEBUFFER_UNSUPPORTED
public static final int FRAMEBUFFER_BINDING
public static final int RENDERBUFFER_BINDING
public static final int MAX_RENDERBUFFER_SIZE
public static final int INVALID_FRAMEBUFFER_OPERATION
public static final int UNPACK_FLIP_Y_WEBGL
public static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL
public static final int CONTEXT_LOST_WEBGL
public static final int UNPACK_COLORSPACE_CONVERSION_WEBGL
public static final int BROWSER_DEFAULT_WEBGL
public com.google.gwt.core.client.JavaScriptObject gl
public float viewportWidth
public float viewportHeight
public WebGLRenderingContext(HTMLCanvasElement element, WebGLContextAttributes attributes)
public WebGLProgram getShaderProgram()
public int drawingBufferWidth()
public int drawingBufferHeight()
public void attachShader(WebGLProgram program, WebGLShader shader)
public void bindBuffer(int target, WebGLBuffer buffer)
public void blendFunc(int sfactor, int dfactor)
public void bufferData(int target, com.google.gwt.typedarrays.shared.ArrayBufferView data, int usage)
public void bufferData(int target, com.google.gwt.typedarrays.shared.ArrayBuffer data, int usage)
public void clear(int mask)
public void clearColor(float red, float green, float blue, float alpha)
public void clearDepth(float depth)
public void clearStencil(int s)
public void compileShader(WebGLShader shader)
public WebGLBuffer createBuffer()
public WebGLProgram createProgram()
public WebGLShader createShader(int type)
public void cullFace(int mode)
public void deleteBuffer(WebGLBuffer buffer)
public void depthFunc(int func)
public void depthMask(boolean flag)
public void depthRange(float zNear, float zFar)
public void detachShader(WebGLProgram program, WebGLShader shader)
public void disable(int cap)
public void disableVertexAttribArray(int index)
public void drawArrays(int mode, int first, int count)
public void drawElements(int mode, int count, int type, int offset)
public void enable(int cap)
public void enableVertexAttribArray(int index)
public void finish()
public void flush()
public void frontFace(int mode)
public int getAttribLocation(WebGLProgram program, String name)
public WebGLUniformLocation getUniformLocation(WebGLProgram program, String name)
public void hint(int target, int mode)
public void lineWidth(float width)
public void linkProgram(WebGLProgram program)
public void shaderSource(WebGLShader shader, String source)
public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, com.google.gwt.typedarrays.shared.Float32Array value)
public void useProgram(WebGLProgram program)
public void validateProgram(WebGLProgram program)
public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, int offset)
public void viewport(int x, int y, int width, int height)
Copyright © 2018 Xalys. All rights reserved.