Logo Search packages:      
Sourcecode: blender version File versions  Download package

RAS_OpenGLRasterizer Class Reference

#include <RAS_OpenGLRasterizer.h>

Inheritance diagram for RAS_OpenGLRasterizer:

RAS_IRasterizer RAS_VAOpenGLRasterizer

List of all members.


Detailed Description

3D rendering device context.

Definition at line 56 of file RAS_OpenGLRasterizer.h.


Public Types

enum  { RAS_RENDER_3DPOLYGON_TEXT = 16384 }
enum  { KX_TWOSIDE = 512, KX_LINES = 32768 }
enum  DepthMask { KX_DEPTHMASK_ENABLED = 1, KX_DEPTHMASK_DISABLED }
enum  DrawType {
  KX_BOUNDINGBOX = 1, KX_WIREFRAME, KX_SOLID, KX_SHADED,
  KX_TEXTURED
}
enum  StereoEye { RAS_STEREO_LEFTEYE = 1, RAS_STEREO_RIGHTEYE }
enum  StereoMode {
  RAS_STEREO_NOSTEREO = 1, RAS_STEREO_QUADBUFFERED, RAS_STEREO_ABOVEBELOW, RAS_STEREO_INTERLACED,
  RAS_STEREO_ANAGLYPH, RAS_STEREO_SIDEBYSIDE, RAS_STEREO_VINTERLACE, RAS_STEREO_MAXSTEREO
}
enum  TexCoGen {
  RAS_TEXCO_GEN, RAS_TEXCO_ORCO, RAS_TEXCO_GLOB, RAS_TEXCO_UV1,
  RAS_TEXCO_OBJECT, RAS_TEXCO_LAVECTOR, RAS_TEXCO_VIEW, RAS_TEXCO_STICKY,
  RAS_TEXCO_WINDOW, RAS_TEXCO_NORM, RAS_TEXTANGENT, RAS_TEXCO_UV2,
  RAS_TEXCO_DISABLE
}

Public Member Functions

virtual bool BeginFrame (int drawingmode, double time)
virtual void ClearCachingInfo (void)
virtual void ClearDepthBuffer ()
void DisableFog ()
virtual void DisableMotionBlur ()
virtual void DisplayFog ()
virtual void DrawDebugLine (const MT_Vector3 &from, const MT_Vector3 &to, const MT_Vector3 &color)
virtual void EnableMotionBlur (float motionblurvalue)
virtual void EnableTextures (bool enable)
virtual void EndFrame ()
virtual void Exit ()
virtual const MT_Point3GetCameraPosition ()
virtual int GetDrawingMode ()
virtual StereoEye GetEye ()
virtual float GetEyeSeparation ()
virtual float GetFocalLength ()
virtual MT_Matrix4x4 GetFrustumMatrix (float left, float right, float bottom, float top, float frustnear, float frustfar, bool perspective)
virtual int GetMotionBlurState ()
virtual float GetMotionBlurValue ()
double GetTime ()
virtual void GetViewMatrix (MT_Matrix4x4 &mat) const
virtual void IndexPrimitives (const vecVertexArray &vertexarrays, const vecIndexArrays &indexarrays, int mode, class RAS_IPolyMaterial *polymat, class RAS_IRenderTools *rendertools, bool useObjectColor, const MT_Vector4 &rgbacolor, class KX_ListSlot **slot)
virtual void IndexPrimitives_3DText (const vecVertexArray &vertexarrays, const vecIndexArrays &indexarrays, int mode, class RAS_IPolyMaterial *polymat, class RAS_IRenderTools *rendertools, bool useObjectColor, const MT_Vector4 &rgbacolor)
virtual void IndexPrimitives_Ex (const vecVertexArray &vertexarrays, const vecIndexArrays &indexarrays, int mode, class RAS_IPolyMaterial *polymat, class RAS_IRenderTools *rendertools, bool useObjectColor, const MT_Vector4 &rgbacolor)
virtual void IndexPrimitivesMulti (const vecVertexArray &vertexarrays, const vecIndexArrays &indexarrays, int mode, class RAS_IPolyMaterial *polymat, class RAS_IRenderTools *rendertools, bool useObjectColor, const MT_Vector4 &rgbacolor, class KX_ListSlot **slot)
virtual void IndexPrimitivesMulti_Ex (const vecVertexArray &vertexarrays, const vecIndexArrays &indexarrays, int mode, class RAS_IPolyMaterial *polymat, class RAS_IRenderTools *rendertools, bool useObjectColor, const MT_Vector4 &rgbacolor)
virtual bool Init ()
virtual void LoadViewMatrix ()
virtual bool QueryArrays ()
virtual bool QueryLists ()
 RAS_OpenGLRasterizer (RAS_ICanvas *canv)
