~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: RAS_OpenGLRasterizer.h,v 1.7 2004/04/11 02:50:02 kester Exp $
 
2
 * $Id: RAS_OpenGLRasterizer.h,v 1.12 2005/01/16 06:02:06 kester Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
65
65
        float                   m_blueback;
66
66
        float                   m_alphaback;
67
67
 
68
 
        bool                    m_bEXT_compiled_vertex_array;
69
 
 
70
68
        double                  m_time;
71
69
        MT_CmMatrix4x4  m_viewmatrix;
72
70
        MT_Point3               m_campos;
73
71
 
74
 
        int                             m_stereomode;
75
 
        int                             m_curreye;
 
72
        StereoMode              m_stereomode;
 
73
        StereoEye               m_curreye;
76
74
        float                   m_eyeseparation;
 
75
        bool                    m_seteyesep;
77
76
        float                   m_focallength;
 
77
        bool                    m_setfocallength;
78
78
        int                             m_noOfScanlines;
 
79
        
 
80
        bool                    InterlacedStereo() const;
79
81
 
80
82
protected:
81
83
        int                             m_drawingmode;
87
89
        RAS_OpenGLRasterizer(RAS_ICanvas* canv);
88
90
        virtual ~RAS_OpenGLRasterizer();
89
91
 
90
 
 
91
 
 
92
 
        enum
 
92
        /*enum DrawType
93
93
        {
94
94
                        KX_BOUNDINGBOX = 1,
95
95
                        KX_WIREFRAME,
98
98
                        KX_TEXTURED
99
99
        };
100
100
 
101
 
        enum
 
101
        enum DepthMask
102
102
        {
103
103
                        KX_DEPTHMASK_ENABLED =1,
104
104
                        KX_DEPTHMASK_DISABLED,
105
 
        };
106
 
        virtual void    SetDepthMask(int depthmask);
 
105
        };*/
 
106
        virtual void    SetDepthMask(DepthMask depthmask);
107
107
 
108
 
        virtual void    SetMaterial(const RAS_IPolyMaterial& mat);
 
108
        virtual bool    SetMaterial(const RAS_IPolyMaterial& mat);
109
109
        virtual bool    Init();
110
110
        virtual void    Exit();
111
111
        virtual bool    BeginFrame(int drawingmode, double time);
114
114
        virtual void    EndFrame();
115
115
        virtual void    SetRenderArea();
116
116
 
117
 
        virtual void    SetStereoMode(const int stereomode);
 
117
        virtual void    SetStereoMode(const StereoMode stereomode);
118
118
        virtual bool    Stereo();
119
 
        virtual void    SetEye(const int eye);
 
119
        virtual void    SetEye(const StereoEye eye);
 
120
        virtual StereoEye       GetEye();
120
121
        virtual void    SetEyeSeparation(const float eyeseparation);
 
122
        virtual float   GetEyeSeparation();
121
123
        virtual void    SetFocalLength(const float focallength);
 
124
        virtual float   GetFocalLength();
122
125
 
123
126
        virtual void    SwapBuffers();
124
127
        virtual void    IndexPrimitives(
152
155
                                        );
153
156
 
154
157
        virtual void    SetProjectionMatrix(MT_CmMatrix4x4 & mat);
155
 
        virtual void    SetProjectionMatrix(MT_Matrix4x4 & mat);
 
158
        virtual void    SetProjectionMatrix(const MT_Matrix4x4 & mat);
156
159
        virtual void    SetViewMatrix(
157
160
                                                const MT_Matrix4x4 & mat,
158
161
                                                const MT_Vector3& campos,
221
224
                                                float difZ,
222
225
                                                float diffuse
223
226
                                        );
 
227
        virtual void    SetPolygonOffset(float mult, float add);
224
228
 
225
229
};
226
230