Oolite 1.91.0.7646-241128-10e222e
|
import "OOVisualEffectEntity.h"
import "OOJSVisualEffect.h"
import "OOJSEntity.h"
import "OOJSVector.h"
import "OOJavaScriptEngine.h"
import "OOMesh.h"
import "OOCollectionExtractors.h"
import "ResourceManager.h"
import "EntityOOJavaScriptExtensions.h"
Go to the source code of this file.
Macros | |
#define | GET_THIS_EFFECT(THISENT) |
Functions | |
static BOOL | JSVisualEffectGetVisualEffectEntity (JSContext *context, JSObject *stationObj, OOVisualEffectEntity **outEntity) |
static JSBool | VisualEffectGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | VisualEffectSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | VisualEffectRemove (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectGetShaders (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectSetShaders (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectGetMaterials (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectSetMaterials (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectScale (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectRestoreSubEntities (JSContext *context, uintN argc, jsval *vp) |
static JSBool | VisualEffectSetMaterialsInternal (JSContext *context, uintN argc, jsval *vp, OOVisualEffectEntity *thisEnt, BOOL fromShaders) |
void | InitOOJSVisualEffect (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sVisualEffectPrototype |
static JSClass | sVisualEffectClass |
static JSPropertySpec | sVisualEffectProperties [] |
static JSFunctionSpec | sVisualEffectMethods [] |
#define GET_THIS_EFFECT | ( | THISENT | ) |
Definition at line 492 of file OOJSVisualEffect.m.
Referenced by OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, VisualEffectGetMaterials(), VisualEffectGetShaders(), VisualEffectRemove(), VisualEffectScale(), VisualEffectSetMaterials(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
anonymous enum |
Definition at line 71 of file OOJSVisualEffect.m.
void InitOOJSVisualEffect | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 143 of file OOJSVisualEffect.m.
References JSEntityClass(), JSEntityPrototype(), OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSRegisterSubclass(), OOJSUnconstructableConstruct(), sVisualEffectClass, sVisualEffectMethods, sVisualEffectProperties, and sVisualEffectPrototype.
|
static |
Definition at line 151 of file OOJSVisualEffect.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by VisualEffectGetProperty(), and VisualEffectSetProperty().
|
static |
Definition at line 522 of file OOJSVisualEffect.m.
References GET_THIS_EFFECT, OOMesh::materials, OOVisualEffectEntity::mesh, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOJS_RETURN_OBJECT.
|
static |
Definition at line 200 of file OOJSVisualEffect.m.
References OOVisualEffectEntity::beaconCode, OOVisualEffectEntity::beaconLabel, OOVisualEffectEntity::effectKey, JSVisualEffectGetVisualEffectEntity(), kVisualEffect_beaconCode, kVisualEffect_beaconLabel, kVisualEffect_dataKey, kVisualEffect_hullHeatLevel, kVisualEffect_isBreakPattern, kVisualEffect_scaleX, kVisualEffect_scaleY, kVisualEffect_scaleZ, kVisualEffect_scannerDisplayColor1, kVisualEffect_scannerDisplayColor2, kVisualEffect_script, kVisualEffect_scriptInfo, kVisualEffect_shaderFloat1, kVisualEffect_shaderFloat2, kVisualEffect_shaderInt1, kVisualEffect_shaderInt2, kVisualEffect_shaderVector1, kVisualEffect_shaderVector2, kVisualEffect_subEntities, kVisualEffect_vectorForward, kVisualEffect_vectorRight, kVisualEffect_vectorUp, nil, OOColor::normalizedArray, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), OOVisualEffectEntity::scannerDisplayColor1, OOVisualEffectEntity::scannerDisplayColor2, OOVisualEffectEntity::script, OOVisualEffectEntity::scriptInfo, OOVisualEffectEntity::subEntitiesForScript, sVisualEffectProperties, and VectorToJSValue().
|
static |
Definition at line 539 of file OOJSVisualEffect.m.
References GET_THIS_EFFECT, OOVisualEffectEntity::mesh, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJS_RETURN_OBJECT, and OOMesh::shaders.
|
static |
Definition at line 498 of file OOJSVisualEffect.m.
References GET_THIS_EFFECT, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_VOID, Entity::owner, OOVisualEffectEntity::remove, and OOVisualEffectEntity::removeSubEntity:.
|
static |
Definition at line 718 of file OOJSVisualEffect.m.
|
static |
Definition at line 684 of file OOJSVisualEffect.m.
References EXPECT_NOT, GET_THIS_EFFECT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadArguments(), OOVisualEffectEntity::setScaleX:, OOVisualEffectEntity::setScaleY:, and OOVisualEffectEntity::setScaleZ:.
|
static |
Definition at line 557 of file OOJSVisualEffect.m.
References GET_THIS_EFFECT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadArguments(), and VisualEffectSetMaterialsInternal().
|
static |
Definition at line 611 of file OOJSVisualEffect.m.
References OOVisualEffectEntity::effectInfoDictionary, GET_THIS_EFFECT, ResourceManager::materialDefaults, OOMesh::materials, OOVisualEffectEntity::mesh, OOMesh::meshWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:, nil, OOJS_ARGV, OOJS_BEGIN_FULL_NATIVE, OOJS_END_FULL_NATIVE, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJS_RETURN_BOOL, OOJSNativeObjectFromJSObject(), OOJSReportWarning(), OOStringFromJSValueEvenIfNull(), OOVisualEffectEntity::setMesh:, and OOMesh::shaders.
Referenced by VisualEffectSetMaterials(), and VisualEffectSetShaders().
|
static |
Definition at line 306 of file OOJSVisualEffect.m.
References OOColor::colorWithDescription:, JSValueToVector(), JSVisualEffectGetVisualEffectEntity(), kVisualEffect_beaconCode, kVisualEffect_beaconLabel, kVisualEffect_hullHeatLevel, kVisualEffect_isBreakPattern, kVisualEffect_scaleX, kVisualEffect_scaleY, kVisualEffect_scaleZ, kVisualEffect_scannerDisplayColor1, kVisualEffect_scannerDisplayColor2, kVisualEffect_shaderFloat1, kVisualEffect_shaderFloat2, kVisualEffect_shaderInt1, kVisualEffect_shaderInt2, kVisualEffect_shaderVector1, kVisualEffect_shaderVector2, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOStringFromJSValue(), PLAYER, OOVisualEffectEntity::setBeaconCode:, OOVisualEffectEntity::setBeaconLabel:, OOVisualEffectEntity::setHullHeatLevel:, OOVisualEffectEntity::setIsBreakPattern:, OOVisualEffectEntity::setScaleX:, OOVisualEffectEntity::setScaleY:, OOVisualEffectEntity::setScaleZ:, OOVisualEffectEntity::setScannerDisplayColor1:, OOVisualEffectEntity::setScannerDisplayColor2:, OOVisualEffectEntity::setShaderFloat1:, OOVisualEffectEntity::setShaderFloat2:, OOVisualEffectEntity::setShaderInt1:, OOVisualEffectEntity::setShaderInt2:, OOVisualEffectEntity::setShaderVector1:, OOVisualEffectEntity::setShaderVector2:, and sVisualEffectProperties.
|
static |
Definition at line 578 of file OOJSVisualEffect.m.
References GET_THIS_EFFECT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, OOJSReportBadArguments(), OOJSReportWarning(), OOStringFromJSValueEvenIfNull(), and VisualEffectSetMaterialsInternal().
|
static |
Definition at line 54 of file OOJSVisualEffect.m.
Referenced by InitOOJSVisualEffect().
|
static |
Definition at line 128 of file OOJSVisualEffect.m.
Referenced by InitOOJSVisualEffect().
|
static |
Definition at line 99 of file OOJSVisualEffect.m.
Referenced by InitOOJSVisualEffect(), VisualEffectGetProperty(), and VisualEffectSetProperty().
|
static |
Definition at line 35 of file OOJSVisualEffect.m.
Referenced by InitOOJSVisualEffect().