Package eu.webtoolkit.jwt
Class WServerGLWidget
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WServerGLWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activeTexture
(WGLWidget.GLenum texture) void
attachShader
(WGLWidget.Program program, WGLWidget.Shader shader) void
bindAttribLocation
(WGLWidget.Program program, int index, String name) void
bindBuffer
(WGLWidget.GLenum target, WGLWidget.Buffer buffer) void
bindFramebuffer
(WGLWidget.GLenum target, WGLWidget.Framebuffer buffer) void
bindRenderbuffer
(WGLWidget.GLenum target, WGLWidget.Renderbuffer buffer) void
bindTexture
(WGLWidget.GLenum target, WGLWidget.Texture texture) void
blendColor
(double red, double green, double blue, double alpha) void
void
blendEquationSeparate
(WGLWidget.GLenum modeRGB, WGLWidget.GLenum modeAlpha) void
blendFunc
(WGLWidget.GLenum sfactor, WGLWidget.GLenum dfactor) void
blendFuncSeparate
(WGLWidget.GLenum srcRGB, WGLWidget.GLenum dstRGB, WGLWidget.GLenum srcAlpha, WGLWidget.GLenum dstAlpha) void
bufferData
(WGLWidget.GLenum target, int size, WGLWidget.GLenum usage) void
bufferData
(WGLWidget.GLenum target, WGLWidget.ArrayBuffer res, int arrayBufferOffset, int arrayBufferSize, WGLWidget.GLenum usage) void
bufferData
(WGLWidget.GLenum target, WGLWidget.ArrayBuffer res, WGLWidget.GLenum usage) void
bufferDatafv
(WGLWidget.GLenum target, ByteBuffer v, WGLWidget.GLenum usage, boolean binary) void
bufferDatafv
(WGLWidget.GLenum target, FloatBuffer v, WGLWidget.GLenum usage) void
bufferDataiv
(WGLWidget.GLenum target, IntBuffer buffer, WGLWidget.GLenum usage, WGLWidget.GLenum type) void
bufferSubData
(WGLWidget.GLenum target, int offset, WGLWidget.ArrayBuffer res) void
bufferSubData
(WGLWidget.GLenum target, int offset, WGLWidget.ArrayBuffer res, int arrayBufferOffset, int size) void
bufferSubDatafv
(WGLWidget.GLenum target, int offset, ByteBuffer buffer, boolean binary) void
bufferSubDatafv
(WGLWidget.GLenum target, int offset, FloatBuffer buffer) void
bufferSubDataiv
(WGLWidget.GLenum target, int offset, IntBuffer buffer, WGLWidget.GLenum type) final void
clear
(WGLWidget.GLenum mas, WGLWidget.GLenum... mask) void
clear
(EnumSet<WGLWidget.GLenum> mask) void
void
clearColor
(double r, double g, double b, double a) void
clearDepth
(double depth) void
clearStencil
(int s) void
colorMask
(boolean red, boolean green, boolean blue, boolean alpha) void
compileShader
(WGLWidget.Shader shader) void
copyTexImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalFormat, int x, int y, int width, int height, int border) void
copyTexSubImage2D
(WGLWidget.GLenum target, int level, int xoffset, int yoffset, int x, int y, int width, int height) createPaintDevice
(WLength width, WLength height) createShader
(WGLWidget.GLenum shader) void
cullFace
(WGLWidget.GLenum mode) void
debugger()
void
deleteBuffer
(WGLWidget.Buffer buffer) void
void
deleteProgram
(WGLWidget.Program program) void
void
deleteShader
(WGLWidget.Shader shader) void
deleteTexture
(WGLWidget.Texture texture) void
depthFunc
(WGLWidget.GLenum func) void
depthMask
(boolean flag) void
depthRange
(double zNear, double zFar) void
detachShader
(WGLWidget.Program program, WGLWidget.Shader shader) void
disable
(WGLWidget.GLenum cap) void
void
display()
void
drawArrays
(WGLWidget.GLenum mode, int first, int count) void
drawElements
(WGLWidget.GLenum mode, int count, WGLWidget.GLenum type, int offset) void
enable
(WGLWidget.GLenum cap) void
enableClientErrorChecks
(boolean enable) void
void
finish()
void
flush()
void
framebufferRenderbuffer
(WGLWidget.GLenum target, WGLWidget.GLenum attachment, WGLWidget.GLenum renderbuffertarget, WGLWidget.Renderbuffer renderbuffer) void
framebufferTexture2D
(WGLWidget.GLenum target, WGLWidget.GLenum attachment, WGLWidget.GLenum textarget, WGLWidget.Texture texture, int level) void
frontFace
(WGLWidget.GLenum mode) void
generateMipmap
(WGLWidget.GLenum target) eu.webtoolkit.jwt.JsArrayType
getAttribLocation
(WGLWidget.Program program, String attrib) getUniformLocation
(WGLWidget.Program program, String location) void
hint
(WGLWidget.GLenum target, WGLWidget.GLenum mode) void
init()
void
void
void
void
layoutSizeChanged
(int width, int height) void
lineWidth
(double width) void
linkProgram
(WGLWidget.Program program) void
pixelStorei
(WGLWidget.GLenum pname, int param) void
polygonOffset
(double factor, double units) final void
render
(String jsRef, RenderFlag flag, RenderFlag... flags) void
render
(String jsRef, EnumSet<RenderFlag> flags) void
renderbufferStorage
(WGLWidget.GLenum target, WGLWidget.GLenum internalformat, int width, int height) final void
repaintGL
(GLClientSideRenderer whic, GLClientSideRenderer... which) void
repaintGL
(EnumSet<GLClientSideRenderer> which) void
reshape
(int x, int y, int width, int height) void
restoreContext
(String jsRef) void
sampleCoverage
(double value, boolean invert) void
scissor
(int x, int y, int width, int height) void
setClientSideLookAtHandler
(WGLWidget.JavaScriptMatrix4x4 m, double centerX, double centerY, double centerZ, double uX, double uY, double uZ, double pitchRate, double yawRate) void
setClientSideMouseHandler
(String handlerCode) void
setClientSideWalkHandler
(WGLWidget.JavaScriptMatrix4x4 m, double frontStep, double rotStep) void
setJavaScriptMatrix4
(WGLWidget.JavaScriptMatrix4x4 jsm, javax.vecmath.Matrix4f m) void
void
shaderSource
(WGLWidget.Shader shader, String src) void
stencilFunc
(WGLWidget.GLenum func, int ref, int mask) void
stencilFuncSeparate
(WGLWidget.GLenum face, WGLWidget.GLenum func, int ref, int mask) void
stencilMask
(int mask) void
stencilMaskSeparate
(WGLWidget.GLenum face, int mask) void
stencilOp
(WGLWidget.GLenum fail, WGLWidget.GLenum zfail, WGLWidget.GLenum zpass) void
stencilOpSeparate
(WGLWidget.GLenum face, WGLWidget.GLenum fail, WGLWidget.GLenum zfail, WGLWidget.GLenum zpass) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, int width, int height, int border, WGLWidget.GLenum format) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WGLWidget.Texture texture) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WImage image) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WPaintDevice paintdevice) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WVideo video) void
texImage2D
(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, String image) void
texParameteri
(WGLWidget.GLenum target, WGLWidget.GLenum pname, WGLWidget.GLenum param) void
uniform1f
(WGLWidget.UniformLocation location, double x) void
uniform1fv
(WGLWidget.UniformLocation location, float[] value) void
uniform1fv
(WGLWidget.UniformLocation location, WGLWidget.JavaScriptVector value) void
uniform1i
(WGLWidget.UniformLocation location, int x) void
uniform1iv
(WGLWidget.UniformLocation location, int[] value) void
uniform2f
(WGLWidget.UniformLocation location, double x, double y) void
uniform2fv
(WGLWidget.UniformLocation location, float[] value) void
uniform2fv
(WGLWidget.UniformLocation location, WGLWidget.JavaScriptVector value) void
uniform2i
(WGLWidget.UniformLocation location, int x, int y) void
uniform2iv
(WGLWidget.UniformLocation location, int[] value) void
uniform3f
(WGLWidget.UniformLocation location, double x, double y, double z) void
uniform3fv
(WGLWidget.UniformLocation location, float[] value) void
uniform3fv
(WGLWidget.UniformLocation location, WGLWidget.JavaScriptVector value) void
uniform3i
(WGLWidget.UniformLocation location, int x, int y, int z) void
uniform3iv
(WGLWidget.UniformLocation location, int[] value) void
uniform4f
(WGLWidget.UniformLocation location, double x, double y, double z, double w) void
uniform4fv
(WGLWidget.UniformLocation location, float[] value) void
uniform4fv
(WGLWidget.UniformLocation location, WGLWidget.JavaScriptVector value) void
uniform4i
(WGLWidget.UniformLocation location, int x, int y, int z, int w) void
uniform4iv
(WGLWidget.UniformLocation location, int[] value) void
uniformMatrix2
(WGLWidget.UniformLocation location, Matrix2f m) void
uniformMatrix2fv
(WGLWidget.UniformLocation location, boolean transpose, double[] value) void
uniformMatrix3
(WGLWidget.UniformLocation location, javax.vecmath.Matrix3f m) void
uniformMatrix3fv
(WGLWidget.UniformLocation location, boolean transpose, double[] value) void
uniformMatrix4
(WGLWidget.UniformLocation location, WGLWidget.JavaScriptMatrix4x4 jsm) void
uniformMatrix4
(WGLWidget.UniformLocation location, javax.vecmath.Matrix4f m) void
uniformMatrix4fv
(WGLWidget.UniformLocation location, boolean transpose, double[] value) void
update()
void
updateDom
(DomElement el, boolean all) void
useProgram
(WGLWidget.Program program) void
validateProgram
(WGLWidget.Program program) void
vertexAttrib1f
(WGLWidget.AttribLocation location, double x) void
vertexAttrib2f
(WGLWidget.AttribLocation location, double x, double y) void
vertexAttrib3f
(WGLWidget.AttribLocation location, double x, double y, double z) void
vertexAttrib4f
(WGLWidget.AttribLocation location, double x, double y, double z, double w) void
vertexAttribPointer
(WGLWidget.AttribLocation location, int size, WGLWidget.GLenum type, boolean normalized, int stride, int offset) void
viewport
(int x, int y, int width, int height) Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Field Details
-
glInterface_
-
updateGL_
protected boolean updateGL_ -
updateResizeGL_
protected boolean updateResizeGL_ -
updatePaintGL_
protected boolean updatePaintGL_ -
renderWidth_
protected int renderWidth_ -
renderHeight_
protected int renderHeight_ -
sizeChanged_
protected boolean sizeChanged_ -
debugging_
protected boolean debugging_ -
webglNotAvailable_
-
-
Constructor Details
-
WServerGLWidget
-
-
Method Details
-
debugger
public void debugger() -
activeTexture
-
attachShader
-
bindAttribLocation
-
bindBuffer
-
bindFramebuffer
-
bindRenderbuffer
-
bindTexture
-
blendColor
public void blendColor(double red, double green, double blue, double alpha) -
blendEquation
-
blendEquationSeparate
-
blendFunc
-
blendFuncSeparate
public void blendFuncSeparate(WGLWidget.GLenum srcRGB, WGLWidget.GLenum dstRGB, WGLWidget.GLenum srcAlpha, WGLWidget.GLenum dstAlpha) -
bufferData
-
bufferData
-
bufferData
public void bufferData(WGLWidget.GLenum target, WGLWidget.ArrayBuffer res, int arrayBufferOffset, int arrayBufferSize, WGLWidget.GLenum usage) -
bufferSubData
-
bufferSubData
public void bufferSubData(WGLWidget.GLenum target, int offset, WGLWidget.ArrayBuffer res, int arrayBufferOffset, int size) -
bufferDatafv
public void bufferDatafv(WGLWidget.GLenum target, ByteBuffer v, WGLWidget.GLenum usage, boolean binary) -
bufferDatafv
-
bufferSubDatafv
-
bufferSubDatafv
-
bufferDataiv
public void bufferDataiv(WGLWidget.GLenum target, IntBuffer buffer, WGLWidget.GLenum usage, WGLWidget.GLenum type) -
bufferSubDataiv
public void bufferSubDataiv(WGLWidget.GLenum target, int offset, IntBuffer buffer, WGLWidget.GLenum type) -
clear
-
clearColor
public void clearColor(double r, double g, double b, double a) -
clearStencil
public void clearStencil(int s) -
colorMask
public void colorMask(boolean red, boolean green, boolean blue, boolean alpha) -
clearDepth
public void clearDepth(double depth) -
compileShader
-
copyTexImage2D
public void copyTexImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalFormat, int x, int y, int width, int height, int border) -
copyTexSubImage2D
public void copyTexSubImage2D(WGLWidget.GLenum target, int level, int xoffset, int yoffset, int x, int y, int width, int height) -
getCreateBuffer
-
createAndLoadArrayBuffer
-
getCreateFramebuffer
-
getCreateProgram
-
getCreateRenderbuffer
-
createShader
-
getCreateTexture
-
createTextureAndLoad
-
createPaintDevice
-
cullFace
-
deleteBuffer
-
deleteFramebuffer
-
deleteProgram
-
deleteRenderbuffer
-
deleteShader
-
deleteTexture
-
depthFunc
-
depthMask
public void depthMask(boolean flag) -
depthRange
public void depthRange(double zNear, double zFar) -
detachShader
-
disable
-
disableVertexAttribArray
-
drawArrays
-
drawElements
-
enable
-
enableVertexAttribArray
-
finish
public void finish() -
flush
public void flush() -
framebufferRenderbuffer
public void framebufferRenderbuffer(WGLWidget.GLenum target, WGLWidget.GLenum attachment, WGLWidget.GLenum renderbuffertarget, WGLWidget.Renderbuffer renderbuffer) -
framebufferTexture2D
public void framebufferTexture2D(WGLWidget.GLenum target, WGLWidget.GLenum attachment, WGLWidget.GLenum textarget, WGLWidget.Texture texture, int level) -
frontFace
-
generateMipmap
-
getAttribLocation
-
getUniformLocation
-
hint
-
lineWidth
public void lineWidth(double width) -
linkProgram
-
pixelStorei
-
polygonOffset
public void polygonOffset(double factor, double units) -
renderbufferStorage
public void renderbufferStorage(WGLWidget.GLenum target, WGLWidget.GLenum internalformat, int width, int height) -
sampleCoverage
public void sampleCoverage(double value, boolean invert) -
scissor
public void scissor(int x, int y, int width, int height) -
shaderSource
-
stencilFunc
-
stencilFuncSeparate
-
stencilMask
public void stencilMask(int mask) -
stencilMaskSeparate
-
stencilOp
-
stencilOpSeparate
public void stencilOpSeparate(WGLWidget.GLenum face, WGLWidget.GLenum fail, WGLWidget.GLenum zfail, WGLWidget.GLenum zpass) -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, int width, int height, int border, WGLWidget.GLenum format) -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WImage image) -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WVideo video) -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WGLWidget.Texture texture) -
texParameteri
-
uniform1f
-
uniform1fv
-
uniform1fv
-
uniform1i
-
uniform1iv
-
uniform2f
-
uniform2fv
-
uniform2fv
-
uniform2i
-
uniform2iv
-
uniform3f
-
uniform3fv
-
uniform3fv
-
uniform3i
-
uniform3iv
-
uniform4f
-
uniform4fv
-
uniform4fv
-
uniform4i
-
uniform4iv
-
uniformMatrix2fv
-
uniformMatrix2
-
uniformMatrix3fv
-
uniformMatrix3
-
uniformMatrix4fv
-
uniformMatrix4
-
useProgram
-
validateProgram
-
vertexAttrib1f
-
vertexAttrib2f
-
vertexAttrib3f
-
vertexAttrib4f
public void vertexAttrib4f(WGLWidget.AttribLocation location, double x, double y, double z, double w) -
vertexAttribPointer
public void vertexAttribPointer(WGLWidget.AttribLocation location, int size, WGLWidget.GLenum type, boolean normalized, int stride, int offset) -
viewport
public void viewport(int x, int y, int width, int height) -
restoreContext
-
render
-
init
public void init() -
update
public void update() -
display
public void display() -
reshape
public void reshape(int x, int y, int width, int height) -
uniformMatrix4
-
initJavaScriptMatrix4
-
setJavaScriptMatrix4
-
initJavaScriptVector
-
setJavaScriptVector
-
setClientSideMouseHandler
-
setClientSideLookAtHandler
public void setClientSideLookAtHandler(WGLWidget.JavaScriptMatrix4x4 m, double centerX, double centerY, double centerZ, double uX, double uY, double uZ, double pitchRate, double yawRate) -
setClientSideWalkHandler
public void setClientSideWalkHandler(WGLWidget.JavaScriptMatrix4x4 m, double frontStep, double rotStep) -
clearBinaryResources
public void clearBinaryResources() -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, String image) -
texImage2D
public void texImage2D(WGLWidget.GLenum target, int level, WGLWidget.GLenum internalformat, WGLWidget.GLenum format, WGLWidget.GLenum type, WPaintDevice paintdevice) -
getArrayType
public eu.webtoolkit.jwt.JsArrayType getArrayType() -
injectJS
-
clear
-
layoutSizeChanged
public void layoutSizeChanged(int width, int height) -
repaintGL
-
repaintGL
-
enableClientErrorChecks
public void enableClientErrorChecks(boolean enable) -
render
-
updateDom
-