From 5a3dd8d0c369149b970b44ddea0fcae0112c66ae Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 2 Jun 2009 10:03:10 +0000 Subject: [PATCH] Eliminate ShaderGeneratorBase --- panda/src/pgraph/shaderGeneratorBase.I | 14 ------ panda/src/pgraph/shaderGeneratorBase.cxx | 35 --------------- panda/src/pgraph/shaderGeneratorBase.h | 54 ------------------------ 3 files changed, 103 deletions(-) delete mode 100644 panda/src/pgraph/shaderGeneratorBase.I delete mode 100644 panda/src/pgraph/shaderGeneratorBase.cxx delete mode 100644 panda/src/pgraph/shaderGeneratorBase.h diff --git a/panda/src/pgraph/shaderGeneratorBase.I b/panda/src/pgraph/shaderGeneratorBase.I deleted file mode 100644 index df5f6bb6eb..0000000000 --- a/panda/src/pgraph/shaderGeneratorBase.I +++ /dev/null @@ -1,14 +0,0 @@ -// Filename: shaderGeneratorBase.I -// Created by: drose (05Nov08) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - diff --git a/panda/src/pgraph/shaderGeneratorBase.cxx b/panda/src/pgraph/shaderGeneratorBase.cxx deleted file mode 100644 index 87266caa73..0000000000 --- a/panda/src/pgraph/shaderGeneratorBase.cxx +++ /dev/null @@ -1,35 +0,0 @@ -// Filename: shaderGeneratorBase.cxx -// Created by: drose (05Nov08) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - -#include "shaderGeneratorBase.h" - -TypeHandle ShaderGeneratorBase::_type_handle; - -//////////////////////////////////////////////////////////////////// -// Function: ShaderGeneratorBase::Constructor -// Access: Protected -// Description: -//////////////////////////////////////////////////////////////////// -ShaderGeneratorBase:: -ShaderGeneratorBase() { -} - -//////////////////////////////////////////////////////////////////// -// Function: ShaderGeneratorBase::Destructor -// Access: Published, Virtual -// Description: -//////////////////////////////////////////////////////////////////// -ShaderGeneratorBase:: -~ShaderGeneratorBase() { -} diff --git a/panda/src/pgraph/shaderGeneratorBase.h b/panda/src/pgraph/shaderGeneratorBase.h deleted file mode 100644 index db54812d55..0000000000 --- a/panda/src/pgraph/shaderGeneratorBase.h +++ /dev/null @@ -1,54 +0,0 @@ -// Filename: shaderGeneratorBase.h -// Created by: drose (05Nov08) -// -//////////////////////////////////////////////////////////////////// -// -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." -// -//////////////////////////////////////////////////////////////////// - -#ifndef SHADERGENERATORBASE_H -#define SHADERGENERATORBASE_H - -#include "pandabase.h" -#include "typedWritableReferenceCount.h" - -//////////////////////////////////////////////////////////////////// -// Class : ShaderGeneratorBase -// Description : This is the abstract base class for ShaderGenerator. -//////////////////////////////////////////////////////////////////// -class EXPCL_PANDA_PGRAPH ShaderGeneratorBase : public TypedWritableReferenceCount { -protected: - ShaderGeneratorBase(); - -PUBLISHED: - virtual ~ShaderGeneratorBase(); - virtual CPT(RenderAttrib) synthesize_shader(const RenderState *rs)=0; - -public: - static TypeHandle get_class_type() { - return _type_handle; - } - static void init_type() { - TypedWritableReferenceCount::init_type(); - register_type(_type_handle, "ShaderGeneratorBase", - TypedWritableReferenceCount::get_class_type()); - } - virtual TypeHandle get_type() const { - return get_class_type(); - } - virtual TypeHandle force_init_type() {init_type(); return get_class_type();} - - private: - static TypeHandle _type_handle; -}; - -#include "shaderGeneratorBase.I" - -#endif // SHADERGENERATORBASE_H -