23#ifndef VCL_BGFX_UNIFORM_H
24#define VCL_BGFX_UNIFORM_H
26#include <vclib/base.h>
45 std::string mUniformName;
46 bgfx::UniformType::Enum mUniformType = bgfx::UniformType::Count;
61 mUniformName(
name), mUniformType(
type)
63 mUniformHandle = bgfx::createUniform(
name.c_str(),
type);
80 if (bgfx::isValid(mUniformHandle))
81 bgfx::destroy(mUniformHandle);
105 swap(mUniformHandle,
oth.mUniformHandle);
106 swap(mUniformName,
oth.mUniformName);
107 swap(mUniformType,
oth.mUniformType);
121 bgfx::UniformHandle
handle()
const {
return mUniformHandle; }
127 const std::string&
name()
const {
return mUniformName; }
133 bgfx::UniformType::Enum
type()
const {
return mUniformType; }
144 void bind(
const void* data)
const
146 bgfx::setUniform(mUniformHandle, data);
A class representing a box in N-dimensional space.
Definition box.h:46