本文整理汇总了Java中com.google.gwt.typedarrays.shared.Int32Array类的典型用法代码示例。如果您正苦于以下问题:Java Int32Array类的具体用法?Java Int32Array怎么用?Java Int32Array使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Int32Array类属于com.google.gwt.typedarrays.shared包,在下文中一共展示了Int32Array类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: glGetIntegerv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
@Override
public void glGetIntegerv(int pname, IntBuffer params) {
Int32Array result = (Int32Array) gl.getParameterv(pname);
int pos = params.position();
int len = result.length();
for (int i = 0; i < len; i++) {
params.put(pos + i, result.get(i));
}
}
示例2: glGetUniformiv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
@Override
public void glGetUniformiv(int program, int location, IntBuffer params) {
Int32Array v = gl.getUniformv(programs.get(program), uniforms.get(program).get(location));
for (int i = 0; i < v.length(); i++) {
params.put(params.position() + i, v.get(i));
}
}
示例3: glDrawBuffersWEBGL
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static void glDrawBuffersWEBGL(Int32Array buffers)
{
JsArrayInteger array = JsArrayInteger.createArray(buffers.length()).cast();
for (int i = 0; i < buffers.length(); i++)
array.push(buffers.get(i));
glDrawBuffersWEBGL(array);
}
示例4: glGetActiveUniforms
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static Int32Array glGetActiveUniforms(int program, List<Integer> uniformIndices, int pname)
{
Uint32Array indices = Uint32ArrayNative.create(uniformIndices.size());
for (int i = 0; i < uniformIndices.size(); i++)
indices.set(i, uniformIndices.get(i));
return glGetActiveUniforms(program, indices, pname);
}
示例5: copy
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public Int32Array copy (IntBuffer buffer) {
if (GWT.isProdMode()) {
return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining());
} else {
ensureCapacity(buffer);
for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) {
intBuffer.set(j, buffer.get(i));
}
return intBuffer.subarray(0, buffer.remaining());
}
}
示例6: copy
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public Int32Array copy (IntBuffer buffer) {
if (GWT.isProdMode()) {
return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining());
} else {
ensureCapacity(buffer);
for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) {
intBuffer.set(j, buffer.get(i));
}
return intBuffer.subarray(0, buffer.remaining());
}
}
示例7: copy
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public Int32Array copy (IntBuffer buffer) {
return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining());
}
示例8: glUniform1iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
@Override
public void glUniform1iv(int location, int count, IntBuffer v) {
gl.uniform1iv(getUniformLocation(location), (Int32Array) getTypedArray(v, GL_INT, count * 4));
}
示例9: uniform1iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform1iv(WebGLUniformLocation location, Int32Array v) {
this.uniform1iv(location, (JavaScriptObject)v);
}
示例10: uniform2iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform2iv(WebGLUniformLocation location, Int32Array v) {
this.uniform2iv(location, (JavaScriptObject)v);
}
示例11: uniform3iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform3iv(WebGLUniformLocation location, Int32Array v) {
this.uniform3iv(location, (JavaScriptObject)v);
}
示例12: uniform4iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform4iv(WebGLUniformLocation location, Int32Array v) {
this.uniform4iv(location, (JavaScriptObject)v);
}
示例13: createInt32Array
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static Int32Array createInt32Array(int[] array) {
return JsUtils.createInt32Array(toJsArray(array));
}
示例14: glUniform1iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static void glUniform1iv(int location, Int32Array x)
{
checkContextCompatibility();
nglUniform1iv(WebGLObjectMap.get().toUniform(location), x);
}
示例15: glUniform2iv
import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static void glUniform2iv(int location, Int32Array xy)
{
checkContextCompatibility();
nglUniform2iv(WebGLObjectMap.get().toUniform(location), xy);
}