Saves a <Texture> that has been bound on the GPU.
int32 SaveTextureImage( Render3D p_oRender, string p_sFilename )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Render3D> | p_oRender | A pointer to the Render3D object representing the GL context in which the <Texture> is actively bound. |
string | p_sFilename | A 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. |
None published. Please look for an example in the Scenome Scripting Language code base.