OpenGL Rendertarget Texture flip

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Kelshan
Posts: 5
Joined: Mon Aug 22, 2005 5:49 pm

OpenGL Rendertarget Texture flip

Post by Kelshan »

Hello World! ;)

I have a little "problem" regarding dynamic (aka RenderTarger) textures using the OpenGL renderer, which I use to dynamically upload textures created by a webbrowser component (webkit ;)). This texture is rendered by an GUIImage. So far so good and already working.

The first problem is, that using Irrlicht's rendertarget textures flips the texture upside down when calling "ITexture->lock()", but because the texture that is created by the browser is already "flipped", it's upside-down again after that. So I have to flip it by hand first, which I think is rather inefficient.

The second problem is, that I would prefer to only copy the parts of the browser-texture, which really needs to be re-drawn (dirty rectangle). But with getting a "flip" whenever I'm locking the texture, this is not possible.

So is there any way of deactivating these flipping behavior in Irrlicht for a certain texture?
Post Reply