Differential D152 Diff 3818 source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
| * 3D rendering device context. | * 3D rendering device context. | ||||
| */ | */ | ||||
| class RAS_OpenGLRasterizer : public RAS_IRasterizer | class RAS_OpenGLRasterizer : public RAS_IRasterizer | ||||
| { | { | ||||
| RAS_ICanvas *m_2DCanvas; | RAS_ICanvas *m_2DCanvas; | ||||
| /* fogging vars */ | /* fogging vars */ | ||||
| bool m_fogenabled; | bool m_fogenabled; | ||||
| short m_fogtype; | |||||
| float m_fogstart; | |||||
| float m_fogdist; | |||||
| float m_fogintensity; | |||||
| float m_fogr; | |||||
| float m_fogg; | |||||
| float m_fogb; | |||||
| float m_redback; | float m_redback; | ||||
| float m_greenback; | float m_greenback; | ||||
| float m_blueback; | float m_blueback; | ||||
| float m_alphaback; | float m_alphaback; | ||||
| float m_ambr; | float m_ambr; | ||||
| float m_ambg; | float m_ambg; | ||||
| float m_ambb; | float m_ambb; | ||||
| ▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | public: | ||||
| virtual void SetProjectionMatrix(MT_CmMatrix4x4 &mat); | virtual void SetProjectionMatrix(MT_CmMatrix4x4 &mat); | ||||
| virtual void SetProjectionMatrix(const MT_Matrix4x4 &mat); | virtual void SetProjectionMatrix(const MT_Matrix4x4 &mat); | ||||
| virtual void SetViewMatrix(const MT_Matrix4x4 &mat, const MT_Matrix3x3 &ori, const MT_Point3 &pos, bool perspective); | virtual void SetViewMatrix(const MT_Matrix4x4 &mat, const MT_Matrix3x3 &ori, const MT_Point3 &pos, bool perspective); | ||||
| virtual const MT_Point3& GetCameraPosition(); | virtual const MT_Point3& GetCameraPosition(); | ||||
| virtual bool GetCameraOrtho(); | virtual bool GetCameraOrtho(); | ||||
| virtual void SetFog(short type, float start, float dist, float intensity, float r, float g, float b); | virtual void SetFog(short type, float start, float dist, float intensity, float color[3]); | ||||
| virtual void SetFogColor(float r, float g, float b); | |||||
| virtual void SetFogStart(float fogstart); | |||||
| virtual void SetFogEnd(float fogend); | |||||
| virtual void EnableFog(bool enable); | virtual void EnableFog(bool enable); | ||||
| virtual void DisplayFog(); | virtual void DisplayFog(); | ||||
| virtual bool IsFogEnabled(); | |||||
| virtual void SetBackColor(float red, float green, float blue, float alpha); | virtual void SetBackColor(float color[3]); | ||||
| virtual void SetDrawingMode(int drawingmode); | virtual void SetDrawingMode(int drawingmode); | ||||
| virtual int GetDrawingMode(); | virtual int GetDrawingMode(); | ||||
| virtual void SetCullFace(bool enable); | virtual void SetCullFace(bool enable); | ||||
| virtual void SetLines(bool enable); | virtual void SetLines(bool enable); | ||||
| virtual MT_Matrix4x4 GetFrustumMatrix( | virtual MT_Matrix4x4 GetFrustumMatrix( | ||||
| float left, float right, float bottom, float top, | float left, float right, float bottom, float top, | ||||
| float frustnear, float frustfar, | float frustnear, float frustfar, | ||||
| float focallength, bool perspective); | float focallength, bool perspective); | ||||
| virtual MT_Matrix4x4 GetOrthoMatrix( | virtual MT_Matrix4x4 GetOrthoMatrix( | ||||
| float left, float right, float bottom, float top, | float left, float right, float bottom, float top, | ||||
| float frustnear, float frustfar); | float frustnear, float frustfar); | ||||
| virtual void SetSpecularity(float specX, float specY, float specZ, float specval); | virtual void SetSpecularity(float specX, float specY, float specZ, float specval); | ||||
| virtual void SetShinyness(float shiny); | virtual void SetShinyness(float shiny); | ||||
| virtual void SetDiffuse(float difX, float difY, float difZ, float diffuse); | virtual void SetDiffuse(float difX, float difY, float difZ, float diffuse); | ||||
| virtual void SetEmissive(float eX, float eY, float eZ, float e); | virtual void SetEmissive(float eX, float eY, float eZ, float e); | ||||
| virtual void SetAmbientColor(float red, float green, float blue); | virtual void SetAmbientColor(float color[3]); | ||||
| virtual void SetAmbient(float factor); | virtual void SetAmbient(float factor); | ||||
| virtual void SetPolygonOffset(float mult, float add); | virtual void SetPolygonOffset(float mult, float add); | ||||
| virtual void FlushDebugShapes(); | virtual void FlushDebugShapes(); | ||||
| virtual void DrawDebugLine(const MT_Vector3 &from,const MT_Vector3 &to, const MT_Vector3 &color) | virtual void DrawDebugLine(const MT_Vector3 &from,const MT_Vector3 &to, const MT_Vector3 &color) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||