libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
|
Buffer de imágenes para video. More...
#include <moVideoManager.h>
Public Member Functions | |
moVideoBuffer () | |
virtual | ~moVideoBuffer () |
virtual MOboolean | Init () |
Inicializa el objeto. More... | |
virtual MOboolean | Init (moText bufferpath, moText bufferformat, moResourceManager *p_pResourceManager, MOuint width, MOuint height, MOuint xsource, MOuint ysource, MOuint sourcewidth, MOuint sourceheight, MOint interpolation=0, MOint interpolationjump=0, MOint interpolationtime=0) |
virtual MOboolean | Finish () |
virtual void | GetFrame (MOuint p_i) |
MOboolean | LoadImage (moBitmap *pImage, int indeximage=-1) |
MOint | GetXSource () |
MOint | GetYSource () |
MOint | GetSourceWidth () |
MOint | GetSourceHeight () |
moText | GetBufferPath () |
moText | GetBufferFormat () |
Public Member Functions inherited from moTextureAnimated | |
moTextureAnimated () | |
virtual | ~moTextureAnimated () |
virtual MOboolean | Init (moText p_name, MOuint p_moid, moResourceManager *p_res, moTexParam p_param=MODefTex2DParams) |
virtual void | Play () |
virtual void | Stop () |
virtual bool | IsPlaying () |
virtual MOint | GetGLId (moTempo *tempo) |
virtual MOint | GetGLId (MOuint p_i) |
virtual MOint | GetGLId (MOfloat p_cycle) |
virtual MOuint | GetFrameCount () |
virtual void | SetFrameCount (MOuint p_nframes) |
virtual MOfloat | GetFramesPerSecond () |
virtual void | SetFramesPerSecond (MOfloat p_fps) |
virtual void | SetPlayMode (moPlayMode playmode) |
virtual moPlayMode | GetPlayMode () |
virtual MOuint | GetActualFrame () |
virtual void | SetInterpolation (MOuint p_FrameJump, MOuint p_InterpolationTime) |
virtual MOboolean | IsInterpolating () |
virtual MOboolean | IsInterpolationActive () |
virtual MOboolean | ActivateInterpolation (MOboolean activate=true) |
Public Member Functions inherited from moTexture | |
moTexture () | |
virtual | ~moTexture () |
MOboolean | BuildEmpty (MOuint p_width, MOuint p_height) |
MOboolean | BuildFromBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE) |
MOboolean | BuildFromFile (moText p_filename) |
MOboolean | SupportedFile (moText p_filename) |
MOboolean | Load (moParam *p_param) |
MOboolean | Load (moValue *p_value) |
MOboolean | SetBuffer (const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE) |
MOboolean | SetBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE) |
MOboolean | GetBuffer (GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE) |
void | SetGLMan (moGLManager *p_gl) |
void | SetDataMan (moDataManager *p_dataman) |
void | SetFileMan (moFileManager *p_fileman) |
void | SetFBO (moFBO *p_fbo) |
MOuint | SetFBOandAttachPoint (moFBO *p_fbo) |
void | SetFBOAttachPoint (MOuint p_fbo_attach_point) |
moFBO * | GetFBO () const |
MOuint | GetFBOAttachPoint () const |
moTextureType | GetType () const |
MOuint | GetGLId () const |
MOuint | GetGLId (moMoldeoObject *p_src_mob) |
TODO: check this! obsolete? More... | |
MOuint | GetMOId () const |
void | SetMOId (MOuint p_moid) |
moText | GetName () const |
void | SetName (moText p_name) |
MOuint | GetWidth () const |
MOuint | GetHeight () const |
MOuint | GetDataWidth () const |
MOuint | GetDataHeight () const |
MOuint | GetComponents () const |
MOlong | GetTexelCount () const |
MOlong | GetDataTexelCount () const |
MOfloat | GetMaxCoordS () const |
MOfloat | GetMaxCoordT () const |
moTexParam | GetTexParam () const |
GLenum | GetTexTarget () const |
GLenum | GetTexInternalFormat () const |
GLint | GetMinFilter () const |
GLint | GetMagFilter () const |
GLint | GetWrapS () const |
GLint | GetWrapT () const |
void | FlipBufferVert (MOubyte *pBuffer, MOint p_depth) |
void | CopyFromTex (moTexture *p_src_tex, MOboolean p_copy_glid, MOboolean p_copy_moid, MOboolean p_copy_type, MOboolean p_copy_name) |
moTexture & | operator= (const moTexture &p_src_tex) |
MOboolean | IsBuildedFromFile () const |
moText | CreateThumbnail (moText p_bufferformat, int w, int h, moText newfilename=moText("")) |
bool | CalculateLuminanceAndConstrast (int x0=0, int y0=0, int x1=0, int y1=0) |
int | GetLuminance () const |
int | GetContrast () const |
MOboolean | Refresh () |
Public Member Functions inherited from moAbstract | |
moAbstract () | |
virtual | ~moAbstract () |
MOboolean | Initialized () |
Pregunta si está inicializado. More... | |
Buffer de imágenes para video.
Clase que permite cargar una sucesión de imágenes de mismo formato con compresión incluída dentro de un buffer de memoria y a la vez permite reproducir cada cuadro de forma independiente, descomprimiendo de memoria y asignando una textura
Definition at line 266 of file moVideoManager.h.
moVideoBuffer::moVideoBuffer | ( | ) |
Definition at line 142 of file moVideoManager.cpp.
|
virtual |
Definition at line 152 of file moVideoManager.cpp.
|
virtual |
Destruye la textura openGL.
if (m_pInterpolator) { delete m_pInterpolator; m_pInterpolator = NULL; } if (m_pCopyStart) { delete m_pCopyStart; m_pCopyStart = NULL; } if (m_pCopyEnd) { delete m_pCopyEnd; m_pCopyEnd = NULL; }
Reimplemented from moTextureAnimated.
Definition at line 191 of file moVideoManager.cpp.
|
inline |
Definition at line 285 of file moVideoManager.h.
|
inline |
Definition at line 284 of file moVideoManager.h.
|
virtual |
Calcula el cuadro i-ésimo de la animación.
p_i | índice del cuadro a cualcular. |
always needs implementation??? must be pure virtual.
Reimplemented from moTextureAnimated.
Definition at line 267 of file moVideoManager.cpp.
|
inline |
Definition at line 283 of file moVideoManager.h.
|
inline |
Definition at line 282 of file moVideoManager.h.
|
inline |
Definition at line 280 of file moVideoManager.h.
|
inline |
Definition at line 281 of file moVideoManager.h.
|
virtual |
Inicializa el objeto.
Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.
Reimplemented from moAbstract.
Definition at line 156 of file moVideoManager.cpp.
|
virtual |
Definition at line 165 of file moVideoManager.cpp.
Definition at line 204 of file moVideoManager.cpp.