|
@@ -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;
|
|
|
};
|
|
};
|
|
|
|
|
|