mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Default geo_texture2d displayed parameter to true when not used
This commit is contained in:
parent
f4bc2572d2
commit
15beb9436d
7 changed files with 42 additions and 7 deletions
|
|
@ -31,7 +31,8 @@ public:
|
|||
static std::size_t
|
||||
GetShaderKey(std::initializer_list<std::pair<GLenum, std::string>> shaders);
|
||||
|
||||
gl::OpenGLFunctions gl_;
|
||||
gl::OpenGLFunctions gl_;
|
||||
QOpenGLFunctions_3_0 gl30_;
|
||||
|
||||
bool glInitialized_ {false};
|
||||
|
||||
|
|
@ -56,6 +57,11 @@ gl::OpenGLFunctions& GlContext::gl()
|
|||
return p->gl_;
|
||||
}
|
||||
|
||||
QOpenGLFunctions_3_0& GlContext::gl30()
|
||||
{
|
||||
return p->gl30_;
|
||||
}
|
||||
|
||||
std::uint64_t GlContext::texture_buffer_count() const
|
||||
{
|
||||
return p->textureBufferCount_;
|
||||
|
|
@ -68,6 +74,9 @@ void GlContext::Impl::InitializeGL()
|
|||
return;
|
||||
}
|
||||
|
||||
gl_.initializeOpenGLFunctions();
|
||||
gl30_.initializeOpenGLFunctions();
|
||||
|
||||
gl_.glGenTextures(1, &textureAtlas_);
|
||||
|
||||
glInitialized_ = true;
|
||||
|
|
@ -122,6 +131,11 @@ GLuint GlContext::GetTextureAtlas()
|
|||
return p->textureAtlas_;
|
||||
}
|
||||
|
||||
void GlContext::Initialize()
|
||||
{
|
||||
p->InitializeGL();
|
||||
}
|
||||
|
||||
std::size_t GlContext::Impl::GetShaderKey(
|
||||
std::initializer_list<std::pair<GLenum, std::string>> shaders)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue