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

« back to all changes in this revision

Viewing changes to source/gameengine/GamePlayer/common/GPC_RenderTools.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: GPC_RenderTools.h,v 1.6 2004/03/22 22:01:40 jesterking Exp $
 
2
 * $Id: GPC_RenderTools.h,v 1.11 2005/03/25 10:33:36 kester Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
50
50
 
51
51
#include "BMF_Api.h"
52
52
 
 
53
struct KX_ClientObjectInfo;
 
54
 
53
55
 
54
56
class GPC_RenderTools : public RAS_IRenderTools
55
57
{
64
66
        {
65
67
                glDisable(GL_LIGHTING);
66
68
                glDisable(GL_COLOR_MATERIAL);
67
 
                glDisableClientState(GL_NORMAL_ARRAY);
68
69
        }
69
70
 
70
 
        void EnableOpenGLLights()
71
 
        {
72
 
                glEnable(GL_LIGHTING);
73
 
                glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
74
 
                glEnable(GL_COLOR_MATERIAL);
75
 
                glEnableClientState(GL_NORMAL_ARRAY);
76
 
        }
 
71
        void EnableOpenGLLights();
77
72
 
78
73
        int ProcessLighting(int layer);
79
74
 
144
139
                        int tile,
145
140
                        int tilexrep,int tileyrep,
146
141
                        int mode,
147
 
                        int transparant,
 
142
                        bool transparant,
 
143
                        bool zsort,
148
144
                        int lightlayer,
149
145
                        bool bIsTriangle,
150
146
                        void* clientobject,
152
148
 
153
149
        int applyLights(int objectlayer);
154
150
 
 
151
        bool RayHit(KX_ClientObjectInfo* client, MT_Point3& hit_point, MT_Vector3& hit_normal, void * const data);
155
152
protected:
156
153
        /** 
157
154
         * Copied from KX_BlenderGL.cpp in KX_blenderhook
170
167
 
171
168
 
172
169
        BMF_Font* m_font;
 
170
        static unsigned int m_numgllights;
173
171
};
174
172
 
175
173
#endif  // __GPC_RENDERTOOLS_H