#pragma once #define MLR_MLRMOVIETEXTURE_HPP #include namespace MidLevelRenderer { class MLRTexturePool; class MLRMovieTexture: public MLRTexture { friend class MLRTexturePool; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Initialization // public: static void InitializeClass(); static void TerminateClass(); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Constructors/Destructors // protected: MLRMovieTexture(Stuff::MemoryStream *stream, ClassData *class_data = MLRMovieTexture::DefaultData); public: MLRMovieTexture( MLRTexturePool *pool, const char* name, int nrOfFrames, float frameTime, int handle, int hint=0, ClassData *class_data = MLRMovieTexture::DefaultData ); ~MLRMovieTexture(); static MLRMovieTexture* Make(Stuff::MemoryStream *stream); void Save(Stuff::MemoryStream *stream); GOSImage* GetImage(int *h=NULL) const { Check_Object(this); Verify(currentFrame>=0 && currentFrame=0 && nr=0 && nr