Rigs of Rods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
source
main
gui
panels
GUI_TextureToolWindow.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
6
For more information, see http://www.rigsofrods.org/
7
8
Rigs of Rods is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License version 3, as
10
published by the Free Software Foundation.
11
12
Rigs of Rods is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#pragma once
22
23
#include <Ogre.h>
24
25
namespace
RoR
{
26
namespace
GUI {
27
28
class
TextureToolWindow
29
{
30
public
:
31
const
float
LEFT_PANE_WIDTH
= 200.f;
32
const
float
WINDOW_WIDTH
= 600.f;
33
34
void
SetVisible
(
bool
visible) {
m_is_visible
= visible; }
35
bool
IsVisible
()
const
{
return
m_is_visible
; }
36
bool
IsHovered
()
const
{
return
IsVisible
() &&
m_is_hovered
; }
37
38
void
Draw
();
39
40
private
:
41
void
SaveTexture
(std::string texName,
bool
usePNG);
42
43
bool
m_is_visible
=
false
;
44
bool
m_is_hovered
=
false
;
45
bool
m_show_dynamic_only
=
true
;
46
Ogre::TexturePtr
m_display_tex
;
47
};
28
class
TextureToolWindow
{
…
};
48
49
}
// namespace GUI
50
}
// namespace RoR
RoR::GUI::TextureToolWindow
Definition
GUI_TextureToolWindow.h:29
RoR::GUI::TextureToolWindow::SetVisible
void SetVisible(bool visible)
Definition
GUI_TextureToolWindow.h:34
RoR::GUI::TextureToolWindow::SaveTexture
void SaveTexture(std::string texName, bool usePNG)
Definition
GUI_TextureToolWindow.cpp:155
RoR::GUI::TextureToolWindow::m_display_tex
Ogre::TexturePtr m_display_tex
Definition
GUI_TextureToolWindow.h:46
RoR::GUI::TextureToolWindow::m_is_hovered
bool m_is_hovered
Definition
GUI_TextureToolWindow.h:44
RoR::GUI::TextureToolWindow::WINDOW_WIDTH
const float WINDOW_WIDTH
Definition
GUI_TextureToolWindow.h:32
RoR::GUI::TextureToolWindow::m_show_dynamic_only
bool m_show_dynamic_only
Definition
GUI_TextureToolWindow.h:45
RoR::GUI::TextureToolWindow::IsVisible
bool IsVisible() const
Definition
GUI_TextureToolWindow.h:35
RoR::GUI::TextureToolWindow::Draw
void Draw()
Definition
GUI_TextureToolWindow.cpp:38
RoR::GUI::TextureToolWindow::LEFT_PANE_WIDTH
const float LEFT_PANE_WIDTH
Definition
GUI_TextureToolWindow.h:31
RoR::GUI::TextureToolWindow::m_is_visible
bool m_is_visible
Definition
GUI_TextureToolWindow.h:43
RoR::GUI::TextureToolWindow::IsHovered
bool IsHovered() const
Definition
GUI_TextureToolWindow.h:36
RoR
Definition
AppContext.h:36
Generated on Fri Jan 2 2026 09:37:02 for Rigs of Rods by
1.9.8