You.i Engine
YiGLAbstractBufferObject.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_GL_ABSTRACT_BUFFER_OBJECT_H_
3 #define _YI_GL_ABSTRACT_BUFFER_OBJECT_H_
4 
6 #include "YiGraphics.h"
7 #include "framework/YiPredef.h"
8 
18 {
19 public:
20 
21  CYIGLAbstractBufferObject(GLuint handle);
22 
24 
39  virtual void SetTarget(GLenum target);
40 
41  /*
42  Returns an enum corresponding to the type of buffer (or texture) object that is referenced internally
43  */
44  virtual GLenum GetTarget();
45 
46  /*
47  Returns the buffer object GL handle
48  */
49  virtual GLuint GetHandle();
50 
51 
52 protected:
53  GLuint m_handle;
54  GLenum m_target;
55 };
56 
59 #endif // _YI_GL_ABSTRACT_BUFFER_OBJECT_H_
An abstract class for common OpenGL buffer functionality.
Definition: YiGLAbstractBufferObject.h:17
virtual void SetTarget(GLenum target)
GLenum m_target
Definition: YiGLAbstractBufferObject.h:54
virtual GLuint GetHandle()
GLuint m_handle
Definition: YiGLAbstractBufferObject.h:53
virtual GLenum GetTarget()
Definition: YiBufferObject.h:14
virtual ~CYIGLAbstractBufferObject()
CYIGLAbstractBufferObject(GLuint handle)