Debian Codegraph @

apps/holonomic-navigator-demo/MyGLCanvas.cpp

raw
1 /* +------------------------------------------------------------------------+
2 | Mobile Robot Programming Toolkit (MRPT) |
3 | https://www.mrpt.org/ |
4 | |
5 | Copyright (c) 2005-2026, Individual contributors, see AUTHORS file |
6 | See: https://www.mrpt.org/Authors - All rights reserved. |
7 | Released under BSD License. See: https://www.mrpt.org/License |
8 +------------------------------------------------------------------------+ */
9
10 #include "MyGLCanvas.h"
11
12 using namespace std;
13
14 #if APP_HAS_3D
15
16 CMyGLCanvas::CMyGLCanvas(
17 wxWindow* parent,
18 wxWindowID id,
19 const wxPoint& pos,
20 const wxSize& size,
21 long style,
22 const wxString& name) :
23 CWxGLCanvasBase(parent, id, pos, size, style, name)
24 {
25 setCameraPointing(0.0f, 0.0f, 0.0f);
26 setZoomDistance(20.0f);
27 setElevationDegrees(45.0f);
28 setAzimuthDegrees(135.0f);
29 setCameraProjective(true);
30 }
31
32 CMyGLCanvas::~CMyGLCanvas() = default;
33 void CMyGLCanvas::OnRenderError(const wxString& str) {}
34 void CMyGLCanvas::OnPreRender() {}
35 void CMyGLCanvas::OnPostRenderSwapBuffers(double At, wxPaintDC& dc) {}
36 void CMyGLCanvas::OnPostRender()
37 {
38 // Show credits on the screen? renderTextBitmap(20, 20, "" );
39 }
40
41 #endif