32 #ifndef __MO_RENDERMANAGER_H__
33 #define __MO_RENDERMANAGER_H__
42 #define MO_RENDER_RESOLUTION 0
43 #define MO_SCREEN_RESOLUTION 1
45 #define MO_RENDER_TO_TEXTURE_FBSCREEN 0
46 #define MO_RENDER_TO_TEXTURE_FBOBJECT 1
67 int Width()
const {
return width; }
68 int Height()
const {
return height; }
69 float Aspect()
const {
return aspect; }
103 return m_DisplayResolution;
107 return p_height/Proportion();
111 return m_DisplayResolution.Aspect();
201 void SetView(
int p_width,
int p_height );
202 void SetInterfaceView(
int p_width,
int p_height );
235 void BeginUpdateDevice();
240 void EndUpdateDevice();
251 void BeginUpdateObject();
256 void EndUpdateObject();
268 void BeginDrawEffect();
273 void EndDrawEffect();
292 void DrawTexture(
MOint p_resolution,
MOint p_tex_num);
307 bool Screenshot(
moText pathname,
moText& screenshot_result,
const moText& image_format=
"PNG",
const moText& file_pattern=
"image_{DATETIME}_{####}.png" );
313 bool PreviewShot(
bool shot_start =
false);
320 void CopyRenderToTexture(
MOint p_tex_num);
331 MOint ScreenWidth()
const;
336 MOint ScreenHeight()
const;
342 MOint InterfaceWidth()
const;
347 MOint InterfaceHeight()
const;
353 float ScreenProportion()
const;
360 MOint RenderWidth()
const;
365 MOint RenderHeight()
const;
371 float RenderProportion()
const;
383 MOboolean FramebufferObjectSupported()
const;
390 MOboolean IsTextureNonPowerOf2Disabled()
const;
397 return m_pFramesPool;
400 int CreateLayer(
moEffect* p_scene_effect );
401 void RenderLayer(
int layer_id );
moTextureManager * m_pTextureManager
moShaderManager * m_pSHManager
Recurso ( objeto para cargar y manipular objetos físicos de datos de imágenes, audio, video, 3d, 2d, fuentes, shaders y de cualquier otro tipo extendible por un plugin )
MOboolean ValidDestTexNum(MOint p_tex_num) const
float HeightToProportion(float p_height) const
Clase base abstracta de donde deben derivar los objetos [virtual pura].
moRenderOutputMode m_OutputMode
clase de para manejar textos
moDeclareExportedDynamicArray(moRenderClip *, moRenderClips)
moRenderManagerMode m_render_to_texture_mode
const moResolution & Resolution() const
MOint GetRenderToTexMode()
Administrador de moBucket 's.
int m_PreviewShotIteration
moResolution m_RenderResolution
MOboolean ValidSourceTexNum(MOint p_tex_num) const
Clase que implementa un administrador de shaders.
manejador de operaciones comunes de Open GL
moDisplays Displays
clip or section of render resolution
virtual MOboolean Finish()
moRenderClips Clips
normal output need this
moGLManager * m_pGLManager
moBucketsPool * m_pFramesPool
moMatrix3 & operator=(const moMatrix3 &rkM)
rsolution ouput to display output
moBucketsPool * GetFramesPool()
moDecoderManager * m_pDecoderManager
moTimerAbsolute m_PreviewShotTimer
clase base para objetos dibujables
void DrawRenderTexure(MOint p_resolution)
moRenderOutputConfiguration m_OutputConfiguration
moFBManager * m_pFBManager
Clase para el control de un temporizador (absoluto)
moResolution m_OutputResolution
normal mode need this