40 #ifndef INCLUDE_GLS_MOVIE_TEXTURE_H
41 #define INCLUDE_GLS_MOVIE_TEXTURE_H
46 #if (defined(GLSGEN_EXPORT_GLSMOVIETEXTURE) || \
47 defined(GLSGEN_IMPORT_GLSMOVIETEXTURE) || \
48 defined(GLS_EXPORT_GENERATED) || \
49 defined(GLS_IMPORT_GENERATED)) \
51 # if defined(GLSGEN_EXPORT_GLSMOVIETEXTURE) || defined(GLS_EXPORT_GENERATED)
52 # define GLSGEN_GLSMOVIETEXTURE_EXPORT __declspec(dllexport)
54 # define GLSGEN_GLSMOVIETEXTURE_EXPORT __declspec(dllimport)
57 # define GLSGEN_GLSMOVIETEXTURE_EXPORT
61 #define LIB_BASE_NAME "gls_movie_texture"
66 #ifndef NO_GLS_AUTOLIB
67 # define LIB_BASE_NAME "strmbase"
71 # define GLS_LIB_TYPE ""
84 GLS_GLSMOVIETEXTURE_FIRST_VALUE = GLS_LAST_INITIALIZER+1,
85 GLS_GLSMOVIETEXTURE_MOVIESOURCE,
86 GLS_GLSMOVIETEXTURE_LOOP,
87 GLS_GLSMOVIETEXTURE_SOUNDENABLED,
88 GLS_GLSMOVIETEXTURE_SOUNDVOLUME
94 friend class GlsMovieTextureEditor;
105 GLSGEN_GLSMOVIETEXTURE_EXPORT
GlsMovieTexture(
bool generateInstance=
false);
107 GLSGEN_GLSMOVIETEXTURE_EXPORT GlsMovieTexture(
const GlsMovieTexture& that,
const bool generateNames );
112 static GLSGEN_GLSMOVIETEXTURE_EXPORT
DisplayObject* CreateInstance();
124 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void Draw(
void);
125 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void Calculate(
double time);
127 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void SetValue(
int spec,va_list &args);
138 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void Loop(
const bool &should_loop);
139 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
bool Loop();
142 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void Playing(
const bool &should_play);
143 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
bool Playing();
146 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void Paused(
const bool &should_pause);
147 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
bool Paused();
150 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void PlayPosition(
const float &pct);
151 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
float PlayPosition();
155 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
unsigned int CurrentAbsoluteFrame();
158 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void SoundEnabled(
const bool &soundon);
159 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
bool SoundEnabled();
162 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
void SoundVolume(
const float& volume );
163 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
float SoundVolume();
166 virtual GLSGEN_GLSMOVIETEXTURE_EXPORT
int DurationInMS();
179 float _playPositionPercent;
182 float _previousPlayPositionPercent;
185 unsigned int _currentAbsoluteFrame;
188 unsigned int _previousAbsoluteFrame;
191 CVideoTexture *_vidTex;
virtual void Playing(const bool &should_play)
virtual void SoundEnabled(const bool &soundon)
Definition: dynamic_array.h:63
virtual void CurrentAbsoluteFrame(const unsigned int &frame)
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:289
virtual void SetAvailableAttributes(unsigned int value)
The Polygon class. Implements Polygons.
Definition: glpolygon.h:56
virtual void CopyProperties(DisplayObject *src)
The disti::GLPolygon class. Implements Polygons.
virtual DisplayObject * CloneObject(bool generateNames=false)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
virtual int DurationInMS()
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
virtual GlsPropString MovieSource()
virtual void Paused(const bool &should_pause)
virtual void SetValue(int spec, va_list &args)
virtual ~GlsMovieTexture()
virtual void PlayPosition(const float &pct)
Definition: gls_movie_texture.h:92
virtual void Loop(const bool &should_loop)
virtual void SoundVolume(const float &volume)
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
virtual void Calculate(double time)
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46