当前位置: 首页>>代码示例>>Java>>正文


Java Int32Array类代码示例

本文整理汇总了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));
  }
}
 
开发者ID:playn,项目名称:playn,代码行数:10,代码来源:HtmlGL20.java

示例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));
  }
}
 
开发者ID:playn,项目名称:playn,代码行数:8,代码来源:HtmlGL20.java

示例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);
}
 
开发者ID:sriharshachilakapati,项目名称:WebGL4J,代码行数:10,代码来源:WEBGL_draw_buffers.java

示例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);
}
 
开发者ID:sriharshachilakapati,项目名称:WebGL4J,代码行数:10,代码来源:WebGL20.java

示例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());
	}
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:12,代码来源:GwtGL20.java

示例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());
    }
}
 
开发者ID:neuroradiology,项目名称:TinyVoxel,代码行数:12,代码来源:GwtGL20.java

示例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());
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:HtmlGL20.java

示例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));
}
 
开发者ID:playn,项目名称:playn,代码行数:5,代码来源:HtmlGL20.java

示例9: uniform1iv

import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform1iv(WebGLUniformLocation location, Int32Array v) {
  this.uniform1iv(location, (JavaScriptObject)v);
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:WebGLRenderingContext.java

示例10: uniform2iv

import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform2iv(WebGLUniformLocation location, Int32Array v) {
  this.uniform2iv(location, (JavaScriptObject)v);
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:WebGLRenderingContext.java

示例11: uniform3iv

import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform3iv(WebGLUniformLocation location, Int32Array v) {
  this.uniform3iv(location, (JavaScriptObject)v);
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:WebGLRenderingContext.java

示例12: uniform4iv

import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public final void uniform4iv(WebGLUniformLocation location, Int32Array v) {
  this.uniform4iv(location, (JavaScriptObject)v);
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:WebGLRenderingContext.java

示例13: createInt32Array

import com.google.gwt.typedarrays.shared.Int32Array; //导入依赖的package包/类
public static Int32Array createInt32Array(int[] array) {
  return JsUtils.createInt32Array(toJsArray(array));
}
 
开发者ID:playn,项目名称:playn,代码行数:4,代码来源:ArrayUtils.java

示例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);
}
 
开发者ID:sriharshachilakapati,项目名称:WebGL4J,代码行数:6,代码来源:WebGL10.java

示例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);
}
 
开发者ID:sriharshachilakapati,项目名称:WebGL4J,代码行数:6,代码来源:WebGL10.java


注:本文中的com.google.gwt.typedarrays.shared.Int32Array类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。