~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/BL_Texture.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
class BL_Texture
21
21
{
22
22
private:
23
 
        // -----------------------------------
24
23
        unsigned int            mTexture;               // Bound texture unit data
25
 
        bool                            mError;                 // Errors
26
24
        bool                            mOk;                    // ...
27
25
        bool                            mNeedsDeleted;  // If generated
28
26
        unsigned int            mType;                  // enum TEXTURE_2D | CUBE_MAP 
29
27
        int                                     mUnit;                  // Texture unit associated with mTexture
30
28
        unsigned int            mEnvState;              // cache textureEnv
31
29
        static unsigned int     mDisableState;  // speed up disabling calls
32
 
        // -----------------------------------
33
30
 
34
31
        void InitNonPow2Tex(unsigned int *p,int x,int y,bool mipmap );
35
32
        void InitGLTex(unsigned int *p,int x,int y,bool mipmap );
55
52
        static void ActivateUnit(int unit);
56
53
        static int GetMaxUnits();
57
54
        static int GetPow2(int x);
 
55
        static void SplitEnvMap(EnvMap *map);
58
56
 
59
 
        /** todo
60
 
        void CreateRenderTexture(RAS_Rect r, RTData d);
61
 
        void ReadDepth(RAS_Rect r, RTData d);
62
 
        static void BeginDepth(RAS_ICanvas *can, RTData d);
63
 
        static void EndDepth(RAS_ICanvas *can,RTData d);
64
 
        void SetDepthMapping(MT_Matrix4x4& p, MT_Matrix4x4& m);
65
 
        */
66
57
 
67
58
        void ActivateTexture();
68
59
        void SetMapping(int mode);
70
61
        void setTexEnv(BL_Material *mat, bool modulate=false);
71
62
};
72
63
 
73
 
/* Render to texture support, managed by the scene
74
 
        TODO
75
 
*/
76
 
 
77
 
 
78
64
#endif//__BL_TEXTURE_H__