KiCad PCB EDA Suite
Loading...
Searching...
No Matches
orphaned_gl_objects.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 The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef ORPHANED_GL_OBJECTS_H
21
#define ORPHANED_GL_OBJECTS_H
22
34
class
ORPHANED_GL_OBJECTS
35
{
36
public
:
37
ORPHANED_GL_OBJECTS
() :
38
m_wasOrphaned
(
s_orphaned
)
39
{
40
s_orphaned
=
true
;
41
}
42
43
~ORPHANED_GL_OBJECTS
()
44
{
45
s_orphaned
=
m_wasOrphaned
;
46
}
47
51
static
bool
Active
()
52
{
53
return
s_orphaned
;
54
}
55
56
private
:
57
bool
m_wasOrphaned
;
58
static
inline
bool
s_orphaned
=
false
;
59
};
60
61
#endif
// ORPHANED_GL_OBJECTS_H
ORPHANED_GL_OBJECTS::m_wasOrphaned
bool m_wasOrphaned
Definition
orphaned_gl_objects.h:57
ORPHANED_GL_OBJECTS::~ORPHANED_GL_OBJECTS
~ORPHANED_GL_OBJECTS()
Definition
orphaned_gl_objects.h:43
ORPHANED_GL_OBJECTS::s_orphaned
static bool s_orphaned
Definition
orphaned_gl_objects.h:58
ORPHANED_GL_OBJECTS::Active
static bool Active()
Definition
orphaned_gl_objects.h:51
ORPHANED_GL_OBJECTS::ORPHANED_GL_OBJECTS
ORPHANED_GL_OBJECTS()
Definition
orphaned_gl_objects.h:37
src
3d-viewer
3d_rendering
orphaned_gl_objects.h
Generated on Sun Sep 20 2026 00:06:38 for KiCad PCB EDA Suite by
1.13.2