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
utils
MeshObject.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
Copyright 2013-2020 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods 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 Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
25
26
#pragma once
27
28
#include <Ogre.h>
29
30
#include "
Application.h
"
31
34
35
class
MeshObject
36
{
37
public
:
38
MeshObject
(Ogre::String meshName, Ogre::String entityRG, Ogre::String entityName, Ogre::SceneNode* sceneNode);
39
40
void
setMaterialName
(Ogre::String m);
41
void
setCastShadows
(
bool
b);
42
void
setVisible
(
bool
b);
43
inline
Ogre::Entity*
getEntity
() {
return
m_entity
; };
44
inline
Ogre::SceneNode*
GetSceneNode
() {
return
m_scene_node
; }
45
inline
Ogre::MeshPtr
getLoadedMesh
() {
return
m_mesh
; }
46
47
protected
:
48
Ogre::SceneNode*
m_scene_node
=
nullptr
;
49
Ogre::Entity*
m_entity
=
nullptr
;
50
Ogre::MeshPtr
m_mesh
;
51
bool
m_cast_shadows
=
false
;
52
53
void
createEntity
(Ogre::String meshName, Ogre::String entityRG, Ogre::String entityName);
54
};
35
class
MeshObject
{
…
};
55
Application.h
Central state/object manager and communications hub.
MeshObject
Definition
MeshObject.h:36
MeshObject::m_entity
Ogre::Entity * m_entity
Definition
MeshObject.h:49
MeshObject::setVisible
void setVisible(bool b)
Definition
MeshObject.cpp:61
MeshObject::setCastShadows
void setCastShadows(bool b)
Definition
MeshObject.cpp:52
MeshObject::GetSceneNode
Ogre::SceneNode * GetSceneNode()
Definition
MeshObject.h:44
MeshObject::m_scene_node
Ogre::SceneNode * m_scene_node
Definition
MeshObject.h:48
MeshObject::m_mesh
Ogre::MeshPtr m_mesh
Definition
MeshObject.h:50
MeshObject::m_cast_shadows
bool m_cast_shadows
Definition
MeshObject.h:51
MeshObject::createEntity
void createEntity(Ogre::String meshName, Ogre::String entityRG, Ogre::String entityName)
Definition
MeshObject.cpp:70
MeshObject::setMaterialName
void setMaterialName(Ogre::String m)
Definition
MeshObject.cpp:44
MeshObject::getEntity
Ogre::Entity * getEntity()
Definition
MeshObject.h:43
MeshObject::getLoadedMesh
Ogre::MeshPtr getLoadedMesh()
Definition
MeshObject.h:45
Generated on Fri Jan 2 2026 09:37:03 for Rigs of Rods by
1.9.8