00001 00002 // 00003 // renderenvironment 00004 // 00005 // Copyright (c) 2004 Bioware Copr. 00006 // 00007 // The source code included in this file is confidential, 00008 // secret, or propietary information of Bioware Corp. It 00009 // may not be used in whole or in part without express 00010 // written permission from Bioware Corp. 00011 // 00013 // 00017 // 00019 // 00020 // Created On: 11:12:2008 11:04 00021 // 00023 00024 #ifndef _RENDERENVIRONMENT_H 00025 #define _RENDERENVIRONMENT_H 00026 00027 #include <eclipseray/yrtypes.h> 00028 00030 // 00035 // 00051 // NOTES: 00052 // - RenderEnvironment objects used to be python objects (EclipseObject-derived) 00053 // as well, but it was simpler to keep one single environment as a singleton 00054 // since they are really only used to create other object types. 00055 // 00057 class RenderEnvironment 00058 { 00059 00060 public: 00061 00062 // ------------------------------------------------------------------------- 00063 // Initialization and shutdown 00064 // ------------------------------------------------------------------------- 00065 00070 static void Start(); 00071 00076 static void Stop(); 00077 00078 00079 // ------------------------------------------------------------------------- 00080 // Utilities 00081 // ------------------------------------------------------------------------- 00082 00089 static YRRenderEnvironment* GetREObject(){ return m_pEnvironment; } 00090 00091 private: 00092 00093 static YRRenderEnvironment* m_pEnvironment; 00094 static bool m_bInit; 00095 }; 00096 00097 00098 00099 00100 00101 00102 #endif