0ad/source/graphics/scripting/JSInterface_LightEnv.h
prefect 36fa5ec2bf * clean up CLightEnv a bit
* add CLightEnv::m_TerrainShadowTransparency
* shadows will let a fraction of diffuse light through
* added JS LightEnv objects, so the lighting environment can be changed
  from the console
* new element TerrainShadowTransparency supported in the scenario .xml
format,
  changed cantabrian_generated with an example

This was SVN commit r3513.
2006-02-15 00:45:16 +00:00

24 lines
652 B
C++

/**
* =========================================================================
* File : JSInterface_LightEnv.h
* Project : Pyrogenesis
* Description : Provide the LightEnv object type for JavaScript
*
* @author Nicolai Hähnle <nicolai@wildfiregames.com>
* =========================================================================
*/
#ifndef JSI_LIGHTENV_INCLUDED
#define JSI_LIGHTENV_INCLUDED
#include "scripting/ScriptingHost.h"
namespace JSI_LightEnv
{
void init();
JSBool getLightEnv( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
JSBool setLightEnv( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
};
#endif