GLUS
|
#include "GL/glus.h"
Functions | |
GLUSvoid | _glusImageGatherSamplePoints (GLUSint sampleIndex[4], GLUSfloat sampleWeight[2], const GLUSfloat st[2], GLUSint width, GLUSint height, GLUSint stride) |
GLUSboolean | _glusFileCheckRead (FILE *f, size_t actualRead, size_t expectedRead) |
GLUSboolean | _glusFileCheckWrite (FILE *f, size_t actualWrite, size_t expectedWrite) |
GLUSboolean GLUSAPIENTRY | glusImageCreateHdr (GLUShdrimage *hdrimage, GLUSint width, GLUSint height, GLUSint depth, GLUSenum format) |
Creates a HDR image. More... | |
GLUSboolean GLUSAPIENTRY | glusImageLoadHdr (const GLUSchar *filename, GLUShdrimage *hdrimage) |
Loads a HDR file. More... | |
GLUSboolean GLUSAPIENTRY | glusImageSaveHdr (const GLUSchar *filename, const GLUShdrimage *hdrimage) |
Saves a HDR file. More... | |
GLUSvoid GLUSAPIENTRY | glusImageDestroyHdr (GLUShdrimage *hdrimage) |
Destroys the content of a HDR structure. More... | |
GLUSboolean GLUSAPIENTRY | glusImageSampleHdr2D (GLUSfloat rgb[3], const GLUShdrimage *hdrimage, const GLUSfloat st[2]) |
Samples a RGB color value from a HDR 2D image. More... | |
GLUSboolean _glusFileCheckRead | ( | FILE * | f, |
size_t | actualRead, | ||
size_t | expectedRead | ||
) |
GLUSboolean _glusFileCheckWrite | ( | FILE * | f, |
size_t | actualWrite, | ||
size_t | expectedWrite | ||
) |
GLUSvoid _glusImageGatherSamplePoints | ( | GLUSint | sampleIndex[4], |
GLUSfloat | sampleWeight[2], | ||
const GLUSfloat | st[2], | ||
GLUSint | width, | ||
GLUSint | height, | ||
GLUSint | stride | ||
) |
GLUSboolean GLUSAPIENTRY glusImageCreateHdr | ( | GLUShdrimage * | hdrimage, |
GLUSint | width, | ||
GLUSint | height, | ||
GLUSint | depth, | ||
GLUSenum | format | ||
) |
Creates a HDR image.
hdrimage | The structure to fill the HDR data. |
width | Width of the image. |
height | Height of the image. |
depth | Depth of the image. |
format | Format of the image. |
GLUSvoid GLUSAPIENTRY glusImageDestroyHdr | ( | GLUShdrimage * | hdrimage | ) |
Destroys the content of a HDR structure.
Has to be called for freeing the resources.
hdrimage | The HDR file structure. |
GLUSboolean GLUSAPIENTRY glusImageLoadHdr | ( | const GLUSchar * | filename, |
GLUShdrimage * | hdrimage | ||
) |
Loads a HDR file.
filename | The name of the file to load. |
hdrimage | The structure to fill the HDR data. |
GLUSboolean GLUSAPIENTRY glusImageSampleHdr2D | ( | GLUSfloat | rgb[3], |
const GLUShdrimage * | hdrimage, | ||
const GLUSfloat | st[2] | ||
) |
Samples a RGB color value from a HDR 2D image.
Sampling uses a bilinear filter.
rgb | The resulting, sampled RGB color value. |
hdrimage | The HDR image structure, containing the 2D texel data. |
st | Texture coordinate, where to sample the 2D texture. |
GLUSboolean GLUSAPIENTRY glusImageSaveHdr | ( | const GLUSchar * | filename, |
const GLUShdrimage * | hdrimage | ||
) |
Saves a HDR file.
filename | The name of the file to save. |
hdrimage | The structure with the HDR data. |