forked from 0ad/0ad
prefect
36fa5ec2bf
* 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.
24 lines
652 B
C++
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
|