32 #ifndef __MO_GLMANAGER_H__
33 #define __MO_GLMANAGER_H__
37 #define MO_GPU_INTEL 2
38 #define MO_GPU_OTHER 3
82 inline operator const float* ()
const {
return moMatrix4f::GetPointer(); }
83 inline operator float* () {
return moMatrix4f::GetPointer(); }
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 );
413 moText m_gpu_vendor_string;
414 moText m_gpu_renderer_string;
417 MOint m_gl_major_version;
418 MOint m_gl_minor_version;
421 MOint m_current_read_buffer;
422 MOint m_current_draw_buffer;
424 MOint m_previous_read_buffer;
425 MOint m_previous_draw_buffer;
427 MOint m_saved_read_buffer;
428 MOint m_saved_draw_buffer;
436 bool m_bFrameBufferObjectActive;
438 void QueryGPUVendorString();
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 )
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 moGLViewport & GetViewport() const
const moText & GetGPURendererString()
float GetProportionInvert()
clase de para manejar textos
static const moGLMatrixf IDENTITY
MOuint GetGPUVendorCode()
moMatrix3< Real > & MakeZero()
manejador de operaciones comunes de Open GL
moMatrix4< MOfloat > moMatrix4f
virtual MOboolean Finish()
moGLViewport(const moGLViewport &p_src)
MOint GetCurrentReadBuffer()
moMatrix3 & operator=(const moMatrix3 &rkM)
const moText & GetGPUVendorString()
moMatrix4< MOdouble > moMatrix4d
moMatrix3< Real > & MakeIdentity()
MOint GetCurrentDrawBuffer()