blob: 9d7fd4e28d0adf9263a4a38a2184ae7c8713dfd9 [file] [log] [blame]
Peter Wallerbbc004b2012-10-20 17:40:43 +01001// 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
5package gl
6
Peter Waller0a1eaa72012-10-20 21:44:53 +01007// #include "gl.h"
Peter Wallerbbc004b2012-10-20 17:40:43 +01008import "C"
9
10// Object
11
12type Object C.GLuint
13
14func (object Object) IsBuffer() bool { return C.glIsBuffer(C.GLuint(object)) != 0 }
15
16func (object Object) IsProgram() bool { return C.glIsProgram(C.GLuint(object)) != 0 }
17
PolyFloyd25b7bfc2014-03-28 00:31:59 +010018func (object Object) IsQuery() bool { return C.glIsQuery(C.GLuint(object)) != 0 }
19
Peter Wallerbbc004b2012-10-20 17:40:43 +010020func (object Object) IsShader() bool { return C.glIsShader(C.GLuint(object)) != 0 }
21
22func (object Object) IsTexture() bool { return C.glIsTexture(C.GLuint(object)) != 0 }
23
24func (object Object) IsTransformFeedback() bool { return C.glIsTransformFeedback(C.GLuint(object)) != 0 }
25
26func (object Object) IsVertexArray() bool { return C.glIsVertexArray(C.GLuint(object)) != 0 }