diff options
author | Peter Waller <p@pwaller.net> | 2014-04-30 13:50:16 +0100 |
---|---|---|
committer | Peter Waller <p@pwaller.net> | 2014-04-30 13:50:16 +0100 |
commit | d47a845d3800034f53bf89b80f70d655c8344858 (patch) | |
tree | be272fa5dec99318757ca2f24687961bcd865aac | |
parent | 32530b025d26c89f9d3ff5921f45aaf3ac4b1258 (diff) | |
parent | 75540552181fc09e0c6d95ff8a93b77a3218402d (diff) | |
download | gl-d47a845d3800034f53bf89b80f70d655c8344858.tar.gz |
Merge pull request #147 from tbruyelle/fix-code-design
Fix code design for the program type
-rw-r--r-- | program.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -60,6 +60,9 @@ func (program Program) Validate() { C.glValidateProgram(C.GLuint(program)) } func (program Program) Use() { C.glUseProgram(C.GLuint(program)) } +func (program Program) Unuse() { C.glUseProgram(C.GLuint(0)) } + +// Deprecated, please use program.Unuse() func ProgramUnuse() { C.glUseProgram(C.GLuint(0)) } func (program Program) GetInfoLog() string { |