00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef SHADERCONTEXT_H
00016 #define SHADERCONTEXT_H
00017
00018 #include "pandabase.h"
00019 #include "internalName.h"
00020 #include "savedContext.h"
00021 #include "shader.h"
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class EXPCL_PANDA_GOBJ ShaderContext: public SavedContext {
00036 public:
00037 INLINE ShaderContext(Shader *se);
00038
00039 PUBLISHED:
00040 INLINE Shader *get_shader() const;
00041
00042 public:
00043 Shader *_shader;
00044
00045 public:
00046 static TypeHandle get_class_type() {
00047 return _type_handle;
00048 }
00049 static void init_type() {
00050 TypedObject::init_type();
00051 register_type(_type_handle, "ShaderContext",
00052 TypedObject::get_class_type());
00053 }
00054 virtual TypeHandle get_type() const {
00055 return get_class_type();
00056 }
00057 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00058
00059 private:
00060 static TypeHandle _type_handle;
00061 };
00062
00063 #include "shaderContext.I"
00064
00065 #endif