mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix couple of circular dependencies, eliminate ShaderGeneratorBase
This commit is contained in:
parent
159026571b
commit
4e067a74c1
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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();
|
||||
|
@ -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"
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include "lightReMutexHolder.h"
|
||||
#include "lightMutexHolder.h"
|
||||
#include "thread.h"
|
||||
#include "shaderGeneratorBase.h"
|
||||
#include "renderAttribRegistry.h"
|
||||
#include "py_panda.h"
|
||||
|
||||
|
@ -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) {
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user