can't compile OGRE Renderer

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: can't compile OGRE Renderer

Postby CrazyEddie » Tue Feb 08, 2005 14:17

Okay, a little sooner than anticipated I have made the changes to support resource groups. Currently available as a patch for testing:
Get the patch here.

The patch adds a 'ResourceGroup' attribute to any XML element that loads a file (be it a scheme, font (xml), font (ttf), imageset or texture). There is a default group that can be set in the resource provider, and is used whenever the group used is "", in the event that the default is set to "" also, then the system, for Ogre, will use the default Ogre group. The default group can also be specified in the CEGUI config xml file (other files specified in the config are loaded from this default group). The .xsd schema files for each xml file are loaded from the same group as the xml file being loaded (this could mean having more than one copy of the .xsd file, I wasn't sure what to do here - it would possibly better to always have the .xsd files loaded from whatever is set as the default group).

There are quite a few interface changes in this patch, so some peoples code will probably break if/when this gets committed; but I think the end result is definately worth it.

Oh, and don't forget that you'll need to copy the updated .xsd files over from XMLRefSchema to make use of the new attribute.

Let me know what problems you get :)

CE

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: can't compile OGRE Renderer

Postby spannerman » Tue Feb 08, 2005 21:39

Absolutely brilliant, worked like a charm first time :)

I tested it on the Particle Editor; all I had to do to get at the OGRE texture was this:

Code: Select all

CEGUI::Texture* myTexture = ...->getCurrentRenderer()->createTexture(textureName, "myResourceGroupName");


Thanks for this, and the very speedy implementation of it! This deserves three mallets :hammer: :hammer: :hammer:

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: can't compile OGRE Renderer

Postby CrazyEddie » Wed Feb 09, 2005 09:20

Cool, glad it's working correctly ;)

I'll hold off committing this until tomorrow, just in case something rears it head (which always seems to happen).

:hammer:

User avatar
mac
Just popping in
Just popping in
Posts: 16
Joined: Wed Jan 12, 2005 12:06

Re: can't compile OGRE Renderer

Postby mac » Fri Feb 11, 2005 09:01

Have you commited the patch? Or is it just the cvs delay?

Cheers, mac

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: can't compile OGRE Renderer

Postby CrazyEddie » Fri Feb 11, 2005 10:08

Sorry, I forgot all about this yesterday :oops:

I'll commit this within the hour.

CE

User avatar
mac
Just popping in
Just popping in
Posts: 16
Joined: Wed Jan 12, 2005 12:06

Re: can't compile OGRE Renderer

Postby mac » Fri Feb 11, 2005 10:35

That was quick...
Thanks very much - and don't be in such a hurry! :)

Cheers, mac

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: can't compile OGRE Renderer

Postby CrazyEddie » Fri Feb 11, 2005 11:04

Yeah, today is my day off from CEGUI too :lol:

Anyway, release-0_2_0 and HEAD have been updated, allow a while for anon CVS to catch up; the snapshot donloads are current if you need this code now.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests