Alpha testing and getting textures
Posted: Fri Nov 10, 2006 02:18
OK, so I require alpha tested buttons, so that I can have non-square buttons. I'm quite happy to fluff around in the source and hack in the bits that I want (at least for now), and I've written my own renderer, so the platform specific parts of accessing a texture and figuring out an alpha value under the mouse will be fine, but I do have a problem that is getting in the way.
In my buttons isHit() method that I am overriding, I need to get access to the CEGUI texture that will be used when the button is rendered. How on earth do I do that? The texture access seems to be buried under layers of image sets and looknfeels and schemes and falagard and everything, and I'm slightly lost as to how to figure out which actual texture will be used on render
Any ideas?
In my buttons isHit() method that I am overriding, I need to get access to the CEGUI texture that will be used when the button is rendered. How on earth do I do that? The texture access seems to be buried under layers of image sets and looknfeels and schemes and falagard and everything, and I'm slightly lost as to how to figure out which actual texture will be used on render
Any ideas?