[Solved] Ogre Renderer and changes to Ogre::SharedPtr

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

mmatt
Just popping in
Just popping in
Posts: 3
Joined: Sun Jul 07, 2013 13:01

[Solved] Ogre Renderer and changes to Ogre::SharedPtr

Postby mmatt » Mon Jul 15, 2013 18:00

Hello,

Firstly, since this is my first post, thanks for the great library everyone! :D

The CEGUI development branch won't currently compile against Ogre 1.9.

I've patched my copy as below, which seems to have resolved it.

Code: Select all

diff -r 018eeb3d6879 cegui/include/CEGUI/RendererModules/Ogre/Renderer.h
--- a/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h   Sun Jul 14 10:29:22 2013 +0100
+++ b/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h   Mon Jul 15 18:58:19 2013 +0100
@@ -54,7 +54,9 @@
 class Root;
 class RenderSystem;
 class RenderTarget;
-class TexturePtr;
+class Texture;
+template<class T> class SharedPtr;
+typedef SharedPtr<Texture> TexturePtr;
 class Matrix4;
 }
 
diff -r 018eeb3d6879 cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h
--- a/cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h   Sun Jul 14 10:29:22 2013 +0100
+++ b/cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h   Mon Jul 15 18:58:19 2013 +0100
@@ -11,7 +11,9 @@
 namespace Ogre
 {
     class RenderTarget {};
-    class TexturePtr {};
+    class Texture {};
+    template<class T> class SharedPtr {};
+    typedef SharedPtr<Texture> TexturePtr;
     class Matrix4 {};
 }

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Ogre Renderer and changes to Ogre::SharedPtr

Postby Ident » Sat Jan 04, 2014 14:57

Fixed in 0.8.3
Thank you!
CrazyEddie: "I don't like GUIs"


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests