forked from organicmaps/organicmaps
[drape] compile fix
This commit is contained in:
parent
e4b46395bf
commit
bb40090b78
3 changed files with 12 additions and 11 deletions
|
@ -8,7 +8,7 @@ TARGET = DrapeHead
|
|||
TEMPLATE = app
|
||||
CONFIG += warn_on
|
||||
QT *= core gui widgets
|
||||
DEFINES += USE_TESTING_ENGINE
|
||||
#DEFINES += USE_TESTING_ENGINE
|
||||
|
||||
win32* {
|
||||
LIBS += -lopengl32 -lws2_32 -lshell32 -liphlpapi
|
||||
|
|
|
@ -69,21 +69,19 @@ void TestingEngine::Draw()
|
|||
context->present();
|
||||
}
|
||||
|
||||
void TestingEngine::OnSizeChanged(int x0, int y0, int w, int h)
|
||||
void TestingEngine::Resize(int w, int h)
|
||||
{
|
||||
m_viewport.SetViewport(x0, y0, w, h);
|
||||
m_viewport.SetViewport(0, 0, w, h);
|
||||
ModelViewInit();
|
||||
ProjectionInit();
|
||||
Draw();
|
||||
}
|
||||
|
||||
void TestingEngine::SetAngle(float radians)
|
||||
{
|
||||
ModelViewInit();
|
||||
ProjectionInit();
|
||||
void TestingEngine::DragStarted(m2::PointF const & p) {}
|
||||
void TestingEngine::Drag(m2::PointF const & p) {}
|
||||
void TestingEngine::DragEnded(m2::PointF const & p) {}
|
||||
void TestingEngine::Scale(m2::PointF const & p, double factor) {}
|
||||
|
||||
Draw();
|
||||
}
|
||||
|
||||
void TestingEngine::DrawImpl()
|
||||
{
|
||||
|
|
|
@ -21,8 +21,11 @@ public:
|
|||
~TestingEngine();
|
||||
|
||||
void Draw();
|
||||
void OnSizeChanged(int x0, int y0, int w, int h);
|
||||
void SetAngle(float radians);
|
||||
void Resize(int w, int h);
|
||||
void DragStarted(m2::PointF const & p);
|
||||
void Drag(m2::PointF const & p);
|
||||
void DragEnded(m2::PointF const & p);
|
||||
void Scale(m2::PointF const & p, double factor);
|
||||
|
||||
private:
|
||||
void DrawImpl();
|
||||
|
|
Loading…
Add table
Reference in a new issue