32 #ifndef __MO_TEXTURE_H__
33 #define __MO_TEXTURE_H__
120 MOboolean BuildFromBuffer(
MOuint p_width,
MOuint p_height,
const GLvoid* p_buffer, GLenum p_format = GL_RGBA, GLenum p_type = GL_UNSIGNED_BYTE);
150 MOboolean SetBuffer(
const GLvoid* p_buffer, GLenum p_format = GL_RGBA, GLenum p_type = GL_UNSIGNED_BYTE);
160 MOboolean SetBuffer(
MOuint p_width,
MOuint p_height,
const GLvoid* p_buffer, GLenum p_format = GL_RGBA, GLenum p_type = GL_UNSIGNED_BYTE);
169 MOboolean GetBuffer(GLvoid* p_buffer, GLenum p_format = GL_RGBA, GLenum p_type = GL_UNSIGNED_BYTE);
268 MOuint GetDataWidth()
const;
275 MOuint GetDataHeight()
const;
364 return m_bBuildedFromFile;
379 bool CalculateLuminanceAndConstrast(
int x0 = 0,
int y0 = 0,
int x1 = 0,
int y1 = 0 );
419 moDWord Histogram[256];
424 bool ResetBufferData(
bool force_creation =
false,
int bytes_per_pixel=0 );
496 void ReleaseReference();
513 MOint reference_counter;
533 moDWord Histogram[256];
589 virtual bool IsPlaying();
637 MO_PLAYMODE_FRAMEBASE
646 virtual void SetPlayMode( moPlayMode playmode );
655 virtual moPlayMode GetPlayMode();
661 virtual void GetFrame(
MOuint p_i );
663 virtual MOuint GetActualFrame();
672 virtual void SetInterpolation(
MOuint p_FrameJump,
MOuint p_InterpolationTime );
682 virtual MOboolean IsInterpolationActive();
695 virtual MOint Interpolate();
805 void SetTextureCount(
MOuint p_tex_count);
883 virtual void Pause();
884 virtual void Continue();
886 virtual void Seek(
long frame,
float rate = 1.0 );
888 virtual bool IsPaused();
892 virtual void SetBrightness(
float brightness );
893 virtual void SetContrast(
float contrast );
894 virtual void SetSaturation(
float saturation );
895 virtual void SetHue(
float hue );
897 virtual void SetVolume(
float volume );
898 virtual void SetBalance(
float balance );
918 MOboolean Reload(
bool force_kill=
true );
920 void EnableVideo(
int);
923 void EnableAudio(
int);
GLenum GetTexTarget() const
Parámetros internos de una textura.
MOboolean m_bBuildedFromFile
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
virtual void GetFrame(MOuint p_i)
moTextureFilter * m_pCopyStart
moTextureArray m_srcinterpol
GLint GetMagFilter() const
moResourceManager * m_pResourceManager
una textura animada basada en una película
void SetFileMan(moFileManager *p_fileman)
void SetGLMan(moGLManager *p_gl)
MOfloat m_fFramesPerSecond
const moTexParam MODefTex2DParams
Parámetros internos predeterminados de una textura.
void SetMOId(MOuint p_moid)
moDeclareExportedDynamicArray(moTexture *, moTextureArray)
Clase base abstracta de donde deben derivar los objetos [virtual pura].
virtual MOboolean Init()
Inicializa el objeto.
moFileManager * m_pFileMan
moShader * m_pShaderInterpolate
MOboolean m_bInterpolating
clase de para manejar textos
moTextureArray m_srcstart
void SetFBOAttachPoint(MOuint p_fbo_attach_point)
Grafo de reproducción de video.
void SetFBO(moFBO *p_fbo)
virtual MOuint GetFrameCount()
GLint GetMinFilter() const
virtual void SetFrameCount(MOuint p_nframes)
MOboolean SupportedFile(moText p_filename)
MOfloat GetMaxCoordT() const
moVector3f GetColorAverage()
moTextureType
Tipos de texturas.
virtual MOboolean Finish()
void SetName(moText p_name)
Clase Base para Objetos Moldeo ( moEffect, moIODevice, moResource, moConsole )
moVector3f GetColorMatrixCorner(int corner)
0 left up, 1 right up, 2, left down, 3, righ down
GLenum GetTexInternalFormat() const
clase base para el manejo de una textura
Administrador de moBucket 's.
Administrador de recursos.
void SetDataMan(moDataManager *p_dataman)
MOuint m_fbo_attach_point
MOfloat m_InterpolationPosition
MOuint m_InterpolationTime
MOfloat GetMaxCoordS() const
manejador de operaciones comunes de Open GL
moTextureFilter * m_pCopyEnd
MOboolean Load(moParam *p_param)
MOuint GetFBOAttachPoint() const
virtual MOfloat GetFramesPerSecond()
virtual void SetFramesPerSecond(MOfloat p_fps)
moMatrix3 & operator=(const moMatrix3 &rkM)
MOlong GetDataTexelCount() const
moTextureFilter * m_pInterpolator
moTextureType GetType() const
MOuint GetComponents() const
MOboolean m_bInterpolation
moTextureArray m_textures_array
MOboolean IsBuildedFromFile() const
virtual MOboolean Finish()
clase base para el manejo de una textura con su copia comprimida en memoria
moBucketsPool m_BucketsPool
una textura asociada a una animación de cuadros
moTexture * GetTexture(MOuint p_i)
MOlong GetTexelCount() const
moDataManager * m_pDataMan
moTexParam GetTexParam() const