From 3abcaee63ff285514e8b51a60949c97a7dfa5304 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 24 Feb 2016 07:46:57 +0100 Subject: Cleanups and version bump --- src/osd/modules/render/bgfx/uniform.h | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/osd/modules/render/bgfx/uniform.h') diff --git a/src/osd/modules/render/bgfx/uniform.h b/src/osd/modules/render/bgfx/uniform.h index 6bb45f50d06..aa4c2cc097a 100644 --- a/src/osd/modules/render/bgfx/uniform.h +++ b/src/osd/modules/render/bgfx/uniform.h @@ -18,31 +18,31 @@ class bgfx_uniform { public: - bgfx_uniform(std::string name, bgfx::UniformType::Enum type); - virtual ~bgfx_uniform(); + bgfx_uniform(std::string name, bgfx::UniformType::Enum type); + virtual ~bgfx_uniform(); - virtual void upload(); + virtual void upload(); - // Getters - std::string name() { return m_name; } - bgfx::UniformType::Enum type() const { return m_type; } - bgfx::UniformHandle handle() const { return m_handle; } + // Getters + std::string name() { return m_name; } + bgfx::UniformType::Enum type() const { return m_type; } + bgfx::UniformHandle handle() const { return m_handle; } - // Setters - bgfx_uniform* set(float* value); - bgfx_uniform* set_int(int value); - bgfx_uniform* set_mat3(float* value); - bgfx_uniform* set_mat4(float* value); - bgfx_uniform* set(void* data, size_t size); + // Setters + bgfx_uniform* set(float* value); + bgfx_uniform* set_int(int value); + bgfx_uniform* set_mat3(float* value); + bgfx_uniform* set_mat4(float* value); + bgfx_uniform* set(void* data, size_t size); - static size_t get_size_for_type(bgfx::UniformType::Enum type); + static size_t get_size_for_type(bgfx::UniformType::Enum type); protected: - bgfx::UniformHandle m_handle; - std::string m_name; - bgfx::UniformType::Enum m_type; - uint8_t* m_data; - size_t m_data_size; + bgfx::UniformHandle m_handle; + std::string m_name; + bgfx::UniformType::Enum m_type; + uint8_t* m_data; + size_t m_data_size; }; -#endif // __DRAWBGFX_UNIFORM__ \ No newline at end of file +#endif // __DRAWBGFX_UNIFORM__ -- cgit v1.2.3-70-g09d2