UniformBuffer Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | UniformBuffer

Qt 5.6.2 Reference Documentation

# UniformBuffer Class

(Qt3DRender::Render::UniformBuffer)

- List of all members, including inherited members

## Public Functions

| UniformBuffer()
void | allocate(GraphicsContext *ctx, uint size, bool dynamic = true)
void | bind(GraphicsContext *ctx)
void | bindToUniformBlock(GraphicsContext *ctx, int bindingPoint)
GLuint | bufferId() const
void | create(GraphicsContext *ctx)
void | destroy(GraphicsContext *ctx)
bool | isBound() const
bool | isCreated() const
void | release(GraphicsContext *ctx)
void | update(GraphicsContext *ctx, const void *data, uint size, int offset = 0)

## Member Function Documentation

### UniformBuffer::UniformBuffer()

Default constructs an instance of UniformBuffer.

### void UniformBuffer::allocate(GraphicsContext *ctx, uint size, bool dynamic = true)

### void UniformBuffer::bind(GraphicsContext *ctx)

### void UniformBuffer::bindToUniformBlock(GraphicsContext *ctx, int bindingPoint)

### GLuint UniformBuffer::bufferId() const

### void UniformBuffer::create(GraphicsContext *ctx)

### void UniformBuffer::destroy(GraphicsContext *ctx)

### bool UniformBuffer::isBound() const

### bool UniformBuffer::isCreated() const

### void UniformBuffer::release(GraphicsContext *ctx)

### void UniformBuffer::update(GraphicsContext *ctx, const void *data, uint size, int offset = 0)