OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AstcTextures::SolidSphere Class Reference

#include <SolidSphere.h>

Public Member Functions

 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. More...
 
floatgetSphereVertexData (int *vertex_data_size)
 Returns sphere vertices. More...
 
floatgetSphereNormalData (int *normal_data_size)
 Returns normal coordinates. More...
 
floatgetSphereTexcoords (int *texcoords_size)
 Returns texture coordinates. More...
 
unsigned short * getSphereIndices (int *n_indices)
 Returns sphere indices. More...
 
 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. More...
 
floatgetSphereVertexData (int *vertex_data_size)
 Returns sphere vertices. More...
 
floatgetSphereNormalData (int *normal_data_size)
 Returns normal coordinates. More...
 
floatgetSphereTexcoords (int *texcoords_size)
 Returns texture coordinates. More...
 
unsigned short * getSphereIndices (int *n_indices)
 Returns sphere indices. More...
 

Private Attributes

floatsphere_vertices
 
floatsphere_normals
 
floatsphere_texcoords
 
unsigned short * sphere_indices
 
int sphere_vertex_data_size
 
int sphere_normal_data_size
 
int sphere_texcoords_size
 
int sphere_n_indices
 

Detailed Description

Definition at line 26 of file SolidSphere.h.

Constructor & Destructor Documentation

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]radiusradius of sphere.
[in]ringsnumber of parallels sphere consists of.
[in]sectorsnumber 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]radiusradius of sphere.
[in]ringsnumber of parallels sphere consists of.
[in]sectorsnumber of meridians sphere consists of.

Member Function Documentation

unsigned short * AstcTextures::SolidSphere::getSphereIndices ( int n_indices)

Returns sphere indices.

Parameters
[out]n_indicesNumber 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_indicesNumber of indices.
Returns
Pointer to indices.
float * AstcTextures::SolidSphere::getSphereNormalData ( int normal_data_size)

Returns normal coordinates.

Parameters
[out]normal_data_sizeSize 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_sizeSize of normal data.
Returns
Pointer to sphere normal coordinates.
float* AstcTextures::SolidSphere::getSphereTexcoords ( int texcoords_size)

Returns texture coordinates.

Parameters
[out]texcoords_sizeSize of texture coordinates.
Returns
Pointer to sphere texture coordinates.
float * AstcTextures::SolidSphere::getSphereTexcoords ( int texcoords_size)

Returns texture coordinates.

Parameters
[out]texcoords_sizeSize 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_sizeSize 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_sizeSize of vertex data.
Returns
Pointer to sphere vertex coordinates.

Member Data Documentation

unsigned short * AstcTextures::SolidSphere::sphere_indices
private

Definition at line 74 of file SolidSphere.h.

int AstcTextures::SolidSphere::sphere_n_indices
private

Definition at line 82 of file SolidSphere.h.

int AstcTextures::SolidSphere::sphere_normal_data_size
private

Definition at line 78 of file SolidSphere.h.

float * AstcTextures::SolidSphere::sphere_normals
private

Definition at line 70 of file SolidSphere.h.

float * AstcTextures::SolidSphere::sphere_texcoords
private

Definition at line 71 of file SolidSphere.h.

int AstcTextures::SolidSphere::sphere_texcoords_size
private

Definition at line 79 of file SolidSphere.h.

int AstcTextures::SolidSphere::sphere_vertex_data_size
private

Definition at line 77 of file SolidSphere.h.

float * AstcTextures::SolidSphere::sphere_vertices
private

Definition at line 69 of file SolidSphere.h.


The documentation for this class was generated from the following files: