~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): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: RAS_OpenGLRasterizer.h,v 1.14 2006/01/06 03:46:54 erwin Exp $
 
2
 * $Id: RAS_OpenGLRasterizer.h,v 1.17 2006/04/11 05:57:30 erwin Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
44
44
#include "RAS_MaterialBucket.h"
45
45
#include "RAS_ICanvas.h"
46
46
 
 
47
#define RAS_MAX 3// match in BL_Material
 
48
 
47
49
struct  OglDebugLine
48
50
{
49
51
        MT_Vector3      m_from;
87
89
        float                   m_focallength;
88
90
        bool                    m_setfocallength;
89
91
        int                             m_noOfScanlines;
90
 
        
91
92
        bool                    InterlacedStereo() const;
92
93
 
93
94
protected:
94
95
        int                             m_drawingmode;
 
96
        TexCoGen                m_texco[RAS_MAX];
 
97
        bool                    m_useTang;
 
98
 
95
99
        /** Stores the caching information for the last material activated. */
96
100
        RAS_IPolyMaterial::TCachingInfo m_materialCachingInfo;
97
101
 
144
148
                                                class RAS_IPolyMaterial* polymat,
145
149
                                                class RAS_IRenderTools* rendertools,
146
150
                                                bool useObjectColor,
147
 
                                                const MT_Vector4& rgbacolor
 
151
                                                const MT_Vector4& rgbacolor,
 
152
                                                class KX_ListSlot** slot
148
153
                                        );
149
154
 
150
155
        virtual void    IndexPrimitives_Ex(
174
179
                                                class RAS_IPolyMaterial* polymat,
175
180
                                                class RAS_IRenderTools* rendertools,
176
181
                                                bool useObjectColor,
177
 
                                                const MT_Vector4& rgbacolor);
 
182
                                                const MT_Vector4& rgbacolor,
 
183
                                                class KX_ListSlot** slot);
178
184
 
179
185
        virtual void IndexPrimitivesMulti_Ex( 
180
186
                                                const vecVertexArray& vertexarrays,
278
284
 
279
285
        std::vector <OglDebugLine>      m_debugLines;
280
286
 
 
287
        virtual void    SetTexCoords(TexCoGen coords,int enabled);
 
288
        virtual void    SetAttrib(int type);
 
289
        void                    TexCoord(const RAS_TexVert &tv, int unit);
 
290
        virtual void    GetViewMatrix(MT_Matrix4x4 &mat) const;
 
291
 
 
292
        void    Tangent(const RAS_TexVert& v1,
 
293
                                        const RAS_TexVert& v2,
 
294
                                        const RAS_TexVert& v3,
 
295
                                        const MT_Vector3 &no);
 
296
 
281
297
};
282
298
 
283
299
#endif //__RAS_OPENGLRASTERIZER