32 #ifndef __MO_GLMANAGER_H__ 33 #define __MO_GLMANAGER_H__ 37 #define MO_GPU_INTEL 2 38 #define MO_GPU_OTHER 3 91 moGLMatrixf& MakePerspective(
float fovy,
float aspect,
float zNear,
float zFar );
92 moGLMatrixf& MakeLookAt(
float eyeX=0.0,
float eyeY=0.0,
float eyeZ=-10.0,
float centerX=0.0,
float centerY=0.0,
float centerZ=0.0,
float upX=0.0,
float upY=0.0,
float upZ=1.0 );
93 moGLMatrixf& MakeFrustrum(
float left=-1.0,
float right=1.0,
float bottom=-1.0,
float top=1.0,
float near=0.0001,
float far=1000.0f );
94 moGLMatrixf& MakeOrthographic(
float left=-1.0,
float right=1.0,
float bottom=-1.0,
float top=1.0,
float near=0.0001,
float far=1000.0f );
95 moGLMatrixf& Translate(
float x,
float y,
float z );
97 moGLMatrixf& Rotate(
float angle,
float vx,
float vy,
float vz );
123 Proportion =
X()/
Y();
207 void SetPerspectiveView(
MOint p_width,
MOint p_height,
double fovy=60.0,
double aspect=1.0,
double znear=0.1,
double zfar=4000.0 );
208 void LookAt(
float eyeX=0.0,
float eyeY=0.0,
float eyeZ=-10.0,
float centerX=0.0,
float centerY=0.0,
float centerZ=0.0,
float upX=0.0,
float upY=0.0,
float upZ=1.0 );
226 void SetDefaultPerspectiveView(
MOint p_width,
MOint p_height);
234 void SetOrthographicView(
MOint p_width=0,
MOint p_height=0,
float left=0.0,
float right=1.0,
float bottom=0.0,
float top=1.0,
float znear=-1.0,
float zfar=1.0);
248 void SetDefaultOrthographicView(
MOint p_width=0,
MOint p_height=0 );
255 MOint GetRenderMode();
260 void SetRenderMode(
MOint p_mode);
266 void SetMoldeoGLState();
271 void SetDefaultGLState();
275 void SetDefaultPixelStorageModes();
284 void SaveGLMatrices();
292 void SaveFramebuffer();
296 void RestoreGLState();
300 void RestoreGLMatrices();
310 void RestoreFramebuffer();
325 MOboolean RectTexture(GLenum p_target)
const;
331 MOboolean FPTexture(GLint p_internal_format);
337 MOboolean MipMapTexture(GLint p_min_filter);
343 void SetCurrentFBO(
MOuint m_fbo);
354 void SetCurrentReadBuffer(
MOint p_buffer);
364 void SetCurrentDrawBuffer(
MOint p_buffer);
377 void RestoreFBOState();
384 return m_gl_major_version;
387 return m_gl_minor_version;
390 int CreateContext(
int p_width,
int p_height );
397 void SetFrameBufferObjectActive(
bool active =
true );
438 void QueryGPUVendorString();
const moGLViewport & GetViewport() const
Parámetros internos de una textura.
moVector2 & operator=(const moVector2 &rkV)
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 )
moMatrix4< Real > & MakeIdentity()
MOint m_previous_read_buffer
moGLMatrixf m_ProjectionMatrix
moDisplayServer m_DisplayServer
moGLMatrixf * m_StackProjectionMatrices
Matrices para transformaciones en Open GL.
static const moGLMatrixf ZERO
moGLViewport(float p_width=1.0, float p_height=1.0)
moGLMatrixf(const moMatrix4f &p_src)
moGLMatrixf(bool bZero=true)
const moText & GetGLVersion()
const moText & GetGPURendererString()
float GetProportionInvert()
clase de para manejar textos
const Real * GetPointer() const
static const moGLMatrixf IDENTITY
MOuint GetGPUVendorCode()
moDisplayScreen m_DisplayScreen
manejador de operaciones comunes de Open GL
MOint m_saved_read_buffer
MOint m_saved_draw_buffer
MOint m_current_draw_buffer
virtual MOboolean Finish()
moGLViewport(const moGLViewport &p_src)
MOint m_current_read_buffer
MOint m_previous_draw_buffer
MOint GetCurrentReadBuffer()
moMatrix4< Real > & operator=(const moMatrix4 &rkM)
const moText & GetGPUVendorString()
moGLMatrixf * m_StackModelMatrices
moDisplayWindow m_DisplayWindow
moText m_gpu_renderer_string
moText m_gpu_vendor_string
moMatrix4< Real > & MakeZero()
bool m_bFrameBufferObjectActive
moGLMatrixf m_ModelMatrix
MOint GetCurrentDrawBuffer()