pipeline for adding a new window type

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
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: pipeline for adding a new window type

Postby lindquist » Tue Oct 25, 2005 13:54

When you create a new imageset from a Texture, no images are defined by default. I think what you want it to define a single image taking up the entire texture area.

http://www.cegui.org.uk/api_reference/c ... t.html#a14

So something like this:

Code: Select all

Imageset* is = ...
Texture* t = is->getTexture()
is->defineImage("full",Rect(0,0,t->getWidth(), t->getHeight()), Point(0,0));

User avatar
granx
Quite a regular
Quite a regular
Posts: 80
Joined: Fri Apr 29, 2005 21:58

Re: pipeline for adding a new window type

Postby granx » Tue Oct 25, 2005 18:48

Thanks for the tip Lindquist. I assigned the Image to a static image widget, but the texture is displaying. I fear the problem is within the fundamental step of transfering data within OpenSceneGraph, my 'osgtex', to the Imageset's data. I wonder if using Imageset::loadFromMemory() was the right choice.

If we can get this working, it will be a nice example for OpenGL users of how to render a scene to texture, and then post that texture on a CEGUI widget. If you know of another example showing this, please let me know.

User avatar
Lee04
Just popping in
Just popping in
Posts: 9
Joined: Wed Jan 26, 2005 20:39
Contact:

Postby Lee04 » Tue Apr 04, 2006 11:05

@Granx: I have some urges as well for a interface like the material scheme editor. Maybe I can chip in.

Lee04


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 1 guest