|
H3D API
2.4.1
|
Source file for SAI ECMAScript implementation using the SpiderMonkey javascript engine. More...
#include <H3D/SpiderMonkeyTypes.h>#include <H3D/Field.h>#include <H3D/X3DTypes.h>#include <H3D/X3DFieldConversion.h>#include <H3D/X3DTypeFunctions.h>#include <H3D/SAIFunctions.h>#include <H3D/X3D.h>#include <H3DUtil/PixelImage.h>#include <typeinfo>#include <algorithm>#include <sstream>#include <H3D/SFMatrix3f.h>#include <H3D/SFMatrix4f.h>#include <H3D/Transform.h>Functions | |
| void | changePixelImageDimension (PixelImage *img, unsigned int nw, unsigned int nh) |
| change dimension and preserve old spaces, or fill new spaces with zero | |
| void | changePixelImageComponent (PixelImage *img, int comp) |
| when changed comp type, create a new data array | |
| template<class FieldType > | |
| JSBool | getValueInJSObject (JSContext *cx, JSObject *obj, typename FieldType::value_type *rval) |
| return the actual value wrapped inside a JS object Use this function because we currently have 2 ways to represent SField: (SField) or (MField, index) | |
Source file for SAI ECMAScript implementation using the SpiderMonkey javascript engine.