Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/crgsg/crTextureContext.h

Go to the documentation of this file.
00001 // Filename: chromium.TextureContext.h
00002 // Created by:  drose (07Oct99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef CRTEXTURECONTEXT_H
00020 #define CRTEXTURECONTEXT_H
00021 
00022 #include <pandabase.h>
00023 
00024 #ifdef WIN32_VC
00025 // Must include windows.h before gl.h on NT
00026 #define WIN32_LEAN_AND_MEAN
00027 #include <windows.h>
00028 #undef WIN32_LEAN_AND_MEAN
00029 #endif
00030 
00031 
00032 #include <GL/gl.h>
00033 // Chromium specific
00034 #ifdef WIN32_VC // [
00035 #define WINDOWS 1
00036 #endif //]
00037 #include "cr_glwrapper.h"
00038 #include "cr_applications.h"
00039 #include "cr_spu.h"
00040 extern SPUDispatchTable chromium;
00041 
00042 #include <textureContext.h>
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //       Class : CRTextureContext
00046 // Description :
00047 ////////////////////////////////////////////////////////////////////
00048 class EXPCL_PANDACR CRTextureContext : public TextureContext {
00049 public:
00050   INLINE CRTextureContext(Texture *tex);
00051 
00052   // This is the GL "name" of the texture object.
00053   GLuint _index;
00054 
00055   // This is a GL texture priority.
00056   GLfloat _priority;
00057 
00058 public:
00059   static TypeHandle get_class_type() {
00060     return _type_handle;
00061   }
00062   static void init_type() {
00063     TextureContext::init_type();
00064     register_type(_type_handle, "CRTextureContext",
00065                   TextureContext::get_class_type());
00066   }
00067   virtual TypeHandle get_type() const {
00068     return get_class_type();
00069   }
00070   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00071 
00072 private:
00073   static TypeHandle _type_handle;
00074 };
00075 
00076 #include "crTextureContext.I"
00077 
00078 #endif
00079 

Generated on Fri May 2 00:36:06 2003 for Panda by doxygen1.3