GLUS
|
#include "GL/glus.h"
Functions | |
GLUSboolean GLUSAPIENTRY | glusLineCreateLinef (GLUSline *line, const GLUSfloat point0[4], const GLUSfloat point1[4]) |
Creates a line out of two points. More... | |
GLUSboolean GLUSAPIENTRY | glusLineCreateSquaref (GLUSline *line, const GLUSfloat halfExtend) |
Creates a square out of lines. More... | |
GLUSboolean GLUSAPIENTRY | glusLineCreateRectangularGridf (GLUSline *line, const GLUSfloat horizontalExtend, const GLUSfloat verticalExtend, const GLUSuint rows, const GLUSuint columns) |
Creates a rectangular grid out of lines. More... | |
GLUSboolean GLUSAPIENTRY | glusLineCreateCirclef (GLUSline *line, const GLUSfloat radius, const GLUSuint numberSectors) |
Creates a circle out of lines with the given radius and number sectors. More... | |
GLUSboolean GLUSAPIENTRY | glusLineCopyf (GLUSline *line, const GLUSline *source) |
Copies the line. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusLineDestroyf (GLUSline *line) |
Destroys the line by freeing the allocated memory. More... | |
GLUSboolean GLUSAPIENTRY glusLineCopyf | ( | GLUSline * | line, |
const GLUSline * | source | ||
) |
Copies the line.
line | The target line. |
source | The source line. |
GLUSboolean GLUSAPIENTRY glusLineCreateCirclef | ( | GLUSline * | line, |
const GLUSfloat | radius, | ||
const GLUSuint | numberSectors | ||
) |
Creates a circle out of lines with the given radius and number sectors.
More sectors makes the circle more round.
line | The data is stored into this structure. |
radius | The radius of the circle. |
numberSectors | The number of sectors the circle should have. |
GLUSboolean GLUSAPIENTRY glusLineCreateLinef | ( | GLUSline * | line, |
const GLUSfloat | point0[4], | ||
const GLUSfloat | point1[4] | ||
) |
Creates a line out of two points.
line | The data is stored into this structure. |
point0 | The starting point. |
point1 | The ending point. |
GLUSboolean GLUSAPIENTRY glusLineCreateRectangularGridf | ( | GLUSline * | line, |
const GLUSfloat | horizontalExtend, | ||
const GLUSfloat | verticalExtend, | ||
const GLUSuint | rows, | ||
const GLUSuint | columns | ||
) |
Creates a rectangular grid out of lines.
The grid is centered.
line | The data is stored into this structure. |
horizontalExtend | The width of the grid. |
verticalExtend | The height of the grid. |
rows | Number of rows of the grid. |
columns | Number of columns of the grid. |
GLUSboolean GLUSAPIENTRY glusLineCreateSquaref | ( | GLUSline * | line, |
const GLUSfloat | halfExtend | ||
) |
Creates a square out of lines.
line | The data is stored into this structure. |
halfExtend | The length from the center point to edge of the square. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusLineDestroyf | ( | GLUSline * | line | ) |
Destroys the line by freeing the allocated memory.
line | The structure which contains the dynamic allocated line data, which will be freed by this function. |