You.i Engine
YiGNMAbstractBufferObject.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_GNM_ABSTRACT_BUFFER_OBJECT_H_
3 #define _YI_GNM_ABSTRACT_BUFFER_OBJECT_H_
4 
5 #include "renderer/YiGPUObject.h"
6 #include "renderer/YiGraphics.h"
7 #include "framework/YiPredef.h"
8 
18 {
19 public:
20  CYIGNMAbstractBufferObject(int32_t handle);
21 
23 
24  //Used by GnmTextureObject to set the texture unit to bind the texture/sampler to when used.
25  virtual void SetTarget(uint32_t target);
26  uint32_t GetTarget() const;
27 
28  /*
29  Returns the buffer object Gnm handle
30  */
31  virtual uint32_t GetHandle();
32 
33 protected:
34  uint32_t m_handle;
35  uint32_t m_target;
36 };
37 
40 #endif // _YI_GNM_ABSTRACT_BUFFER_OBJECT_H_
uint32_t m_target
Definition: YiGNMAbstractBufferObject.h:35
An abstract class for common Gnm buffer functionality.
Definition: YiGNMAbstractBufferObject.h:17
CYIGNMAbstractBufferObject(int32_t handle)
virtual void SetTarget(uint32_t target)
An interface for managing GPU-bound objects such as shaders and textures.
Definition: YiGPUObject.h:18
virtual ~CYIGNMAbstractBufferObject()
virtual uint32_t GetHandle()
uint32_t m_handle
Definition: YiGNMAbstractBufferObject.h:34
uint32_t GetTarget() const