forked from MRPT/mrpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyGLCanvas.cpp
38 lines (32 loc) · 1.36 KB
/
MyGLCanvas.cpp
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
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
| See: https://www.mrpt.org/Authors - All rights reserved. |
| Released under BSD License. See: https://www.mrpt.org/License |
+------------------------------------------------------------------------+ */
#include "MyGLCanvas.h"
using namespace std;
#if RAWLOGVIEWER_HAS_3D
CMyGLCanvas::CMyGLCanvas(
wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style, const wxString& name)
: CWxGLCanvasBase(parent, id, pos, size, style, name)
{
setCameraPointing(0.0f, 0.0f, 0.0f);
setZoomDistance(20.0f);
setElevationDegrees(45.0f);
setAzimuthDegrees(135.0f);
setCameraProjective(true);
}
CMyGLCanvas::~CMyGLCanvas() = default;
void CMyGLCanvas::OnRenderError(const wxString& str) {}
void CMyGLCanvas::OnPreRender() {}
void CMyGLCanvas::OnPostRenderSwapBuffers(double At, wxPaintDC& dc) {}
void CMyGLCanvas::OnPostRender()
{
// Show credits on the screen??
// renderTextBitmap(20, 20, "RoadBot GUI, Copyright 2008 UMA" );
}
#endif