Fix color blending (component VAO), add config.hpp
This commit is contained in:
parent
1a200205a5
commit
b530f65f38
8 changed files with 65 additions and 17 deletions
8
include/uui/config.hpp
Normal file
8
include/uui/config.hpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "graphic_context.hpp"
|
||||
|
||||
namespace Config
|
||||
{
|
||||
constexpr unsigned int FONT_TEXTURE_UNIT = GL_TEXTURE0;
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ public:
|
|||
GlComponent(GlComponent&&) = delete;
|
||||
~GlComponent();
|
||||
|
||||
void set_background_color(float r, float g, float b, float a = 0.0f);
|
||||
void set_background_color(float r, float g, float b, float a = 1.0f);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<GlWindow> window;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue