RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Data Fields
RoR::TObjEntry Struct Reference

#include <TObjFileFormat.h>

Public Member Functions

 TObjEntry ()
 
 TObjEntry (Ogre::Vector3 pos, Ogre::Vector3 rot, const char *instance_name, TObjSpecialObject special, const char *type, const char *name)
 
bool IsActor () const
 
bool IsRoad () const
 

Data Fields

Ogre::Vector3 position = Ogre::Vector3::ZERO
 
Ogre::Vector3 rotation = Ogre::Vector3::ZERO
 
TObjSpecialObject special = TObjSpecialObject::NONE
 
char type [TObj::STR_LEN] = {}
 
char instance_name [TObj::STR_LEN] = {}
 
char odef_name [TObj::STR_LEN] = {}
 
float rendering_distance = 0.f
 
std::string comments
 Comment line(s) preceding the object-line in the .TOBJ file. More...
 

Detailed Description

Definition at line 120 of file TObjFileFormat.h.

Constructor & Destructor Documentation

◆ TObjEntry() [1/2]

RoR::TObjEntry::TObjEntry ( )
inline

Definition at line 122 of file TObjFileFormat.h.

◆ TObjEntry() [2/2]

TObjEntry::TObjEntry ( Ogre::Vector3  pos,
Ogre::Vector3  rot,
const char *  instance_name,
TObjSpecialObject  special,
const char *  type,
const char *  name 
)

Definition at line 33 of file TObjFileFormat.cpp.

Member Function Documentation

◆ IsActor()

bool TObjEntry::IsActor ( ) const

Definition at line 48 of file TObjFileFormat.cpp.

◆ IsRoad()

bool TObjEntry::IsRoad ( ) const

Definition at line 43 of file TObjFileFormat.cpp.

Field Documentation

◆ comments

std::string RoR::TObjEntry::comments

Comment line(s) preceding the object-line in the .TOBJ file.

Definition at line 137 of file TObjFileFormat.h.

◆ instance_name

char RoR::TObjEntry::instance_name[TObj::STR_LEN] = {}

Definition at line 134 of file TObjFileFormat.h.

◆ odef_name

char RoR::TObjEntry::odef_name[TObj::STR_LEN] = {}

Definition at line 135 of file TObjFileFormat.h.

◆ position

Ogre::Vector3 RoR::TObjEntry::position = Ogre::Vector3::ZERO

Definition at line 130 of file TObjFileFormat.h.

◆ rendering_distance

float RoR::TObjEntry::rendering_distance = 0.f

Definition at line 136 of file TObjFileFormat.h.

◆ rotation

Ogre::Vector3 RoR::TObjEntry::rotation = Ogre::Vector3::ZERO

Definition at line 131 of file TObjFileFormat.h.

◆ special

TObjSpecialObject RoR::TObjEntry::special = TObjSpecialObject::NONE

Definition at line 132 of file TObjFileFormat.h.

◆ type

char RoR::TObjEntry::type[TObj::STR_LEN] = {}

Definition at line 133 of file TObjFileFormat.h.


The documentation for this struct was generated from the following files: