You.i Engine
YiUniformBufferObject.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_UNIFORM_BUFFER_OBJECT_H_
3 #define _YI_UNIFORM_BUFFER_OBJECT_H_
4 
5 #include "renderer/YiGPUObject.h"
7 
17 {
18 public:
19  enum class Type
20  {
21  Float,
22  FVec2,
23  FVec3,
24  FVec4,
25  Integer,
26  IVec2,
27  IVec3,
28  IVec4,
29  Mat2,
30  Mat3,
31  Mat4
32  };
33 
38  virtual void Set(const CYIUniformBufferId &uniformBufferId, Type type, uint32_t count, const char *pData) = 0;
39 
43  virtual void Remove(const CYIUniformBufferId &uniformBufferId) = 0;
44 };
45 
50 #endif // _YI_UNIFORM_BUFFER_OBJECT_H_
The CYIUniformBufferId class is an identification class for Uniform buffers that also reveals the nam...
Definition: YiUniformBufferId.h:30
virtual void Remove(const CYIUniformBufferId &uniformBufferId)=0
An interface for managing GPU-bound objects such as shaders and textures.
Definition: YiGPUObject.h:18
Type
Definition: YiUniformBufferObject.h:19
Common interface for shader uniform buffers.
Definition: YiUniformBufferObject.h:16
virtual void Set(const CYIUniformBufferId &uniformBufferId, Type type, uint32_t count, const char *pData)=0