SO3Engine
|
SO3RenderToTexture.cpp
Go to the documentation of this file.
25SRenderToTexture::SRenderToTexture(SScene* parent, const std::string& rttName, SCamera* povCamera) : SNode(parent, rttName, SNode::RENDER_TO_TEXTURE_ID)
27 //if(!SRoot::getSingleton().GetOgreRenderSystem()->getCapabilities()->hasCapability(Ogre::RSC_???))
104void SRenderToTexture::SetMaterial(SMaterial* targetMaterial, const int& targetTechnique, const int& targetPass, const int& targetTextureUnit)
267 rttTexture = Ogre::TextureManager::getSingleton().createManual(name + "_texture", SO3_INTERNAL_DYNAMIC_READABLE_RESOURCE_GROUP, Ogre::TEX_TYPE_2D, newSize, newSize, 0, rttformat, Ogre::TU_RENDERTARGET, this);
275 // addViewport function modify the camera ratio, so store it and reapply it once this function is finished.
289 Ogre::LogManager::getSingleton().getDefaultLog()->logMessage("An exception has occurred: "+ e.getDescription());
298 // IMPORTANT! Do not forget to detach the target, otherwise, the texture will not be deleted cause TexturePtr ref count still will be > 1
394SCompositor* SRenderToTexture::CreateCompositor(const std::string& newCompositorName, const std::string& newSchemeName)
444 OGRE_EXCEPT(Ogre::Exception::ERR_DUPLICATE_ITEM, "Can not add Compositor named \"" + name + "\", an element with the same name already exist!", "SRenderToTexture::AddCompositor");
Definition SO3Camera.h:43
Definition SO3Compositor.h:43
Definition SO3Material.h:43
Ogre::MaterialPtr getOgreMaterialPointer()
Definition SO3Material.cpp:157
Definition SO3NodeScol.h:43
SCompositor * CreateCompositor(const std::string &newCompositorName, const std::string &newSchemeName)
Definition SO3RenderToTexture.cpp:394
void SetEnable(const bool &newState)
Definition SO3RenderToTexture.cpp:182
virtual void windowResized(Ogre::RenderWindow *rw)
Definition SO3RenderToTexture.cpp:346
void RemoveCompositor(SCompositor *existingCompositor)
Definition SO3RenderToTexture.cpp:448
virtual void postViewportUpdate(const Ogre::RenderTargetViewportEvent &evt)
Definition SO3RenderToTexture.cpp:367
void SetAutoUpdate(const bool &newAutoUpdateValue)
Definition SO3RenderToTexture.cpp:210
virtual void loadResource(Ogre::Resource *resource)
Definition SO3RenderToTexture.cpp:334
void AddCompositor(SCompositor *existingCompositor)
Definition SO3RenderToTexture.cpp:433
void SetMaterial(SMaterial *targetMaterial, const int &targetTechnique, const int &targetPass, const int &targetTextureUnit)
Definition SO3RenderToTexture.cpp:104
void SetSize(const unsigned int &newSize)
Definition SO3RenderToTexture.cpp:73
virtual bool frameEnded(const Ogre::FrameEvent &evt)
Definition SO3RenderToTexture.cpp:324
const SCompositorMap & GetCompositorList() const
Definition SO3RenderToTexture.cpp:389
void DeleteCompositor(SCompositor *existingCompositor)
Definition SO3RenderToTexture.cpp:413
void SetMaterialScheme(std::string scheme)
Definition SO3RenderToTexture.cpp:137
virtual void preViewportUpdate(const Ogre::RenderTargetViewportEvent &evt)
Definition SO3RenderToTexture.cpp:351
SCompositor * GetCompositor(const std::string &compositorName)
Definition SO3RenderToTexture.cpp:380
virtual bool frameStarted(const Ogre::FrameEvent &evt)
Definition SO3RenderToTexture.cpp:309
bool GetRttPixelFormat(Ogre::PixelFormat &format, bool alpha=false, bool floattex=false)
Definition SO3Root.cpp:650
void RemoveGeneratedMaterial(Ogre::Material *mat)
Definition SO3Root.cpp:2343
Definition SO3Scene.h:125
Definition SO3DataScol.h:38
std::unordered_map< std::string, SCompositor * > SCompositorMap
Definition SO3Prerequisites.h:267
Generated by 1.9.8