@Paul :
I think there are some issues with RenderToImage()
1) [win/android] SetRenderToImage() and drawbox()/DrawEllipse()/DrawLine()
I have "blue" square on the box and the ellipse with this code :
SetWindowTitle( "RenderToImage - drawbox" )
SetWindowSize( 1024, 768, 0 )
SetVirtualResolution( 1024, 768 )
SetClearColor(80,80,80)
SetScissor(0,0,0,0)
CreateRenderImage(1,1024,1024,0,0)
SetRenderToImage(1,0)
Drawbox(0,0,500,500,0,0,-1,-1,1)
DrawEllipse(800,100,100,80,0,-1,1)
SetRenderToScreen()
spr = CreateSprite(1)
SetSpriteTransparency(spr,1)
do
sync()
loop
With that code, I have this result :
Another result, there are some white lines inside the box or the ellipse (on my appli, it should a simple gradient) :
2)[win/android] SetRenderToimage() and sprite (with alpha)
here is a simple image with the issue :
Test :
Simply load an image and draw it as sprite on a renderToImage
3)[Android] SetRenderToImage() and Home key
If we use SetrenderToImage() and touch the home key (on android), the Image (made with CreateRenderToImage()) is cleared and bugged (it become a black image,and we can't draw on it or clear it).
Simple test : on android, run your bloom shader example, and touch the homekey, then touch the "opened application key" :
Your image created with CreateRenderToImage() become black and unusable.
I have tried to use GetResumed and create a new image, but in some case, we have to keep the previous Image created with CreateRenderToImage() (for exemple, on a painting appli, photo appli...)
4)[Android] SetRenderToImage() and GetChosenImage()
It's the same issue as describe at 3)
If we use a Image created with CreateREnderToImage() and want to draw a picture on it (photo for example) loaded with GetChosenImage(), the Image created with CreateRenderToImage()isn't working after choosing the picture.
It became black and it's impossible to clear it.
I hope those explications are usefull. I don't know if that's a bug or if only I have to do some thing to correct that issue.
http://www.dracaena-studio.com