Hey all,
I recently added some Texture commands: Texture.Create, Texture.Delete, Texture.Find & Texture.Save.
I can think of two main uses for it:
- create runtime-only textures on the fly via commands in config, instead of doing it via code (for render-to-texture/compositing, for example)
- saving a texture from memory to disk via the console, very helpful when debugging compositing or any runtime texture modification.
Ex: I have a texture named ProcText, that is either the target of a viewport or has been modified on-the-fly via a call to orxDisplay_SetBitmapData().
I can then execute in the console:
> texture.find ProcText
texture.save <
This will save a ProcText.png (png is the default extension but you can specify a different file name, it's just optional) that you can then inspect with any image viewer.
Cheers!
Rom