OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProjectedLights.h File Reference
#include "VectorTypes.h"
#include <EGL/egl.h>
#include <GLES3/gl3.h>

Go to the source code of this file.

Classes

struct  MaliSDK::GeometryProperties
 
struct  MaliSDK::ProgramAndShaderObjectIds
 
struct  MaliSDK::RenderGeometryObjects
 
struct  MaliSDK::RenderSceneObjects
 
struct  MaliSDK::RenderSceneProgramLocations
 
struct  MaliSDK::DirectionalLightProperties
 
struct  MaliSDK::SpotLightProperties
 
struct  MaliSDK::ModelViewProperties
 
struct  MaliSDK::CameraViewProperties
 
struct  MaliSDK::SpotLightViewProperites
 

Namespaces

 MaliSDK
 

Macros

#define CAMERA_PERSPECTIVE_FOV_IN_DEGREES   (60.0f)
 
#define COLOR_TEXTURE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/mali.bmp")
 
#define COLOR_TEXTURE_TRANSLATION   (15.0f)
 
#define CUBE_SCALING_FACTOR   (2.0f)
 
#define LIGHT_PERSPECTIVE_FOV_IN_DEGREES   (90.0f)
 
#define FAR_PLANE   (50.0f)
 
#define FRAGMENT_SHADER_FILE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.frag")
 
#define LIGHT_SOURCE_SCALING_FACTOR   (0.3f)
 
#define MODEL_Y_POSITION   (-3.0f)
 
#define MODEL_Y_ROTATION_ANGLE_IN_DEGREES   (60.0f)
 
#define NEAR_PLANE   (1.0f)
 
#define PLANE_SCALING_FACTOR   (10.0f)
 
#define SPOT_LIGHT_ANGLE_IN_DEGREES   (20.0f)
 
#define SPOT_LIGHT_TRANSLATION_RADIUS   (3.0f)
 
#define TEXTURE_UNIT_FOR_COLOR_TEXTURE   (0)
 
#define TEXTURE_UNIT_FOR_SHADOW_MAP_TEXTURE   (1)
 
#define VERTEX_SHADER_FILE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.vert")
 

Macro Definition Documentation

#define CAMERA_PERSPECTIVE_FOV_IN_DEGREES   (60.0f)

Field of view used for projection matrix calculations [in degrees] from camera point of view.

Definition at line 31 of file ProjectedLights.h.

#define COLOR_TEXTURE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/mali.bmp")

Name of a bmp file where colour texture image is stored.

Definition at line 33 of file ProjectedLights.h.

#define COLOR_TEXTURE_TRANSLATION   (15.0f)

Define a translation in x and Z space of a colour texture.

Definition at line 35 of file ProjectedLights.h.

#define CUBE_SCALING_FACTOR   (2.0f)

Scaling factor used to set-up a cube geometry (indicates the size of the cube).

Definition at line 37 of file ProjectedLights.h.

#define FAR_PLANE   (50.0f)

Value of the far plane used to set-up a projection view.

Definition at line 41 of file ProjectedLights.h.

#define FRAGMENT_SHADER_FILE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.frag")

Name of a fragment shader file.

Definition at line 43 of file ProjectedLights.h.

#define LIGHT_PERSPECTIVE_FOV_IN_DEGREES   (90.0f)

Field of view used for projection matrix calculations [in degrees] from light point of view.

Definition at line 39 of file ProjectedLights.h.

#define LIGHT_SOURCE_SCALING_FACTOR   (0.3f)

Scaling factor used to set-up a cube geometry (indicates the size of the cube representing the spot light source).

Definition at line 45 of file ProjectedLights.h.

#define MODEL_Y_POSITION   (-3.0f)

Position of a model (plane and cube) on Y axis.

Definition at line 47 of file ProjectedLights.h.

#define MODEL_Y_ROTATION_ANGLE_IN_DEGREES   (60.0f)

Angle (in degrees) of a model rotation around Y axis.

Definition at line 49 of file ProjectedLights.h.

#define NEAR_PLANE   (1.0f)

Value of the near plane used to set-up a projection view.

Definition at line 51 of file ProjectedLights.h.

#define PLANE_SCALING_FACTOR   (10.0f)

Scaling factor used to set-up a plane geometry (indicates the size of the plane).

Definition at line 53 of file ProjectedLights.h.

#define SPOT_LIGHT_ANGLE_IN_DEGREES   (20.0f)

Value of the projected light angle (in degrees)

Definition at line 55 of file ProjectedLights.h.

#define SPOT_LIGHT_TRANSLATION_RADIUS   (3.0f)

Definition at line 57 of file ProjectedLights.h.

#define TEXTURE_UNIT_FOR_COLOR_TEXTURE   (0)

Texture unit that will be used for colour texture binding purposes.

Definition at line 59 of file ProjectedLights.h.

#define TEXTURE_UNIT_FOR_SHADOW_MAP_TEXTURE   (1)

Texture unit that will be used for shadow map texture binding purposes.

Definition at line 61 of file ProjectedLights.h.

#define VERTEX_SHADER_FILE_NAME   ("/data/data/com.arm.malideveloper.openglessdk.projectedLights/files/render_scene_shader.vert")

Name of a vertex shader file.

Definition at line 63 of file ProjectedLights.h.