mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 23:40:04 +00:00
Create shader programs through map context in order to cache programs through re-initialization
This commit is contained in:
parent
32e8ca72a0
commit
a45e996872
10 changed files with 324 additions and 144 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/gl/shader_program.hpp>
|
||||
#include <scwx/qt/map/map_context.hpp>
|
||||
#include <scwx/qt/util/font.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
|
@ -24,13 +24,13 @@ enum class TextAlign
|
|||
|
||||
class TextShaderImpl;
|
||||
|
||||
class TextShader : public ShaderProgram
|
||||
class TextShader
|
||||
{
|
||||
public:
|
||||
explicit TextShader(OpenGLFunctions& gl);
|
||||
explicit TextShader(std::shared_ptr<map::MapContext> context);
|
||||
~TextShader();
|
||||
|
||||
TextShader(const TextShader&) = delete;
|
||||
TextShader(const TextShader&) = delete;
|
||||
TextShader& operator=(const TextShader&) = delete;
|
||||
|
||||
TextShader(TextShader&&) noexcept;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue