I'd appreciate your help on the following issue....
I am rendering some dynamic content to the texture of a BrumeSquareTextured. The texture was created with :
- Code: Select all
_texture = new BrumeTexture(engine, Guid.NewGuid().ToString(), w, h, 1, BrumeTextureParams.FORMAT_X8R8G8B8);
The shape of the content is not filling the entire texture (is non-rectangular). What I want to achieve is to make the areas outside the shape transparent. I've tried a lot of different things (e.g. using two textures) but can't seem to find the right combination. I also tried loading a PNG with correct transparency and then rendering over it (using Graphics gc = _texture.GetGraphics()). But in this case Brume reports an error about the texture format being incorrect for GDI rendering (Brume error : Brume.BrumeException: DirectX9Texture.GetGraphics() : texture format (A8R8G8B8) not supported with DC (you must use R5G6B5, X1R5G5B5, R8G8B8 or X8R8G8B8))
Maybe you have some clues?
Thanks a lot and take care!!
Bart van Haaff