Class OGL41Graphics.ProgramBinary
java.lang.Object
com.blackrook.gloop.opengl.gl4.OGL41Graphics.ProgramBinary
- Enclosing class:
OGL41Graphics
An OpenGL Shader Program binary representation.
- Author:
- Matthew Tropiano
-
Constructor Summary
ConstructorsConstructorDescriptionProgramBinary(int format, byte[] bytes) Creates a new program binary from a format id and an array of bytes. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the program's binary representation, as a byte array.intGets the program's format.
-
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.
-