Panda3D
|
00001 // Filename: graphicsOutputBase.h 00002 // Created by: drose (27May09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef GRAPHICSOUTPUTBASE_H 00016 #define GRAPHICSOUTPUTBASE_H 00017 00018 #include "pandabase.h" 00019 #include "typedWritableReferenceCount.h" 00020 00021 class Texture; 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : GraphicsOutputBase 00025 // Description : An abstract base class for GraphicsOutput, for all 00026 // the usual reasons. 00027 //////////////////////////////////////////////////////////////////// 00028 class EXPCL_PANDA_GSGBASE GraphicsOutputBase : public TypedWritableReferenceCount { 00029 PUBLISHED: 00030 virtual void set_sort(int sort)=0; 00031 virtual Texture *get_texture(int i=0) const=0; 00032 00033 public: 00034 static TypeHandle get_class_type() { 00035 return _type_handle; 00036 } 00037 static void init_type() { 00038 TypedWritableReferenceCount::init_type(); 00039 register_type(_type_handle, "GraphicsOutputBase", 00040 TypedWritableReferenceCount::get_class_type()); 00041 } 00042 virtual TypeHandle get_type() const { 00043 return get_class_type(); 00044 } 00045 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00046 00047 private: 00048 static TypeHandle _type_handle; 00049 00050 friend class GraphicsPipe; 00051 friend class GraphicsEngine; 00052 friend class DisplayRegion; 00053 }; 00054 00055 #include "graphicsOutputBase.I" 00056 00057 #endif