#include <SolidSphere.h>
Definition at line 26 of file SolidSphere.h.
AstcTextures::SolidSphere::SolidSphere |
( |
const float |
radius, |
|
|
const unsigned int |
rings, |
|
|
const unsigned int |
sectors |
|
) |
| |
Solid sphere constructor. It generates vertex position, normals and texture coordinates data based on user-provided arguments.
- Parameters
-
[in] | radius | radius of sphere. |
[in] | rings | number of parallels sphere consists of. |
[in] | sectors | number of meridians sphere consists of. |
Definition at line 30 of file SolidSphere.cpp.
AstcTextures::SolidSphere::SolidSphere |
( |
const float |
radius, |
|
|
const unsigned int |
rings, |
|
|
const unsigned int |
sectors |
|
) |
| |
Solid sphere constructor. It generates vertex position, normals and texture coordinates data based on user-provided arguments.
- Parameters
-
[in] | radius | radius of sphere. |
[in] | rings | number of parallels sphere consists of. |
[in] | sectors | number of meridians sphere consists of. |
unsigned short * AstcTextures::SolidSphere::getSphereIndices |
( |
int * |
n_indices | ) |
|
Returns sphere indices.
- Parameters
-
[out] | n_indices | Number of indices. |
- Returns
- Pointer to indices.
Definition at line 140 of file SolidSphere.cpp.
unsigned short* AstcTextures::SolidSphere::getSphereIndices |
( |
int * |
n_indices | ) |
|
Returns sphere indices.
- Parameters
-
[out] | n_indices | Number of indices. |
- Returns
- Pointer to indices.
float * AstcTextures::SolidSphere::getSphereNormalData |
( |
int * |
normal_data_size | ) |
|
Returns normal coordinates.
- Parameters
-
[out] | normal_data_size | Size of normal data. |
- Returns
- Pointer to sphere normal coordinates.
Definition at line 112 of file SolidSphere.cpp.
float* AstcTextures::SolidSphere::getSphereNormalData |
( |
int * |
normal_data_size | ) |
|
Returns normal coordinates.
- Parameters
-
[out] | normal_data_size | Size of normal data. |
- Returns
- Pointer to sphere normal coordinates.
float* AstcTextures::SolidSphere::getSphereTexcoords |
( |
int * |
texcoords_size | ) |
|
Returns texture coordinates.
- Parameters
-
[out] | texcoords_size | Size of texture coordinates. |
- Returns
- Pointer to sphere texture coordinates.
float * AstcTextures::SolidSphere::getSphereTexcoords |
( |
int * |
texcoords_size | ) |
|
Returns texture coordinates.
- Parameters
-
[out] | texcoords_size | Size of texture coordinates. |
- Returns
- Pointer to sphere texture coordinates.
Definition at line 126 of file SolidSphere.cpp.
float * AstcTextures::SolidSphere::getSphereVertexData |
( |
int * |
vertex_data_size | ) |
|
Returns sphere vertices.
- Parameters
-
[out] | vertex_data_size | Size of vertex data. |
- Returns
- Pointer to sphere vertex coordinates.
Definition at line 98 of file SolidSphere.cpp.
float* AstcTextures::SolidSphere::getSphereVertexData |
( |
int * |
vertex_data_size | ) |
|
Returns sphere vertices.
- Parameters
-
[out] | vertex_data_size | Size of vertex data. |
- Returns
- Pointer to sphere vertex coordinates.
unsigned short * AstcTextures::SolidSphere::sphere_indices |
|
private |
int AstcTextures::SolidSphere::sphere_n_indices |
|
private |
int AstcTextures::SolidSphere::sphere_normal_data_size |
|
private |
float * AstcTextures::SolidSphere::sphere_normals |
|
private |
float * AstcTextures::SolidSphere::sphere_texcoords |
|
private |
int AstcTextures::SolidSphere::sphere_texcoords_size |
|
private |
int AstcTextures::SolidSphere::sphere_vertex_data_size |
|
private |
float * AstcTextures::SolidSphere::sphere_vertices |
|
private |
The documentation for this class was generated from the following files:
- /mnt/d/working/gitlab/opengles-sdk-android/samples/advanced_samples/AstcTextures/jni/SolidSphere.h
- /mnt/d/working/gitlab/opengles-sdk-android/samples/advanced_samples/AstcTextures/jni/SolidSphere.cpp