Fix color blending (component VAO), add config.hpp

This commit is contained in:
Corentin 2021-07-17 01:39:11 +09:00
commit b530f65f38
8 changed files with 65 additions and 17 deletions

8
include/uui/config.hpp Normal file
View file

@ -0,0 +1,8 @@
#pragma once
#include "graphic_context.hpp"
namespace Config
{
constexpr unsigned int FONT_TEXTURE_UNIT = GL_TEXTURE0;
}

View file

@ -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;