Example #1
0
        ////! Return the system StringTranscoder object
        //static const StringTranscoder& getStringTranscoder();

        //! Internal CEGUI version validation function.
        //static void performVersionTest(const int expected, const int received, const String& func);

        /*************************************************************************
        *       Implementation Functions
        *************************************************************************/
        /*!
         * \brief
         * Construct a new System object
         *
         * \param renderer
         * Reference to a valid Renderer object that will be used to render GUI
         * imagery.
         *
         * \param resourceProvider
         * Pointer to a ResourceProvider object, or NULL to use whichever default
         * the Renderer provides.
         *
         * \param xmlParser
         * Pointer to a valid XMLParser object to be used when parsing XML files,
         * or NULL to use a default parser.
         *
         * \param imageCodec
         * Pointer to a valid ImageCodec object to be used when loading image
         * files, or NULL to use a default image codec.
         *
         * \param scriptModule
         * Pointer to a ScriptModule object.  may be NULL for none.
         *
         * \param configFile
         * String object containing the name of a configuration file to use.
         *
         * \param logFile
         * String object containing the name to use for the log file.
         */
        //protected System(Renderer renderer, ResourceProvider* resourceProvider,
        //       XMLParser* xmlParser, ImageCodec* imageCodec,
        //       ScriptModule* scriptModule, const String& configFile,
        //       const String& logFile);

        protected System(Renderer renderer,
                         ResourceProvider resourceProvider,
                         XMLParser xmlParser,
                         ImageCodec imageCodec,
                         string configFile, string logFile)
        {
            d_renderer            = renderer;
            d_resourceProvider    = resourceProvider;
            d_ourResourceProvider = false;
            d_clipboard           = new Clipboard();
            //TODO: d_scriptModule(scriptModule),
            d_xmlParser    = xmlParser;
            d_ourXmlParser = false;
            //TODO: d_parserModule(0),
            d_imageCodec    = imageCodec;
            d_ourImageCodec = false;
            //TODO: d_imageCodecModule(0),
            d_ourLogger = Logger.Instance == null;
            d_customRenderedStringParser = null;
        }
Example #2
0
        ///*!
        //\brief
        //    Set the image codec to use from an existing image codec.

        //    In this case the renderer does not take the ownership of the image codec
        //    object.

        //\param codec
        //    The ImageCodec object to be used.
        //*/
        public void SetImageCodec(ImageCodec codec)
        {
            throw new NotImplementedException();
        }