blob: 0f05ccf074680ad255bb26185dcf334dc52f07b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "../graphics/opengl/texture.hpp"
#include "../graphics/opengl/renderbuffer.hpp"
#include "../graphics/resource_manager.hpp"
#include "../map/drawer.hpp"
#include "../map/qgl_render_context.hpp"
#include "../std/shared_ptr.hpp"
#include <QtOpenGL/QGLWidget>
namespace graphics
{
namespace gl
{
class Screen;
}
}
namespace tst
{
class GLDrawWidget : public QGLWidget
{
public:
shared_ptr<graphics::ResourceManager> m_resourceManager;
shared_ptr<graphics::gl::FrameBuffer> m_primaryFrameBuffer;
shared_ptr<qt::gl::RenderContext> m_primaryContext;
shared_ptr<graphics::Screen> m_primaryScreen;
virtual void initializeGL();
virtual void resizeGL(int w, int h);
virtual void paintGL();
public:
virtual void DoDraw(shared_ptr<graphics::Screen> const & screen) = 0;
};
}
|