Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Text output stream.
Definition prnstream.h:16
RndDrawable()
Construct a showing drawable without a highlight or children.
Definition rnddrawable.h:23
Triangle mesh with a material.
Definition rndmesh.h:31
const std::list< Transform > & GetTransforms() const
Definition rndmultimesh.h:172
~RndMultiMesh() override
Drop the reference on the mesh.
void SetMesh(RndMesh *pMesh)
Set the mesh to draw.
RndMultiMesh(const char *pszName)
Construct a multimesh without a mesh or instances.
int DrawShowing() override
Draw the mesh at each instance.
std::list< Transform > mTransforms
Definition rndmultimesh.h:203
static int sRev
The format version Save() writes and Load() accepts.
Definition rndmultimesh.h:157
const char * ClassName() const override
Report the class name.
Definition rndmultimesh.h:99
std::list< Transform > & GetTransforms()
Definition rndmultimesh.h:177
static int sLoadRev
The version Load() read last.
Definition rndmultimesh.h:164
RndMesh * mMesh
Definition rndmultimesh.h:202
void Load(BinStream &stream) override
Read what Save() wrote.
void Replace(RndObject *pFrom, RndObject *pTo) override
Replace a child, or the mesh, with another object.
void ReleaseRefs()
Drop the reference on the mesh.
void Save(BinStream &stream) override
Write the multimesh and its base.
void DumpText(PrnStream &stream) override
Write a description of the multimesh and its base.
void ListDrawables(std::list< RndDrawable * > &drawables) override
Add the multimesh, when the mesh has something to draw at an instance, then the children,...
void AcquireRefs()
Take a reference on the mesh.
static const char * sClassName
The class name a .rnd file writes, MultiMesh.
Definition rndmultimesh.h:149
RndMesh * GetMesh() const
Definition rndmultimesh.h:167
void Copy(const RndObject *pSource, int nFlags) override
Copy another multimesh and its base.
static RndObject * New(const char *pszName)
Create a multimesh.
Definition rndmultimesh.h:139
void ListDrawObjects(std::list< RndObject * > &objects) override
Add the draw objects of the mesh to a list.
RndObject(const char *pszName)
Construct an object and register it under a name.
BinStream & operator>>(BinStream &stream, std::list< Transform > &transforms)
Read a list of transforms the transform list writer wrote.
BinStream & operator<<(BinStream &stream, const std::list< Transform > &transforms)
Write a list of transforms as their count followed by the rows of each.