From e00bb1e88ee8f344e7f580e112f62ad6411ce2fd Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 23 Oct 2003 03:51:25 +0000 Subject: [PATCH] changed includes --- panda/src/shader/projtexShader.h | 25 +++++++------------------ panda/src/shader/projtexShadower.h | 5 ++--- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/panda/src/shader/projtexShader.h b/panda/src/shader/projtexShader.h index 1c4ceb3e19..fd64b86cb5 100644 --- a/panda/src/shader/projtexShader.h +++ b/panda/src/shader/projtexShader.h @@ -17,33 +17,25 @@ //////////////////////////////////////////////////////////////////// #ifndef PROJTEXSHADER_H #define PROJTEXSHADER_H -// -//////////////////////////////////////////////////////////////////// -// Includes -//////////////////////////////////////////////////////////////////// -#include + +#include "pandabase.h" #include "shader.h" -#include -#include +#include "texture.h" +#include "colorBlendProperty.h" -//////////////////////////////////////////////////////////////////// -// Defines -//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// // Class : ProjtexShader // Description : //////////////////////////////////////////////////////////////////// -class EXPCL_SHADER ProjtexShader : public FrustumShader -{ +class EXPCL_SHADER ProjtexShader : public FrustumShader { public: - ProjtexShader(Texture* texture = NULL, ColorBlendProperty::Mode mode = ColorBlendProperty::M_multiply); ~ProjtexShader() { } - virtual void config(void); + virtual void config(); virtual void apply(Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg); @@ -53,15 +45,13 @@ public: make_dirty(); } - INLINE Texture* get_texture(void) { return _texture; } + INLINE Texture* get_texture() { return _texture; } protected: - PT(Texture) _texture; ColorBlendProperty::Mode _blend; public: - static TypeHandle get_class_type() { return _type_handle; } @@ -76,7 +66,6 @@ public: virtual TypeHandle force_init_type() {init_type(); return get_class_type();} private: - static TypeHandle _type_handle; }; diff --git a/panda/src/shader/projtexShadower.h b/panda/src/shader/projtexShadower.h index 8c6b40241b..fdb947fdce 100644 --- a/panda/src/shader/projtexShadower.h +++ b/panda/src/shader/projtexShadower.h @@ -21,7 +21,7 @@ //////////////////////////////////////////////////////////////////// // Includes //////////////////////////////////////////////////////////////////// -#include +#include "pandabase.h" #include "casterShader.h" #include "projtexShader.h" @@ -38,8 +38,7 @@ // it onto a receiving object(s) from a given light // frustum //////////////////////////////////////////////////////////////////// -class EXPCL_SHADER ProjtexShadower : public CasterShader -{ +class EXPCL_SHADER ProjtexShadower : public CasterShader { public: ProjtexShadower(int size = 256);