Package com.nevergarden.myna.gfx
Class GLProgram
- java.lang.Object
-
- com.nevergarden.myna.gfx.GLProgram
-
public class GLProgram extends java.lang.Object
OpenGL Shader Program.
-
-
Field Summary
Fields Modifier and Type Field Description int
nativeProgram
-
Constructor Summary
Constructors Constructor Description GLProgram(int program)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
bind()
Binds program for a render.static GLProgram
createProgramFromSource(java.lang.String vertex, java.lang.String fragment)
Creates a shader from vertex and fragment strings.void
dispose()
Disposes the program.
-
-
-
Method Detail
-
createProgramFromSource
public static GLProgram createProgramFromSource(java.lang.String vertex, java.lang.String fragment)
Creates a shader from vertex and fragment strings.
-
bind
public java.lang.Boolean bind()
Binds program for a render.- Returns:
- true if current program is bound successfully
-
dispose
public void dispose()
Disposes the program.
-
-