Peter Waller | bbc004b | 2012-10-20 17:40:43 +0100 | [diff] [blame] | 1 | // Copyright 2012 The go-gl Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package gl |
| 6 | |
Peter Waller | 0a1eaa7 | 2012-10-20 21:44:53 +0100 | [diff] [blame] | 7 | // #include "gl.h" |
Peter Waller | bbc004b | 2012-10-20 17:40:43 +0100 | [diff] [blame] | 8 | import "C" |
| 9 | |
| 10 | // Object |
| 11 | |
| 12 | type Object C.GLuint |
| 13 | |
| 14 | func (object Object) IsBuffer() bool { return C.glIsBuffer(C.GLuint(object)) != 0 } |
| 15 | |
| 16 | func (object Object) IsProgram() bool { return C.glIsProgram(C.GLuint(object)) != 0 } |
| 17 | |
PolyFloyd | 25b7bfc | 2014-03-28 00:31:59 +0100 | [diff] [blame] | 18 | func (object Object) IsQuery() bool { return C.glIsQuery(C.GLuint(object)) != 0 } |
| 19 | |
Peter Waller | bbc004b | 2012-10-20 17:40:43 +0100 | [diff] [blame] | 20 | func (object Object) IsShader() bool { return C.glIsShader(C.GLuint(object)) != 0 } |
| 21 | |
| 22 | func (object Object) IsTexture() bool { return C.glIsTexture(C.GLuint(object)) != 0 } |
| 23 | |
| 24 | func (object Object) IsTransformFeedback() bool { return C.glIsTransformFeedback(C.GLuint(object)) != 0 } |
| 25 | |
| 26 | func (object Object) IsVertexArray() bool { return C.glIsVertexArray(C.GLuint(object)) != 0 } |