I need to write a bit of code which will load in a different texture type(pfm). I wanted to extend TextureManager and override the method below, but TextureManager is final. Can I request this be changed, or some advice on an alternative approach?
Cheers
Code:
public static com.jme.image.Image loadImage(String fileExt,
InputStream stream, boolean flipped) {
Thanks for your replies, I'll look into that Momoko_fan. For the moment I've just implemented my own PFMLoader and just call the static methods directly.
You could use your own class to wrap it and delegate calls out to texture manager where needed, but its a lot of work....
With eclipse is:
1) Create Class -> Choose name
2) Add a TextureManager field
3) Right click on the class -> Source -> Generate Delegate Methods
4) Select all and click ok
PFM, isn't that a floating point format? Are you planning to release the image loader when you finish? I have an HDRLoader from long ago, but I had issues getting float images working with jME2. It would be useful for jME to support some HDR formats
PFM, isn't that a floating point format? Are you planning to release the image loader when you finish? I have an HDRLoader from long ago, but I had issues getting float images working with jME2. It would be useful for jME to support some HDR formats
I'll have to ask people at work in the know on copyright issues here. It's paid work, so there's a good chance I don't own anything I write.
PFM, isn't that a floating point format? Are you planning to release the image loader when you finish? I have an HDRLoader from long ago, but I had issues getting float images working with jME2. It would be useful for jME to support some HDR formats
I'll have to ask people at work in the know on copyright issues here. It's paid work, so there's a good chance I don't own anything I write.
I've actually been given permission to hand this bit of code over.