Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.typedarrays.client.NativeImpl |
typedArrays |
protected WebGLBuffer |
vertexColorBuffer |
protected WebGLBuffer |
vertexPositionBuffer |
protected double |
xAngle |
protected double |
yAngle |
protected double |
zAngle |
Constructor and Description |
---|
Shape() |
Modifier and Type | Method and Description |
---|---|
void |
finalizeBuffers(WebGLRenderingContext gl) |
WebGLBuffer |
getVertexColorBuffer() |
WebGLBuffer |
getVertexPositionBuffer() |
abstract void |
initBuffers(WebGLRenderingContext gl) |
protected com.google.gwt.typedarrays.shared.Float32Array |
mvPopMatrix() |
protected com.google.gwt.typedarrays.shared.Float32Array |
mvPushMatrix(com.google.gwt.typedarrays.shared.Float32Array mvMatrix) |
void |
render(WebGLRenderingContext gl,
com.google.gwt.typedarrays.shared.Float32Array modelViewMatrix) |
void |
setAngles(double xAngle,
double yAngle,
double zAngle) |
void |
setVertexColorBuffer(WebGLBuffer vertexColorBuffer) |
void |
setVertexPositionBuffer(WebGLBuffer vertexPositionBuffer) |
protected com.google.gwt.typedarrays.client.NativeImpl typedArrays
protected WebGLBuffer vertexPositionBuffer
protected WebGLBuffer vertexColorBuffer
protected double xAngle
protected double yAngle
protected double zAngle
public abstract void initBuffers(WebGLRenderingContext gl)
public void finalizeBuffers(WebGLRenderingContext gl)
public void render(WebGLRenderingContext gl, com.google.gwt.typedarrays.shared.Float32Array modelViewMatrix)
public WebGLBuffer getVertexPositionBuffer()
public void setVertexPositionBuffer(WebGLBuffer vertexPositionBuffer)
vertexPositionBuffer
- the vertexPositionBuffer to setpublic WebGLBuffer getVertexColorBuffer()
public void setVertexColorBuffer(WebGLBuffer vertexColorBuffer)
vertexColorBuffer
- the vertexColorBuffer to setpublic void setAngles(double xAngle, double yAngle, double zAngle)
protected com.google.gwt.typedarrays.shared.Float32Array mvPushMatrix(com.google.gwt.typedarrays.shared.Float32Array mvMatrix)
protected com.google.gwt.typedarrays.shared.Float32Array mvPopMatrix()
Copyright © 2018 Xalys. All rights reserved.