Page 1 of 1

Cegui with Ogre 2.1

Posted: Wed Feb 22, 2017 09:28
by kryx
Hello!

I'm trying to compile CEGUI from source for Ogre renderer (Ogre 2.1).
There is some issues with the compilation, due to API changes from Ogre I guess:

GeometryBuffer.cpp: line 98:

Code: Select all

rop.operationType = RenderOperation::OT_TRIANGLE_LIST;
should be

Code: Select all

rop.operationType = Ogre::OperationType::OT_TRIANGLE_LIST;


Renderer.cpp:

Code: Select all

d_pimpl->d_renderSystem->_setHlmsBlendblock(d_pimpl->d_hlmsBlendblock);


_setHlmsBlendBlock is not member of OgreRenderSystem.h. The function is still implemented in specific renderer (GL3PlusRenderSystem for ex), but is not more a virtual function in OgreRenderSystem.

same for _setHlmsMacroblock;
same for _setProgramsFromHlms;


Code: Select all

        hlmsCache.vertexShader = d_pimpl->d_vertexShader;
        hlmsCache.pixelShader = d_pimpl->d_pixelShader;


the 2 variables aren't available.

And finally unbindGpuProgram isn't member of OgreRenderSystem too.

Can I have some help to resolve this issues?

Thanks a lot,

Have a nice day,

Kryx

Re: Cegui with Ogre 2.1

Posted: Wed Feb 22, 2017 11:17
by kryx
found the concerned commit from Ogre:

https://bitbucket.org/sinbad/ogre/commi ... erSystem.h

Re: Cegui with Ogre 2.1

Posted: Wed Feb 22, 2017 20:25
by Ident
None of the devs currently works with a Ogre project, I know some of the users do (see the other thread about Ogre 2.1). So, I personally unfortunately cant help you.

You might also want to ask at the Ogre forum how these functions and members are to be replaced in the new version, which might bring you to a solution.

If you can help yourself with this we can merge your changes via a pull request on bitbucket and we can also comment and review on your code there, that is all I can offer atm.

Re: Cegui with Ogre 2.1

Posted: Fri May 05, 2017 06:51
by kohedlo
Greets. is come to update new pso Ogre. and we mace changes according matias goldbergs commit. port working fine


http://www.ogre3d.org/forums/viewtopic. ... 80#p536580

Re: Cegui with Ogre 2.1

Posted: Thu Oct 19, 2017 18:37
by kohedlo
ok. last port was for Opengl variant and works fine. For directx11-12 still error.

Re: Cegui with Ogre 2.1

Posted: Sun Apr 08, 2018 01:41
by crancran
@kohedlo, give the latest default branch a try. OpenGL and DX11 both should work for OGRE 2.1 now.