New Texture commands

24 views
Skip to first unread message

iarwain

unread,
Apr 26, 2013, 5:52:37 AM4/26/13
to orx...@googlegroups.com
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

iarwain

unread,
Sep 25, 2014, 4:30:52 PM9/25/14
to orx...@googlegroups.com
Hi all,

Actually a shortcut has been added to Texture.Save a few weeks ago. Now one can directly type:

texture.save ProcText to obtain the same result as the former example.

Cheers,

Rom
Reply all
Reply to author
Forward
0 new messages