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

Functions

GLUSboolean GLUSAPIENTRY glusShapeTexGenByAxesf (GLUSshape *shape, const GLUSfloat sSizeX, const GLUSfloat sSizeZ, const GLUSfloat tSizeY, const GLUSfloat tSizeZ, const GLUSfloat sOffset, const GLUSfloat tOffset)
 Creates the texture coordinates of a shape. More...
 
GLUSboolean GLUSAPIENTRY glusShapeTexGenByPlanesf (GLUSshape *shape, const GLUSfloat sPlane[4], const GLUSfloat tPlane[4], const float sSize, const float tSize, const float sOffset, const float tOffset)
 Creates the texture coordinates of a shape. More...
 

Function Documentation

GLUSboolean GLUSAPIENTRY glusShapeTexGenByAxesf ( GLUSshape shape,
const GLUSfloat  sSizeX,
const GLUSfloat  sSizeZ,
const GLUSfloat  tSizeY,
const GLUSfloat  tSizeZ,
const GLUSfloat  sOffset,
const GLUSfloat  tOffset 
)

Creates the texture coordinates of a shape.

Already existing texture coordinates are deleted.

Parameters
shapeThe shape, where the texture coordinates are created.
sSizeXSize of the s texture coordinate, considering x axis.
sSizeZSize of the s texture coordinate, considering z axis.
tSizeYSize of the t texture coordinate, considering y axis.
tSizeZSize of the t texture coordinate, considering z axis.
sOffsetOffset in the s texture coordinate direction.
tOffsetOffset in the t texture coordinate direction.
Returns
GLUS_TURE. if creation succeeded.
GLUSboolean GLUSAPIENTRY glusShapeTexGenByPlanesf ( GLUSshape shape,
const GLUSfloat  sPlane[4],
const GLUSfloat  tPlane[4],
const float  sSize,
const float  tSize,
const float  sOffset,
const float  tOffset 
)

Creates the texture coordinates of a shape.

Already existing texture coordinates are deleted.

Parameters
shapeThe shape, where the texture coordinates are created.
sPlaneThe plane for calculating the s coordinate.
tPlaneThe plane for calculating the t coordinate.
sSizeThe size in s direction.
tSizeThe size in t direction.
sOffsetThe offset in s direction.
tOffsetThe offset in t direction.
Returns
GLUS_TURE. if creation succeeded.