Tabnine Logo
IntBufferData.getBuffer
Code IndexAdd Tabnine to your IDE (free)

How to use
getBuffer
method
in
com.ardor3d.scenegraph.IntBufferData

Best Java code snippets using com.ardor3d.scenegraph.IntBufferData.getBuffer (Showing top 6 results out of 315)

origin: com.ardor3d/ardor3d-core

@Override
public boolean hasData() {
  return data != null && data.getBuffer() != null;
}
origin: Renanse/Ardor3D

@Override
public IntBuffer asIntBuffer() {
  final IntBuffer source = getBuffer().duplicate();
  source.rewind();
  final IntBuffer buff = BufferUtils.createIntBufferOnHeap(source.limit());
  buff.put(source);
  buff.flip();
  return buff;
}
origin: com.ardor3d/ardor3d-core

@Override
public IntBuffer asIntBuffer() {
  final IntBuffer source = getBuffer().duplicate();
  source.rewind();
  final IntBuffer buff = BufferUtils.createIntBufferOnHeap(source.limit());
  buff.put(source);
  buff.flip();
  return buff;
}
origin: com.ardor3d/ardor3d-lwjgl

private static void updateShaderAttribute(final ShaderVariablePointerInt variable,
    final ShaderObjectsStateRecord record, final boolean useVBO) {
  enableVertexAttribute(variable, record);
  if (useVBO) {
    final RenderContext context = ContextManager.getCurrentContext();
    final int vboId = LwjglRenderer.setupVBO(variable.data, context);
    LwjglRendererUtil.setBoundVBO(context.getRendererRecord(), vboId);
    ARBVertexProgram.glVertexAttribPointerARB(variable.variableID, variable.size,
        variable.unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, variable.normalized, variable.stride, 0);
  } else {
    variable.data.getBuffer().rewind();
    ARBVertexProgram.glVertexAttribPointerARB(variable.variableID, variable.size, variable.unsigned,
        variable.normalized, variable.stride, variable.data.getBuffer());
  }
}
origin: com.ardor3d/ardor3d-jogl

private static void updateShaderAttribute(final ShaderVariablePointerInt variable,
    final ShaderObjectsStateRecord record, final boolean useVBO) {
  enableVertexAttribute(variable, record);
  if (useVBO) {
    final RenderContext context = ContextManager.getCurrentContext();
    final int vboId = JoglRenderer.setupVBO(variable.data, context);
    JoglRendererUtil.setBoundVBO(context.getRendererRecord(), vboId);
    GLContext
        .getCurrentGL()
        .getGL2ES2()
        .glVertexAttribPointer(variable.variableID, variable.size,
            variable.unsigned ? GL.GL_UNSIGNED_INT : GL2ES2.GL_INT, variable.normalized,
            variable.stride, 0);
  } else {
    variable.data.getBuffer().rewind();
    GLContext
        .getCurrentGL()
        .getGL2ES2()
        .glVertexAttribPointer(variable.variableID, variable.size,
            variable.unsigned ? GL.GL_UNSIGNED_INT : GL2ES2.GL_INT, variable.normalized,
            variable.stride, variable.data.getBuffer());
  }
}
origin: Renanse/Ardor3D

for (final PrimitiveGroup group : strips) {
  final IntBufferData data = new IntBufferData(group.getIndices().length);
  data.getBuffer().put(group.getIndices());
  data.rewind();
  newIndices.put(data);
com.ardor3d.scenegraphIntBufferDatagetBuffer

Popular methods of IntBufferData

  • <init>
    Creates a new IntBufferData.
  • put
  • rewind

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Path (java.nio.file)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now