Go to the source code of this file.
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusLineCreateLinef (GLUSline *line, const GLUSfloat point0[4], const GLUSfloat point1[4]) |
| Creates a line out of two points. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusLineCreateSquaref (GLUSline *line, const GLUSfloat halfExtend) |
| Creates a square out of lines. More...
|
|
GLUSAPI 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...
|
|
GLUSAPI 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...
|
|
GLUSAPI 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...
|
|
Structure for holding line data.
Copies the line.
- Parameters
-
line | The target line. |
source | The source line. |
- Returns
- GLUS_TRUE, if copy succeeded.
Creates a circle out of lines with the given radius and number sectors.
More sectors makes the circle more round.
- Parameters
-
line | The data is stored into this structure. |
radius | The radius of the circle. |
numberSectors | The number of sectors the circle should have. |
- Returns
- GLUS_TRUE, if creation succeeded.
Creates a line out of two points.
- Parameters
-
line | The data is stored into this structure. |
point0 | The starting point. |
point1 | The ending point. |
- Returns
- GLUS_TRUE, if creation succeeded.
Creates a rectangular grid out of lines.
The grid is centered.
- Parameters
-
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. |
- Returns
- GLUS_TRUE, if creation succeeded.
Creates a square out of lines.
- Parameters
-
line | The data is stored into this structure. |
halfExtend | The length from the center point to edge of the square. |
- Returns
- GLUS_TRUE, if creation succeeded.
Destroys the line by freeing the allocated memory.
- Parameters
-
line | The structure which contains the dynamic allocated line data, which will be freed by this function. |