SaveTextureImage Data Member Function

Saves a <Texture> that has been bound on the GPU.

Prototype

int32 SaveTextureImage( Render3D p_oRender, string p_sFilename )

Parameters

Parameter Type Parameter Name Documentation
<Render3D>p_oRenderA pointer to the Render3D object representing the GL context in which the <Texture> is actively bound.
stringp_sFilenameA fully qualified absolute path to which to save the <Texture>. For example: "C:\\my folder\\my_file.png" or "C:\\my folder\\my_file.image". Note that you can only save certain pixel formats as .PNG images. 888_RGB, 8888_ARGB, 1555_ARGB, 4444_ARGB, 565_RGB. Other formats such as FP32 of UI8x4 must be saved with the .IMAGE file extension.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.