How to generate RGBA image ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to generate RGBA image ?

eclesia
Hello,

I'm developing a general library : https://bitbucket.org/Eclesia/un/wiki/Home
so far so good

but now I would like to start generate big images and retrieve then. from what I understand I must render my scene in a texture, but after ? how do I retrieve it ? no need to be a bufferedimage, a plain bytearray is enough.
(in fact the second solution is better for me since a avoid java api)

any example somewhere ?

thanks
adi
Reply | Threaded
Open this post in threaded view
|

Re: How to generate RGBA image ?

adi
What is with a simple raw-format?
Reply | Threaded
Open this post in threaded view
|

Re: How to generate RGBA image ?

gouessej
Administrator
In reply to this post by eclesia
Hi

I would use a PBO to do that, see FBObject class and I assume there is at least a JUnit test for this feature.

Edit.: You should fix your (few) spelling mistakes in the home page of your project and "authors abandon all their rights" is a bit frightening, I would not abandon my paternity rights and it would not be the best way to ensure free open source softwares will remain free open source forever, there is the GPL for that.
Julien Gouesse | Personal blog | Website