mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Add GlContext base class for MapContext
This commit is contained in:
parent
a45e996872
commit
d84a618d3d
7 changed files with 115 additions and 57 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/gl/gl.hpp>
|
||||
#include <scwx/qt/gl/shader_program.hpp>
|
||||
#include <scwx/qt/gl/gl_context.hpp>
|
||||
#include <scwx/qt/map/map_settings.hpp>
|
||||
#include <scwx/qt/view/radar_product_view.hpp>
|
||||
|
||||
|
|
@ -12,7 +11,7 @@ namespace qt
|
|||
namespace map
|
||||
{
|
||||
|
||||
class MapContext
|
||||
class MapContext : public gl::GlContext
|
||||
{
|
||||
public:
|
||||
explicit MapContext(
|
||||
|
|
@ -25,7 +24,6 @@ public:
|
|||
MapContext(MapContext&&) noexcept;
|
||||
MapContext& operator=(MapContext&&) noexcept;
|
||||
|
||||
gl::OpenGLFunctions& gl();
|
||||
MapSettings& settings();
|
||||
std::shared_ptr<view::RadarProductView> radar_product_view() const;
|
||||
common::RadarProductGroup radar_product_group() const;
|
||||
|
|
@ -38,10 +36,6 @@ public:
|
|||
void set_radar_product(const std::string& radarProduct);
|
||||
void set_radar_product_code(int16_t radarProductCode);
|
||||
|
||||
std::shared_ptr<gl::ShaderProgram>
|
||||
GetShaderProgram(const std::string& vertexPath,
|
||||
const std::string& fragmentPath);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue