HIRO_DRAW
Computer Graphics Structures library
hiro::draw::Style Struct Reference

Base class for setting rendering style of an arbitrary render object. More...

Inheritance diagram for hiro::draw::Style:
[legend]

Public Member Functions

virtual bool ReadFromStream (std::istream &str)
 Imports state from stream.
 
virtual void WriteToStream (std::ostream &str)
 Exports state to stream.
 

Data Fields

bool visible = true
 Whether the renderer that uses this style should be skipped during the rendering.
 
cogs::Transform transform
 Model transformation applied to the renderer. In shader will appear as MODEL_MATRIX.
 

Protected Member Functions

bool ReadVersion (std::istream &str, const uint32_t expected_version)
 Read uint32_t version from stream and check if it is equal to the expected version.
 

Detailed Description

Base class for setting rendering style of an arbitrary render object.