Fix couple of circular dependencies, eliminate ShaderGeneratorBase

This commit is contained in:
rdb 2009-06-02 09:57:33 +00:00
parent 159026571b
commit 4e067a74c1
7 changed files with 7 additions and 15 deletions

View File

@ -122,6 +122,7 @@ PUBLISHED:
virtual bool get_supports_multisample() const=0;
virtual int get_supported_geom_rendering() const=0;
virtual bool get_supports_occlusion_query() const=0;
virtual bool get_supports_shadow_filter() const=0;
public:
// These are some general interface functions; they're defined here

View File

@ -99,7 +99,6 @@
scissorEffect.I scissorEffect.h \
shadeModelAttrib.I shadeModelAttrib.h \
shaderAttrib.I shaderAttrib.h \
shaderGeneratorBase.I shaderGeneratorBase.h \
shaderInput.I shaderInput.h \
shaderPool.I shaderPool.h \
showBoundsEffect.I showBoundsEffect.h \
@ -202,7 +201,6 @@
scissorEffect.cxx \
shadeModelAttrib.cxx \
shaderAttrib.cxx \
shaderGeneratorBase.cxx \
shaderInput.cxx \
shaderPool.cxx \
showBoundsEffect.cxx \
@ -303,7 +301,6 @@
scissorEffect.I scissorEffect.h \
shadeModelAttrib.I shadeModelAttrib.h \
shaderAttrib.I shaderAttrib.h \
shaderGeneratorBase.I shaderGeneratorBase.h \
shaderInput.I shaderInput.h \
shaderPool.I shaderPool.h \
showBoundsEffect.I showBoundsEffect.h \

View File

@ -89,7 +89,6 @@
#include "transformState.h"
#include "transparencyAttrib.h"
#include "nodePathLerps.h"
#include "shaderGeneratorBase.h"
#include "dconfig.h"
@ -477,7 +476,6 @@ init_libpgraph() {
ShadeModelAttrib::init_type();
ShaderInput::init_type();
ShaderAttrib::init_type();
ShaderGeneratorBase::init_type();
ShowBoundsEffect::init_type();
StateMunger::init_type();
StencilAttrib::init_type();

View File

@ -13,7 +13,6 @@
#include "shaderInput.cxx"
#include "shaderAttrib.cxx"
#include "shaderPool.cxx"
#include "shaderGeneratorBase.cxx"
#include "showBoundsEffect.cxx"
#include "stateMunger.cxx"
#include "stencilAttrib.cxx"

View File

@ -35,7 +35,6 @@
#include "lightReMutexHolder.h"
#include "lightMutexHolder.h"
#include "thread.h"
#include "shaderGeneratorBase.h"
#include "renderAttribRegistry.h"
#include "py_panda.h"

View File

@ -34,7 +34,6 @@
#include "pointLight.h"
#include "spotlight.h"
#include "lightLensNode.h"
#include "graphicsEngine.h"
#include "lvector4.h"
TypeHandle ShaderGenerator::_type_handle;
@ -48,7 +47,7 @@ TypeHandle ShaderGenerator::_type_handle;
// which the shader generator belongs.
////////////////////////////////////////////////////////////////////
ShaderGenerator::
ShaderGenerator(PT(GraphicsStateGuardian) gsg, PT(GraphicsOutput) host) :
ShaderGenerator(PT(GraphicsStateGuardianBase) gsg, PT(GraphicsOutputBase) host) :
_gsg (gsg), _host (host) {
}

View File

@ -16,9 +16,8 @@
#define SHADERGENERATOR_H
#include "pandabase.h"
#include "graphicsStateGuardian.h"
#include "graphicsWindow.h"
#include "shaderGeneratorBase.h"
#include "graphicsStateGuardianBase.h"
#include "graphicsOutputBase.h"
#include "nodePath.h"
class AmbientLight;
@ -64,7 +63,7 @@ class ShaderAttrib;
class EXPCL_PANDA_PGRAPHNODES ShaderGenerator : public TypedObject {
PUBLISHED:
ShaderGenerator(PT(GraphicsStateGuardian) gsg, PT(GraphicsOutput) host);
ShaderGenerator(PT(GraphicsStateGuardianBase) gsg, PT(GraphicsOutputBase) host);
virtual ~ShaderGenerator();
virtual CPT(RenderAttrib) synthesize_shader(const RenderState *rs);
@ -138,8 +137,8 @@ protected:
void analyze_renderstate(const RenderState *rs);
void clear_analysis();
PT(GraphicsStateGuardian) _gsg;
PT(GraphicsOutput) _host;
PT(GraphicsStateGuardianBase) _gsg;
PT(GraphicsOutputBase) _host;
pmap<WCPT(RenderState), CPT(ShaderAttrib)> _generated_shaders;
public: