![]()  | 
  
    GCGlib
    0.04.228
    
   GCG Graphics Engine 
   | 
 
Functions | |
| bool | gcgDrawLogo (float scale=0.67) | 
| Draws the GCG logo on the top right conner of the viewport.  More... | |
| bool | gcgDrawAABox (VECTOR3 bbmin, VECTOR3 bbmax) | 
| Draws an axis aligned box. Normals are sent and can be used for lighting. All parameters are float values.  More... | |
| bool | gcgDrawAABox (VECTOR3d bbmin, VECTOR3d bbmax) | 
| Draws an axis aligned box. Normals are sent and can be used for lighting. All parameters are double values.  More... | |
| bool | gcgDrawOBox (VECTOR3 obbangles, VECTOR3 obbcenter, VECTOR3 obbsize) | 
| Draws an oriented box. Normals are sent and can be used for lighting. All parameters are float values.  More... | |
| bool | gcgDrawOBox (VECTOR3d obbangles, VECTOR3d obbcenter, VECTOR3d obbsize) | 
| Draws an oriented box. Normals are sent and can be used for lighting. All parameters are double values.  More... | |
| bool | gcgDrawVectorPyramid (float x, float y, float z, VECTOR3 vector, float scale) | 
| Draws an oriented pyramid (its base is not drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are float.  More... | |
| bool | gcgDrawVectorPyramid (float x, float y, float z, VECTOR3d vector, float scale) | 
| Draws an oriented pyramid (its base is not drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are double.  More... | |
| bool | gcgDrawVectorPyramidClosed (float x, float y, float z, VECTOR3 vector, float scale) | 
| Draws an oriented pyramid (its base is also drawn) which can be used to represent vectors: 6 triangles are drawn using 8 vertices. Normals are sent and can be used for lighting. All parameters are float.  More... | |
| bool | gcgDrawVectorPyramidClosed (float x, float y, float z, VECTOR3d vector, float scale) | 
| Draws an oriented pyramid (its base is also drawn) which can be used to represent vectors: 6 triangles are drawn using 8 vertices. Normals are sent and can be used for lighting. All parameters are double.  More... | |
| bool | gcgDrawVectorThetrahedron (float x, float y, float z, VECTOR3 vector, float scale) | 
| Draws an oriented thetahedron (its base is not drawn) which can be used to represent vectors: 3 triangles are drawn using 5 vertices. Normals are sent and can be used for lighting. All parameters are float.  More... | |
| bool | gcgDrawVectorThetrahedron (float x, float y, float z, VECTOR3d vector, float scale) | 
| Draws an oriented thetrahedron (its base is not drawn) which can be used to represent vectors: 3 triangles are drawn using 5 vertices. Normals are sent and can be used for lighting. All parameters are double.  More... | |
| bool | gcgDrawVectorThetrahedronClosed (float x, float y, float z, VECTOR3 vector, float scale) | 
| Draws an oriented thetrahedron (its base is also drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are float.  More... | |
| bool | gcgDrawVectorThetrahedronClosed (float x, float y, float z, VECTOR3d vector, float scale) | 
| Draws an oriented thetrahedron (its base is also drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are double.  More... | |
This section presents functions and classes for drawing primitives.
| bool gcgDrawAABox | ( | VECTOR3 | bbmin, | 
| VECTOR3 | bbmax | ||
| ) | 
Draws an axis aligned box. Normals are sent and can be used for lighting. All parameters are float values.
| [in] | bbmin | Minimum x, y and z coordinates of the bounding box. | 
| [in] | bbmax | Maximum x, y and z coordinates of the bounding box. | 
| bool gcgDrawAABox | ( | VECTOR3d | bbmin, | 
| VECTOR3d | bbmax | ||
| ) | 
Draws an axis aligned box. Normals are sent and can be used for lighting. All parameters are double values.
| [in] | bbmin | Minimum x, y and z coordinates of the bounding box. | 
| [in] | bbmax | Maximum x, y and z coordinates of the bounding box. | 
| bool gcgDrawLogo | ( | float | scale = 0.67 | ) | 
Draws the GCG logo on the top right conner of the viewport.
| [in] | scale | Factor to be used in scaling the GCG logo image which originally has 256 by 64 pixels. | 
| bool gcgDrawOBox | ( | VECTOR3 | obbangles, | 
| VECTOR3 | obbcenter, | ||
| VECTOR3 | obbsize | ||
| ) | 
Draws an oriented box. Normals are sent and can be used for lighting. All parameters are float values.
| [in] | obbangles | Euler angles in degrees for box orientation. Euler angles are generally referred as yaw, pitch and roll angles, corresponding to rotations to the x, y and z axis, in this order. Note that GCGlib uses the OpenGL orientation system. See gcgEULERTOQUATERNION() and gcgQUATERNIONTOMATRIX4() to further information on rotations. | 
| [in] | obbcenter | The x, y and z coordinates of the box center. | 
| [in] | obbsize | The x, y and z sizes of the box, before its rotation by the Euler angles. | 
| bool gcgDrawOBox | ( | VECTOR3d | obbangles, | 
| VECTOR3d | obbcenter, | ||
| VECTOR3d | obbsize | ||
| ) | 
Draws an oriented box. Normals are sent and can be used for lighting. All parameters are double values.
| [in] | obbangles | Euler angles in degrees for box orientation. Euler angles are generally referred as yaw, pitch and roll angles, corresponding to rotations to the x, y and z axis, in this order. Note that GCGlib uses the OpenGL orientation system. See gcgEULERTOQUATERNION() and gcgQUATERNIONTOMATRIX4() to further information on rotations. | 
| [in] | obbcenter | The x, y and z coordinates of the box center. | 
| [in] | obbsize | The x, y and z sizes of the box, before its rotation by the Euler angles. | 
| bool gcgDrawVectorPyramid | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3 | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented pyramid (its base is not drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are float.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the pyramid. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the pyramid with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorPyramid | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3d | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented pyramid (its base is not drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are double.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the pyramid. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the pyramid with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorPyramidClosed | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3 | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented pyramid (its base is also drawn) which can be used to represent vectors: 6 triangles are drawn using 8 vertices. Normals are sent and can be used for lighting. All parameters are float.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the pyramid. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the pyramid with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorPyramidClosed | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3d | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented pyramid (its base is also drawn) which can be used to represent vectors: 6 triangles are drawn using 8 vertices. Normals are sent and can be used for lighting. All parameters are double.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the pyramid. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the pyramid with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorThetrahedron | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3 | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented thetahedron (its base is not drawn) which can be used to represent vectors: 3 triangles are drawn using 5 vertices. Normals are sent and can be used for lighting. All parameters are float.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the thetrahedron. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the thetrahedron with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorThetrahedron | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3d | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented thetrahedron (its base is not drawn) which can be used to represent vectors: 3 triangles are drawn using 5 vertices. Normals are sent and can be used for lighting. All parameters are double.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the thetrahedron. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the thetrahedron with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorThetrahedronClosed | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3 | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented thetrahedron (its base is also drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are float.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the thetrahedron. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the thetrahedron with unitary height. It is generally the vector magnitude. | 
| bool gcgDrawVectorThetrahedronClosed | ( | float | x, | 
| float | y, | ||
| float | z, | ||
| VECTOR3d | vector, | ||
| float | scale | ||
| ) | 
Draws an oriented thetrahedron (its base is also drawn) which can be used to represent vectors: 4 triangles are drawn using 6 vertices. Normals are sent and can be used for lighting. All parameters are double.
| [in] | x | The x center position of the vector. | 
| [in] | y | The y center position of the vector. | 
| [in] | z | The z center position of the vector. | 
| [in] | vector | The vector indicating the direction of the thetrahedron. Its magnitude is ignored. The vector must be non null. | 
| [in] | scale | Scaling to be applied to the thetrahedron with unitary height. It is generally the vector magnitude. |