Class LwjglGLExt

java.lang.Object
com.jme3.renderer.lwjgl.LwjglGLExt
All Implemented Interfaces:
GLExt

public final class LwjglGLExt extends Object implements GLExt
  • Constructor Details

    • LwjglGLExt

      public LwjglGLExt()
  • Method Details

    • glBufferData

      public void glBufferData(int target, IntBuffer data, int usage)
      Description copied from interface: GLExt

      Reference Page

      Creates and initializes a buffer object's data store.

      usage is a hint to the GL implementation as to how a buffer object's data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object performance. It does not, however, constrain the actual usage of the data store. usage can be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of that access. The frequency of access may be one of these:

      • STREAM - The data store contents will be modified once and used at most a few times.
      • STATIC - The data store contents will be modified once and used many times.
      • DYNAMIC - The data store contents will be modified repeatedly and used many times.

      The nature of access may be one of these:

      • DRAW - The data store contents are modified by the application, and used as the source for GL drawing and image specification commands.
      • READ - The data store contents are modified by reading data from the GL, and used to return that data when queried by the application.
      • COPY - The data store contents are modified by reading data from the GL, and used as the source for GL drawing and image specification commands.
      Specified by:
      glBufferData in interface GLExt
      Parameters:
      target - the target buffer object.
      data - a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied.
      usage - the expected usage pattern of the data store.
    • glBufferSubData

      public void glBufferSubData(int target, long offset, IntBuffer data)
      Description copied from interface: GLExt

      Reference Page

      Updates a subset of a buffer object's data store.

      Specified by:
      glBufferSubData in interface GLExt
      Parameters:
      target - the target buffer object.
      offset - the offset into the buffer object's data store where data replacement will begin, measured in bytes.
      data - a pointer to the new data that will be copied into the data store.
    • glDrawArraysInstancedARB

      public void glDrawArraysInstancedARB(int mode, int first, int count, int primcount)
      Description copied from interface: GLExt
      Draw multiple instances of a range of elements.
      Specified by:
      glDrawArraysInstancedARB in interface GLExt
      Parameters:
      mode - the kind of primitives to render.
      first - the starting index in the enabled arrays.
      count - the number of indices to be rendered.
      primcount - the number of instances of the specified range of indices to be rendered.
    • glDrawBuffers

      public void glDrawBuffers(IntBuffer bufs)
      Description copied from interface: GLExt

      Reference Page

      Specifies a list of color buffers to be drawn into.

      Specified by:
      glDrawBuffers in interface GLExt
      Parameters:
      bufs - an array of symbolic constants specifying the buffers into which fragment colors or data values will be written.
    • glDrawElementsInstancedARB

      public void glDrawElementsInstancedARB(int mode, int indicesCount, int type, long indicesBufferOffset, int primcount)
      Description copied from interface: GLExt
      Draws multiple instances of a set of elements.
      Specified by:
      glDrawElementsInstancedARB in interface GLExt
      Parameters:
      mode - the kind of primitives to render.
      indicesCount - the number of elements to be rendered.
      type - the type of the values in indices.
      indicesBufferOffset - a pointer to the location where the indices are stored.
      primcount - the number of instances of the specified range of indices to be rendered.
    • glGetMultisample

      public void glGetMultisample(int pname, int index, FloatBuffer val)
      Description copied from interface: GLExt
      Retrieves the location of a sample.
      Specified by:
      glGetMultisample in interface GLExt
      Parameters:
      pname - the sample parameter name.
      index - the index of the sample whose position to query.
      val - an array to receive the position of the sample.
    • glTexImage2DMultisample

      public void glTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedSampleLocations)
      Description copied from interface: GLExt
      Establishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.
      Specified by:
      glTexImage2DMultisample in interface GLExt
      Parameters:
      target - the target of the operation.
      samples - the number of samples in the multisample texture's image
      internalformat - the internal format to be used to store the multisample texture's image. internalformat must specify a color-renderable, depth-renderable, or stencil-renderable format.
      width - the width of the multisample texture's image, in texels
      height - the height of the multisample texture's image, in texels
      fixedSampleLocations - whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
    • glVertexAttribDivisorARB

      public void glVertexAttribDivisorARB(int index, int divisor)
      Description copied from interface: GLExt
      Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. If divisor is zero, the attribute at slot index advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the set(s) of vertices being rendered. An attribute is referred to as instanced if its divisor value is non-zero.
      Specified by:
      glVertexAttribDivisorARB in interface GLExt
      Parameters:
      index - the attribute index.
      divisor - the divisor value.
    • glFenceSync

      public Object glFenceSync(int condition, int flags)
      Description copied from interface: GLExt
      Creates a new sync object and inserts it into the GL command stream.
      Specified by:
      glFenceSync in interface GLExt
      Parameters:
      condition - the condition that must be met to set the sync object's state to signaled.
      flags - a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation and flags must be zero.
      Returns:
      a new instance
    • glClientWaitSync

      public int glClientWaitSync(Object sync, int flags, long timeout)
      Description copied from interface: GLExt
      Causes the client to block and wait for a sync object to become signaled. If sync is signaled when glClientWaitSync is called, glClientWaitSync returns immediately, otherwise it will block and wait for up to timeout nanoseconds for sync to become signaled.
      Specified by:
      glClientWaitSync in interface GLExt
      Parameters:
      sync - the sync object whose status to wait on.
      flags - a bitfield controlling the command flushing behavior.
      timeout - the timeout, specified in nanoseconds, for which the implementation should wait for sync to become signaled.
      Returns:
      the status is one of ALREADY_SIGNALED, TIMEOUT_EXPIRED, CONDITION_SATISFIED or WAIT_FAILED.
    • glDeleteSync

      public void glDeleteSync(Object sync)
      Description copied from interface: GLExt
      Deletes a sync object.
      Specified by:
      glDeleteSync in interface GLExt
      Parameters:
      sync - the sync object to be deleted.