GLUS
Functions
glus_screenshot.c File Reference
#include "GL/glus.h"

Functions

GLUSboolean GLUSAPIENTRY glusScreenshotUseTga (GLUSint x, GLUSint y, const GLUStgaimage *screenshot)
 Creates a screenshot of the current back buffer and uses the given image and its dimension. More...
 
GLUSboolean GLUSAPIENTRY glusScreenshotCreateTga (GLUSint x, GLUSint y, GLUSsizei width, GLUSsizei height, GLUStgaimage *screenshot)
 Creates a screenshot of the current back buffer and creates the image automatically. More...
 

Function Documentation

GLUSboolean GLUSAPIENTRY glusScreenshotCreateTga ( GLUSint  x,
GLUSint  y,
GLUSsizei  width,
GLUSsizei  height,
GLUStgaimage screenshot 
)

Creates a screenshot of the current back buffer and creates the image automatically.

Parameters
xThe lower left x coordinate from the screenshot rectangle.
yThe lower left y coordinate from the screenshot rectangle.
widthThe width of the screenshot rectangle.
heightThe height of the screenshot rectangle.
screenshotThe image structure to store the pixel data.
GLUSboolean GLUSAPIENTRY glusScreenshotUseTga ( GLUSint  x,
GLUSint  y,
const GLUStgaimage screenshot 
)

Creates a screenshot of the current back buffer and uses the given image and its dimension.

Parameters
xThe lower left x coordinate from the screenshot rectangle.
yThe lower left y coordinate from the screenshot rectangle.
screenshotThe image structure to store the pixel data.