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.
|
una textura animada basada en una película More...
#include <moTexture.h>
Public Member Functions | |
moMovie () | |
virtual | ~moMovie () |
virtual MOboolean | Init (moText p_name, MOuint p_moid, moResourceManager *p_res, moTexParam p_param=MODefTex2DParams) |
virtual MOboolean | Finish () |
virtual void | Play () |
virtual void | Pause () |
virtual void | Continue () |
virtual void | Stop () |
virtual void | Seek (long frame, float rate=1.0) |
virtual bool | IsPlaying () |
virtual bool | IsPaused () |
virtual MOulong | GetPosition () |
virtual moStreamState | State () |
virtual void | SetBrightness (float brightness) |
virtual void | SetContrast (float contrast) |
virtual void | SetSaturation (float saturation) |
virtual void | SetHue (float hue) |
virtual void | SetVolume (float volume) |
virtual void | SetBalance (float balance) |
MOboolean | SupportedFile (moText p_filename) |
MOboolean | LoadMovieFile (moText p_filename) |
MOboolean | Load (moParam *p_param) |
MOboolean | Load (moValue *p_value) |
MOboolean | Reload (bool force_kill=true) |
void | EnableVideo (int) |
bool | HasVideo () |
void | EnableAudio (int) |
bool | HasAudio () |
bool | IsEOS () |
Public Member Functions inherited from moTextureAnimated | |
moTextureAnimated () | |
virtual | ~moTextureAnimated () |
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 () |
virtual MOboolean | Init () |
Inicializa el objeto. More... | |
MOboolean | Initialized () |
Pregunta si está inicializado. More... | |
Protected Member Functions | |
void | GetFrame (MOuint p_i) |
Protected Member Functions inherited from moTextureAnimated | |
virtual MOboolean | NeedsInterpolation () |
virtual MOint | Interpolate () |
Protected Member Functions inherited from moTexture | |
void | SetParam () |
void | CalculateSize (MOuint p_width, MOuint p_height) |
MOboolean | Build () |
bool | ResetBufferData (bool force_creation=false, int bytes_per_pixel=0) |
Additional Inherited Members | |
Public Types inherited from moTextureAnimated | |
enum | moPlayMode { MO_PLAYMODE_TIMEBASE, MO_PLAYMODE_FRAMEBASE } |
Static Public Member Functions inherited from moTexture | |
static MOuint | NextPowerOf2 (MOuint p_seed) |
Public Attributes inherited from moAbstract | |
MOboolean | m_bInitialized |
Valor de inicialización More... | |
Static Public Attributes inherited from moAbstract | |
static moDebug * | MODebug2 = new moDebug() |
Clase de impresión de errores para depuración More... | |
static moTextHeap * | MODebug = new moTextHeap() |
Lista de textos. More... | |
una textura animada basada en una película
Clase para manejar una textura animada basada en una película.
Definition at line 853 of file moTexture.h.
moMovie::moMovie | ( | ) |
Constructor por defecto.
Definition at line 1885 of file moTexture.cpp.
|
virtual |
Destructor por defecto.
Definition at line 1895 of file moTexture.cpp.
|
virtual |
Definition at line 1946 of file moTexture.cpp.
void moMovie::EnableAudio | ( | int | enable | ) |
Definition at line 2210 of file moTexture.cpp.
void moMovie::EnableVideo | ( | int | enable | ) |
Definition at line 2206 of file moTexture.cpp.
|
virtual |
Destruye la textura openGL.
Reimplemented from moTextureAnimated.
Definition at line 1919 of file moTexture.cpp.
|
protectedvirtual |
Calcula el cuadro i-ésimo de la animación.
p_i | índice del cuadro a cualcular. |
no ponemos play dos veces, logico....
lock to prevent any data or reference loss...
always needs implementation??? must be pure virtual.
Reimplemented from moTextureAnimated.
Definition at line 2214 of file moTexture.cpp.
|
virtual |
Definition at line 1986 of file moTexture.cpp.
bool moMovie::HasAudio | ( | ) |
Definition at line 2090 of file moTexture.cpp.
bool moMovie::HasVideo | ( | ) |
Definition at line 2086 of file moTexture.cpp.
|
virtual |
Inicializa propiedades básicas de la textura tales como el nombre, id, administradores y parámetros.
p_name | nombre de la textura. |
p_moid | Moldeo ID de la textura. |
p_res | puntero al administrador de recursos, del cual son extraidos todos los administradores que la textura necesita (GL, Data, File, etc). |
p_param | parámetros de textura. |
Reimplemented from moTextureAnimated.
Definition at line 1900 of file moTexture.cpp.
bool moMovie::IsEOS | ( | ) |
Definition at line 2094 of file moTexture.cpp.
|
virtual |
Definition at line 2031 of file moTexture.cpp.
|
virtual |
Pregunta si esta corriendo
Reimplemented from moTextureAnimated.
Definition at line 2020 of file moTexture.cpp.
Construye una película a partir de los parámetros p_param.
p_param | puntero a un objeto de parámetros que contiene el nombre del archivo del cual la película será leida. |
Definition at line 2180 of file moTexture.cpp.
Definition at line 2186 of file moTexture.cpp.
Carga en la textura la película p_filename.
QUICKTIME FOR DIRECTSHOW
UNIVERSAL
Definition at line 2122 of file moTexture.cpp.
|
virtual |
Definition at line 1938 of file moTexture.cpp.
|
virtual |
Funciones de control de la pelicula
Reimplemented from moTextureAnimated.
Definition at line 1930 of file moTexture.cpp.
MOboolean moMovie::Reload | ( | bool | force_kill = true | ) |
Definition at line 2197 of file moTexture.cpp.
|
virtual |
Definition at line 1980 of file moTexture.cpp.
|
virtual |
Definition at line 2080 of file moTexture.cpp.
|
virtual |
Definition at line 2043 of file moTexture.cpp.
|
virtual |
Definition at line 2051 of file moTexture.cpp.
|
virtual |
Definition at line 2059 of file moTexture.cpp.
|
virtual |
Definition at line 2067 of file moTexture.cpp.
|
virtual |
Definition at line 2073 of file moTexture.cpp.
|
virtual |
Definition at line 1992 of file moTexture.cpp.
|
virtual |
Para la animación, mostrando el cuadro del principio
Reimplemented from moTextureAnimated.
Definition at line 1964 of file moTexture.cpp.
Revisa que el archivo especificado con p_filename sea un archivo de película soportado. Tiene que ser de extensión avi, mpg o mov.
Definition at line 2103 of file moTexture.cpp.
|
protected |
Definition at line 932 of file moTexture.h.
|
protected |
Definition at line 933 of file moTexture.h.
|
protected |
Definition at line 935 of file moTexture.h.
|
protected |
Definition at line 934 of file moTexture.h.
|
protected |
Definition at line 937 of file moTexture.h.