44 void *
operator new(
size_t nSize) {
45 return PoolMemAlloc(
static_cast<int>(nSize),
"Movie", 0);
53 void operator delete(
void *pBlock) {
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Path of a file, kept relative to a shared root directory.
Definition filepath.h:14
Text output stream.
Definition prnstream.h:16
RndAnimatable()
Construct an animatable at frame 0 without children or filters.
Definition rndanimatable.h:600
void ListAnimObjects(std::list< RndObject * > &objects) override
Add the texture to a list, then the objects of the children.
const FilePath & GetFile() const
Definition rndmovie.h:176
void Load(BinStream &stream) override
Read what Save() wrote, or an earlier version of it, closing the movie first and opening it after.
RndTex * GetTex() const
Definition rndmovie.h:181
static int sRev
The format version Save() writes and Load() accepts.
Definition rndmovie.h:173
static RndObject * New(const char *pszName)
Create a movie.
Definition rndmovie.h:155
void Copy(const RndObject *pSource, int nFlags) override
Copy another movie and its base, closing the movie first and opening it after.
virtual void Open()
Take a reference on the texture.
~RndMovie() override
Close the movie.
void Save(BinStream &stream) override
Write the movie and its base.
void Replace(RndObject *pFrom, RndObject *pTo) override
Replace the texture with another.
void DumpText(PrnStream &stream) override
Write a description of the movie and its base.
static const char * sClassName
The class name a .rnd file writes, Movie.
Definition rndmovie.h:165
const char * ClassName() const override
Report the class name.
Definition rndmovie.h:121
virtual void Close()
Drop the reference on the texture.
RndTex * mTex
Definition rndmovie.h:187
RndMovie(const char *pszName)
Construct a movie without a file or a texture.
FilePath mFile
Definition rndmovie.h:186
RndObject(const char *pszName)
Construct an object and register it under a name.
Texture, a bitmap loaded from a file or rendered to.
Definition rndtex.h:17
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.