libigl v2.5.0
Loading...
Searching...
No Matches
igl::opengl::stb Namespace Reference

Functions

bool render_to_file (const std::string filename, const int width, const int height, const bool alpha=true)
 Render current open GL image to an image file.
std::thread render_to_file_async (const std::string filename, const int width, const int height, const bool alpha=true)
 Render current open GL image to file using a separate thread.

Function Documentation

◆ render_to_file()

bool igl::opengl::stb::render_to_file ( const std::string filename,
const int width,
const int height,
const bool alpha = true )

Render current open GL image to an image file.

Parameters
[in]filenamepath to output file
[in]widthwidth of scene and resulting image
[in]heightheight of scene and resulting image
[in]alphawhether to include alpha channel
Returns
true only if no errors occurred
See also
igl::stb::write_image, render_to_file_async

◆ render_to_file_async()

std::thread igl::opengl::stb::render_to_file_async ( const std::string filename,
const int width,
const int height,
const bool alpha = true )

Render current open GL image to file using a separate thread.

Parameters
[in]filenamepath to output image file
[in]widthwidth of scene and resulting image
[in]heightheight of scene and resulting image
[in]alphawhether to include alpha channel
Returns
true only if no errors occurred
See also
render_to_file