KiCad PCB EDA Suite
Loading...
Searching...
No Matches
render_3d_raytrace_gl.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015-2020 Mario Luzeiro <[email protected]>
5 * Copyright (C) 2024 Alex Shvartzkop <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#ifndef RENDER_3D_RAYTRACE_GL_H
23#define RENDER_3D_RAYTRACE_GL_H
24
26
27#include <kicad_gl/kiglad.h>
28
29class EDA_3D_CANVAS;
30class BOARD_ADAPTER;
31class REPORTER;
32
33
35{
36public:
37 explicit RENDER_3D_RAYTRACE_GL( EDA_3D_CANVAS* aCanvas, BOARD_ADAPTER& aAdapter,
38 CAMERA& aCamera );
39
41
42 void SetCurWindowSize( const wxSize& aSize ) override;
43 bool Redraw( bool aIsMoving, REPORTER* aStatusReporter, REPORTER* aWarningReporter ) override;
44
45protected:
46 void initPbo() override;
47 void deletePbo() override;
48
51 GLuint m_pboId;
53};
54
55
56#endif // RENDER_3D_RAYTRACE_GL_H
Helper class to handle information needed to display 3D board.
A class used to derive camera objects from.
Definition camera.h:99
Implement a canvas based on a wxGLCanvas.
RENDER_3D_RAYTRACE_BASE(BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
RENDER_3D_RAYTRACE_GL(EDA_3D_CANVAS *aCanvas, BOARD_ADAPTER &aAdapter, CAMERA &aCamera)
bool Redraw(bool aIsMoving, REPORTER *aStatusReporter, REPORTER *aWarningReporter) override
Redraw the view.
void SetCurWindowSize(const wxSize &aSize) override
Before each render, the canvas will tell the render what is the size of its windows,...
A pure virtual class used to derive REPORTER objects from.
Definition reporter.h:71