fixed sized texture on staticImage

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

overlord
Just popping in
Just popping in
Posts: 7
Joined: Thu May 31, 2007 19:21

fixed sized texture on staticImage

Postby overlord » Tue Jun 05, 2007 18:26

Is it possible to have a texture in a staticImage that's not
scaled at all?

I have some textures of varying sizes, that i want to put on
a static image. it works fine in DX9 but in opengl i think the
non power of 2 texture size is screwing things up. so i wanted
to load the texture as a size of 2 but just crop it by making
my static image a fixed size. but right now if i shrink the static
image it just scales the entire texture down instead of clipping it.

thanks,
overlord

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Sat Jun 09, 2007 11:36

The StaticImage has two propreties: HorzFormating and VertFormating:
http://www.cegui.org.uk/wiki/index.php/ ... taticImage

I think they are what you need.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests