CEGUI on OGRE 2.1
Posted: Sun Mar 15, 2015 22:01
Hi all,
I am currently trying to port my project to OGRE 2.1, even though this version is still a work in progress.
As there were a lot of important changes between OGRE 2.0 and OGRE 2.1, the CEGUI OGRE renderer need some adjustments to work on OGRE 2.1.
For now, I have successfully ported CEGUI 0.8.4 to OGRE 2.1 on the OpenGL3+ renderer with these changes:
- Some OGRE classes are now in a "v1" namespace => renaming needed in CEGUI
- All the functions that were used to pass the texture / rendering / blend options to the render system do not exist any longer => I used the new HLMS blocks to pass these options
- The scissors test has been moved to another class => changes required to use it
- The GL3+ shaders were not "allowed" in the CEGUI OGRE renderer => I allowed them for OGRE 2.1.
However, atm CEGUI is only working on the OpenGL3+ renderer in OGRE 2.1. I still have to update the shaders for them to be compatible with the D3D11 renderer.
Can I upload the source codes of the updated CEGUI OGRE renderer anywhere? Or should I make a pull request?
I have put all my changes between #ifdef macros, but I did not test it on a previous OGRE version, and I do not know if my code is "good" enough to be merged in the 0.8 branch...
But as this porting has taken me a certain amount of time (and headaches ), I would be glad if other persons wanting to use CEGUI on OGRE 2.1 could benefit from my work
PS: I have seen that there has been a lot of changes lately in the CEGUI OGRE renderer in the default branch, so a porting work will be needed again to make the default branch compatible with OGRE 2.1.
I am currently trying to port my project to OGRE 2.1, even though this version is still a work in progress.
As there were a lot of important changes between OGRE 2.0 and OGRE 2.1, the CEGUI OGRE renderer need some adjustments to work on OGRE 2.1.
For now, I have successfully ported CEGUI 0.8.4 to OGRE 2.1 on the OpenGL3+ renderer with these changes:
- Some OGRE classes are now in a "v1" namespace => renaming needed in CEGUI
- All the functions that were used to pass the texture / rendering / blend options to the render system do not exist any longer => I used the new HLMS blocks to pass these options
- The scissors test has been moved to another class => changes required to use it
- The GL3+ shaders were not "allowed" in the CEGUI OGRE renderer => I allowed them for OGRE 2.1.
However, atm CEGUI is only working on the OpenGL3+ renderer in OGRE 2.1. I still have to update the shaders for them to be compatible with the D3D11 renderer.
Can I upload the source codes of the updated CEGUI OGRE renderer anywhere? Or should I make a pull request?
I have put all my changes between #ifdef macros, but I did not test it on a previous OGRE version, and I do not know if my code is "good" enough to be merged in the 0.8 branch...
But as this porting has taken me a certain amount of time (and headaches ), I would be glad if other persons wanting to use CEGUI on OGRE 2.1 could benefit from my work
PS: I have seen that there has been a lot of changes lately in the CEGUI OGRE renderer in the default branch, so a porting work will be needed again to make the default branch compatible with OGRE 2.1.