Class OGL41Graphics.ProgramBinary

java.lang.Object
com.blackrook.gloop.opengl.gl4.OGL41Graphics.ProgramBinary
Enclosing class:
OGL41Graphics

public static final class OGL41Graphics.ProgramBinary extends Object
An OpenGL Shader Program binary representation.
Author:
Matthew Tropiano
  • Constructor Details

    • ProgramBinary

      public ProgramBinary(int format, byte[] bytes)
      Creates a new program binary from a format id and an array of bytes.
      Parameters:
      format - the program format.
      bytes - the program bytes.
  • Method Details

    • getProgramFormat

      public int getProgramFormat()
      Gets the program's format. May be implementation-dependent.
      Returns:
      the program format id.
    • getProgramBytes

      public byte[] getProgramBytes()
      Gets the program's binary representation, as a byte array.
      Returns:
      the binary representation.