Core: Merge InputStream and OutputStream to Stream
Remove serialization support from Stream Former-commit-id: 7a761e4fcd07cab561f13e4709c4492ed18da88a
This commit is contained in:
@@ -13,18 +13,18 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
OBJParser::OBJParser(InputStream& stream) :
|
||||
OBJParser::OBJParser(Stream& stream) :
|
||||
m_stream(stream),
|
||||
m_streamFlags(stream.GetStreamOptions())
|
||||
m_streamFlags(stream.GetStreamOptions()) //< Saves stream flags
|
||||
{
|
||||
if ((m_streamFlags & StreamOption_Text) == 0)
|
||||
m_stream.SetStreamOptions(m_streamFlags | StreamOption_Text);
|
||||
m_stream.EnableTextMode(true);
|
||||
}
|
||||
|
||||
OBJParser::~OBJParser()
|
||||
{
|
||||
// Reset stream flags
|
||||
if ((m_streamFlags & StreamOption_Text) == 0)
|
||||
m_stream.SetStreamOptions(m_streamFlags);
|
||||
m_stream.EnableTextMode(false);
|
||||
}
|
||||
|
||||
const String* OBJParser::GetMaterials() const
|
||||
|
||||
Reference in New Issue
Block a user