Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gfx::LightData Struct Reference

Light structure. More...

#include <Structs.h>

Public Attributes

Colorf Ambient
 Ambient color.
Colorf Diffuse
 Diffuse color.
Colorf Specular
 Specular color.
math::Vector Position
 Light Position. This value dose not needed for directional light.
math::Vector Direction
 Light Direction. This value dose not needed for point light.
float Range
 The distance that light can go. This value dose not needed for directional light.
float Theta
 The smaller cone in the spot light.
float Phi
 The bigger cone in the spot light.
LightType Type
 The type of the light.
int Index
 The light index TODO: this must be deleted after sorting the lights.

Detailed Description

Light structure.

Definition at line 258 of file Structs.h.

Member Data Documentation

Colorf kge::gfx::LightData::Ambient

Ambient color.

Definition at line 261 of file Structs.h.

Colorf kge::gfx::LightData::Diffuse

Diffuse color.

Definition at line 263 of file Structs.h.

math::Vector kge::gfx::LightData::Direction

Light Direction. This value dose not needed for point light.

Definition at line 269 of file Structs.h.

int kge::gfx::LightData::Index

The light index TODO: this must be deleted after sorting the lights.

Definition at line 279 of file Structs.h.

float kge::gfx::LightData::Phi

The bigger cone in the spot light.

Definition at line 275 of file Structs.h.

math::Vector kge::gfx::LightData::Position

Light Position. This value dose not needed for directional light.

Definition at line 267 of file Structs.h.

float kge::gfx::LightData::Range

The distance that light can go. This value dose not needed for directional light.

Definition at line 271 of file Structs.h.

Colorf kge::gfx::LightData::Specular

Specular color.

Definition at line 265 of file Structs.h.

float kge::gfx::LightData::Theta

The smaller cone in the spot light.

Definition at line 273 of file Structs.h.

LightType kge::gfx::LightData::Type

The type of the light.

Definition at line 277 of file Structs.h.


The documentation for this struct was generated from the following file: