csplugincommon/rendermanager/posteffectssupport.h Source File (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

csplugincommon/rendermanager/posteffectssupport.h
Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2010 by Frank Richter
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2 of the License, or (at your option) any later version.
    00008
    00009     This library is distributed in the hope that it will be useful,
    00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012     Library General Public License for more details.
    00013
    00014     You should have received a copy of the GNU Library General Public
    00015     License along with this library; if not, write to the Free
    00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00017 */
    00018
    00019 #ifndef __CS_CSPLUGINCOMMON_RENDERMANAGER_POSTEFFECTSSUPPORT_H__
    00020 #define __CS_CSPLUGINCOMMON_RENDERMANAGER_POSTEFFECTSSUPPORT_H__
    00021
    00026 #include "iengine/rendermanager.h"
    00027
    00028 #include "csplugincommon/rendermanager/posteffects.h"
    00029
    00030 namespace CS
    00031 {
    00032   namespace RenderManager
    00033   {
    00044     class CS_CRYSTALSPACE_EXPORT PostEffectsSupport : public virtual iRenderManagerPostEffects
    00045     {
    00046       CS::RenderManager::PostEffectLayersParser* postEffectsParser;
    00047     protected:
    00048       CS::RenderManager::PostEffectManager       postEffects;
    00049     public:
    00050       PostEffectsSupport();
    00051       virtual ~PostEffectsSupport();
    00052
    00060       void Initialize (iObjectRegistry* objectReg, const char* configKey);
    00061
    00064       void ClearLayers() { postEffects.ClearLayers(); }
    00065       bool AddLayersFromDocument (iDocumentNode* node);
    00066       bool AddLayersFromFile (const char* filename);
    00068     };
    00069
    00070   } // namespace RenderManager
    00071 } // namespace CS
    00072
    00073 #endif // __CS_CSPLUGINCOMMON_RENDERMANAGER_POSTEFFECTSSUPPORT_H__