virtual void SetAlphaTest (bool enable)
virtual void SetAmbient (float factor)
virtual void SetAmbientColor (float red, float green, float blue)
virtual void SetAttrib (int type)
virtual void SetBackColor (float red, float green, float blue, float alpha)
virtual void SetCullFace (bool enable)
virtual void SetDepthMask (DepthMask depthmask)
virtual void SetDiffuse (float difX, float difY, float difZ, float diffuse)
virtual void SetDrawingMode (int drawingmode)
virtual void SetEmissive (float eX, float eY, float eZ, float e)
virtual void SetEye (const StereoEye eye)
virtual void SetEyeSeparation (const float eyeseparation)
virtual void SetFocalLength (const float focallength)
virtual void SetFog (float start, float dist, float r, float g, float b)
virtual void SetFogColor (float r, float g, float b)
virtual void SetFogEnd (float fogend)
virtual void SetFogStart (float fogstart)
virtual void SetLines (bool enable)
virtual bool SetMaterial (const RAS_IPolyMaterial &mat)
virtual void SetMotionBlurState (int newstate)
virtual void SetPolygonOffset (float mult, float add)
virtual void SetProjectionMatrix (const MT_Matrix4x4 &mat)
virtual void SetProjectionMatrix (MT_CmMatrix4x4 &mat)
virtual void SetRenderArea ()
virtual void SetShinyness (float shiny)
virtual void SetSpecularity (float specX, float specY, float specZ, float specval)
virtual void SetStereoMode (const StereoMode stereomode)=0
virtual void SetStereoMode (const StereoMode stereomode)
virtual void SetTexCoords (TexCoGen coords, int enabled)
virtual void SetViewMatrix (const MT_Matrix4x4 &mat, const MT_Vector3 &campos, const MT_Point3 &camLoc, const MT_Quaternion &camOrientQuat)
virtual bool Stereo ()
virtual void SwapBuffers ()
void Tangent (const RAS_TexVert &v1, const RAS_TexVert &v2, const RAS_TexVert &v3, const MT_Vector3 &no)
void TexCoord (const RAS_TexVert &tv, int unit)

Public Attributes

std::vector< OglDebugLine > m_debugLines

Protected Attributes

int m_drawingmode
RAS_IPolyMaterial::TCachingInfo m_materialCachingInfo
TexCoGen m_texco [RAS_MAX]
bool m_useTang

Private Member Functions

bool InterlacedStereo () const

Private Attributes

RAS_ICanvas * m_2DCanvas
float m_alphaback
float m_ambb
float m_ambg
float m_ambr
float m_blueback
MT_Point3 m_campos
StereoEye m_curreye
float m_eyeseparation
float m_focallength
float m_fogb
float m_fogdist
bool m_fogenabled
float m_fogg
float m_fogr
float m_fogstart
float m_greenback
int m_motionblur
float m_motionblurvalue
int m_noOfScanlines
float m_redback
bool m_seteyesep
bool m_setfocallength
StereoMode m_stereomode
double m_time
MT_CmMatrix4x4 m_viewmatrix

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index