Interface ImageBuffer

All Superinterfaces:
GlslBuffer
All Known Implementing Classes:
ImageBufferImpl

public interface ImageBuffer extends GlslBuffer
A texture buffer storing an image. This buffer is used for the GL_TEXTURE_2D OpenGL target.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    allocate(int width, int height, int format, int type, int filter)
    Allocates the buffer using glTexImage2D OpenGL method
    void
    clear(long val)
    Clear the buffer with given value.

    Methods inherited from interface cz.fidentis.analyst.glsl.buffers.GlslBuffer

    bind, getBindingIndex, getBufferName, getGlName, getGlTarget, glContext
  • Method Details

    • allocate

      void allocate(int width, int height, int format, int type, int filter)
      Allocates the buffer using glTexImage2D OpenGL method
      Parameters:
      width - glTexImage2D() width parameter
      height - glTexImage2D() height parameter
      format - glTexImage2D() format parameter
      type - glTexImage2D() format parameter
      filter - Filtering mode
    • clear

      void clear(long val)
      Clear the buffer with given value.
      Parameters:
      val - Value