소스 검색

changed includes

Dave Schuyler 22 년 전
부모
커밋
e00bb1e88e
2개의 변경된 파일9개의 추가작업 그리고 21개의 파일을 삭제
  1. 7 18
      panda/src/shader/projtexShader.h
  2. 2 3
      panda/src/shader/projtexShadower.h

+ 7 - 18
panda/src/shader/projtexShader.h

@@ -17,33 +17,25 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 #ifndef PROJTEXSHADER_H
 #ifndef PROJTEXSHADER_H
 #define PROJTEXSHADER_H
 #define PROJTEXSHADER_H
-//
-////////////////////////////////////////////////////////////////////
-// Includes
-////////////////////////////////////////////////////////////////////
-#include <pandabase.h>
+
+#include "pandabase.h"
 
 
 #include "shader.h"
 #include "shader.h"
-#include <texture.h>
-#include <colorBlendProperty.h>
+#include "texture.h"
+#include "colorBlendProperty.h"
 
 
-////////////////////////////////////////////////////////////////////
-// Defines
-////////////////////////////////////////////////////////////////////
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : ProjtexShader
 //       Class : ProjtexShader
 // Description :
 // Description :
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-class EXPCL_SHADER ProjtexShader : public FrustumShader
-{
+class EXPCL_SHADER ProjtexShader : public FrustumShader {
 public:
 public:
-
   ProjtexShader(Texture* texture = NULL,
   ProjtexShader(Texture* texture = NULL,
                 ColorBlendProperty::Mode mode = ColorBlendProperty::M_multiply);
                 ColorBlendProperty::Mode mode = ColorBlendProperty::M_multiply);
   ~ProjtexShader() { }
   ~ProjtexShader() { }
 
 
-  virtual void config(void);
+  virtual void config();
   virtual void apply(Node *node, const AllAttributesWrapper &init_state,
   virtual void apply(Node *node, const AllAttributesWrapper &init_state,
                      const AllTransitionsWrapper &net_trans,
                      const AllTransitionsWrapper &net_trans,
                      GraphicsStateGuardian *gsg);
                      GraphicsStateGuardian *gsg);
@@ -53,15 +45,13 @@ public:
     make_dirty();
     make_dirty();
   }
   }
 
 
-  INLINE Texture* get_texture(void) { return _texture; }
+  INLINE Texture* get_texture() { return _texture; }
 
 
 protected:
 protected:
-
   PT(Texture) _texture;
   PT(Texture) _texture;
   ColorBlendProperty::Mode _blend;
   ColorBlendProperty::Mode _blend;
 
 
 public:
 public:
-
   static TypeHandle get_class_type() {
   static TypeHandle get_class_type() {
     return _type_handle;
     return _type_handle;
     }
     }
@@ -76,7 +66,6 @@ public:
     virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
     virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
 
 
 private:
 private:
-
   static TypeHandle _type_handle;
   static TypeHandle _type_handle;
 };
 };
 
 

+ 2 - 3
panda/src/shader/projtexShadower.h

@@ -21,7 +21,7 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 // Includes
 // Includes
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-#include <pandabase.h>
+#include "pandabase.h"
 
 
 #include "casterShader.h"
 #include "casterShader.h"
 #include "projtexShader.h"
 #include "projtexShader.h"
@@ -38,8 +38,7 @@
 //               it onto a receiving object(s) from a given light
 //               it onto a receiving object(s) from a given light
 //               frustum
 //               frustum
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-class EXPCL_SHADER ProjtexShadower : public CasterShader
-{
+class EXPCL_SHADER ProjtexShadower : public CasterShader {
 public:
 public:
 
 
   ProjtexShadower(int size = 256);
   ProjtexShadower(int size = 256);