image stamping - batches of StaticImages not there

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
paddy
Not too shy to talk
Not too shy to talk
Posts: 30
Joined: Wed Jan 12, 2005 12:06

image stamping - batches of StaticImages not there

Postby paddy » Tue Sep 20, 2005 19:32

Ok, here is my current problem:

I've gotten a nice layout setup, I have a custom panel that shows a dynamic texture with all my primative 2D drawing going on in it, and its running and drawing lines and curves with a good framerate (using ogre).

My panel needs rulers, so I decided to use CEGUI widgets for that. I added a static image bar across the top and down the side, for a horizontal and vertical ruler. What I want to do now, is "stamp" my graphical glyphs (for numbers, rule marker, and dm/m/km) and I got that to work creating/deleting child staticImages (testing on just the rule markers), but it crawls at a very low rate.


I'd use a text widget, but I'd still have to create a new one per rule, since I need to control where the text starts on a per pixel basis, and I need both horizontal and vertical text.


The only other option that I know of so far, is copying the raw pixel data to the points on my panel's texture, after the drawing routines are done. I'd like to avoid that if possible.

What would be ideal, is some way where I could change the image on the static image that is the ruler, by "stamping" images on it, without the overhead of creating and destroying whole window widgets.

Is there any way to do this within the CEGUI API? If not, I'll look into my texture copying options.

btw, congrats on the 0.4 release :pint:

TIA
Paddy

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

Re: image stamping - batches of StaticImages not there

Postby CrazyEddie » Wed Sep 21, 2005 10:24

I think the only way to do this would be to have something custom made to allow you to assign multiple custom images.

Falagard could probably do it, else you need to code some kind of simple custom widget.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 14 guests