OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK Namespace Reference

Classes

class  AndroidPlatform
 Functions specific to the Android Platform. More...
 
class  EGLRuntime
 Functions for managing EGL. More...
 
class  ETCHeader
 Class to extract information from the ETC headers of compressed textures. More...
 
class  HDRImage
 Class to load an manage HDR images. More...
 
class  JavaClass
 Wraps a Java class to allow access to it's static fields and methods using JNI. More...
 
class  Matrix
 Functions for manipulating matrices. More...
 
class  CubeModel
 Functions for generating cube shapes. More...
 
class  PlaneModel
 Functions for generating Plane shapes. More...
 
class  SphereModel
 Functions for generating sphere shapes. More...
 
class  SuperEllipsoidModel
 Functions for generating super ellipsoid shapes. More...
 
class  TorusModel
 Functions for generating torus shapes. More...
 
class  Platform
 Abstract class to hide the complexity of multiple build targets. More...
 
class  Shader
 Functions for working with OpenGL ES shaders. More...
 
class  Text
 Functions for drawing text in OpenGL ES. More...
 
class  Texture
 Functions for working with textures. More...
 
class  Timer
 Provides a platform independent high resolution timer. More...
 
class  Vec2
 A 2D integer vector. More...
 
class  Vec3
 A 3D integer vector. More...
 
class  Vec4
 A 4D integer vector. More...
 
class  Vec2f
 A 2D floating point vector. More...
 
class  Vec3f
 A 3D floating point vector. More...
 
class  Vec4f
 A 4D floating point vector. More...
 
struct  MergeProgramLocations
 
struct  Rule30ProgramLocations
 
struct  GeometryProperties
 
struct  ProgramAndShaderObjectIds
 
struct  RenderGeometryObjects
 
struct  RenderSceneObjects
 
struct  RenderSceneProgramLocations
 
struct  DirectionalLightProperties
 
struct  SpotLightProperties
 
struct  ModelViewProperties
 
struct  CameraViewProperties
 
struct  SpotLightViewProperites
 
struct  tagBITMAPFILEHEADER
 
struct  tagBITMAPINFOHEADER
 

Functions

float distanceBetweenPoints (const Vec2f &point1, const Vec2f &point2)
 Compute Euclidean 2-dimensional distance between two points on XY plane. More...
 
float signum (float f)
 Get the sign of a number. More...
 
float uniformRandomNumber ()
 Generate random number in the 0.0 to 1.0 range. More...
 
float degreesToRadians (float degrees)
 Convert an angle in degrees to radians. More...
 
float radiansToDegrees (float radians)
 Convert an angle in radians to degrees. More...
 

Variables

Platformplatform = Platform::getInstance()
 
const float identityArray [16]
 
static const float lineVertices []
 
static const float quadVertices []
 
static const float lineTextureCoordinates []
 
static const float quadTextureCoordinates []
 

Function Documentation

float MaliSDK::degreesToRadians ( float  degrees)
inline

Convert an angle in degrees to radians.

Parameters
[in]degreesThe angle (in degrees) to convert to radians.
degreesThe angle (in degrees) to convert to radians.
Returns
As per description.

Definition at line 86 of file Mathematics.h.

float MaliSDK::distanceBetweenPoints ( const Vec2f &  point1,
const Vec2f &  point2 
)
inline

Compute Euclidean 2-dimensional distance between two points on XY plane.

Parameters
[in]point1First point.
[in]point2Second point.
Returns
Distance between points on XY plane.

Definition at line 48 of file Mathematics.h.

float MaliSDK::radiansToDegrees ( float  radians)
inline

Convert an angle in radians to degrees.

Parameters
radiansThe angle (in radians) to convert to degrees.
Returns
As per description.

Definition at line 76 of file Mathematics.h.

float MaliSDK::signum ( float  f)
inline

Get the sign of a number.

Parameters
[in]fValue to check the sign of.
Returns
-1.0 if the number's sign is minus, 1.0 if the number's sign is plus and 0.0 if the number's sign is indefinite.

Definition at line 58 of file Mathematics.h.

float MaliSDK::uniformRandomNumber ( )
inline

Generate random number in the 0.0 to 1.0 range.

Returns
Random number in the range 0.0 to 1.0.

Definition at line 77 of file Mathematics.h.

Variable Documentation

const float MaliSDK::identityArray[16]
Initial value:
=
{
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f,
}

Definition at line 34 of file Matrix.cpp.

const float MaliSDK::lineTextureCoordinates[]
static
Initial value:
=
{
0.0f, 1.0f,
1.0f, 1.0f
}

Definition at line 105 of file IntegerLogic.h.

const float MaliSDK::lineVertices[]
static
Initial value:
=
{
-0.5f, 1.0f, 0.0f, 0.5f,
0.5f, 1.0f, 0.0f, 0.5f,
}

Definition at line 86 of file IntegerLogic.h.

Platform* MaliSDK::platform = Platform::getInstance()

Definition at line 28 of file EGLRuntime.cpp.

const float MaliSDK::quadTextureCoordinates[]
static
Initial value:
=
{
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f,
}

Definition at line 112 of file IntegerLogic.h.

const float MaliSDK::quadVertices[]
static
Initial value:
=
{
-0.5f, 1.0f, 0.0f, 0.5f,
0.5f, 1.0f, 0.0f, 0.5f,
-0.5f, -1.0f, 0.0f, 0.5f,
0.5f, -1.0f, 0.0f, 0.5f,
}

Definition at line 96 of file IntegerLogic.h.