home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for inc/real/code2/r3sare.h
- // Auto generated file, do not modify by hand
- // Copyrights 2002, Realsoft Graphics Oy
-
- var R3_SARE_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_SARE = 1738;
-
-
- // ==== Methods ====
-
-
- // Description: Load .r3d project.
- // Returns: ?, true if succeeded
- // p1: ?, load section bits, set to ~1 to load everything
- // p2: ?, set to true to 'replace' otherwise objects are inserted into
- // the current project
- // p3: ?, file name
-
- R3SAREM_LOADPROJECT = 1738000;
-
- function _R3SAREM_LOADPROJECT(p1, p2, p3) {
- return this.r3DoA3(R3SAREM_LOADPROJECT, p1, p2, p3);
- }
-
- // Description: Flush out the loaded project. You can call this
-
- R3SAREM_UNLOADPROJECT = 1738001;
-
- function _R3SAREM_UNLOADPROJECT() {
- this.r3DoA(R3SAREM_UNLOADPROJECT);
- }
-
- // Description: Init rendering engine. This reads rendering settings,
- // geometric objects, materials and other objects from the
- // project and passes them to the rendering engine.
- // Returns: ?, true if succeeded.
-
- R3SAREM_INITRENDER = 1738002;
-
- function _R3SAREM_INITRENDER() {
- return this.r3DoA(R3SAREM_INITRENDER);
- }
-
- // Description: Start multi threaded rendering. The method returns as
- // soon as the rendering is successfully started.
- // Returns: ?, true if rendering was succesfully started. Rendering
- // may still fail, for example, if disk quota was exeeded etc.
-
- R3SAREM_RENDER = 1738003;
-
- function _R3SAREM_RENDER() {
- return this.r3DoA(R3SAREM_RENDER);
- }
-
- // Description: Put the caller thread to a sleep till the scene is
- // rendered. The return value TRUE indicates that the
- // rendering was succesfull.
- // Returns: ?, true if rendering succeeded.
-
- R3SAREM_WAIT = 1738004;
-
- function _R3SAREM_WAIT() {
- return this.r3DoA(R3SAREM_WAIT);
- }
-
- // Description: Cancel current rendering.
-
- R3SAREM_CANCEL = 1738005;
-
- function _R3SAREM_CANCEL() {
- this.r3DoA(R3SAREM_CANCEL);
- }
-
- // Description: Adds a R3CLID_RAWIMAGESETTINGS output with defined channels to output configuration.
- // A possible previously defined output of this type will be replaced.
- // Note: recall this if resolution changes, because it invalidates externally allocated image data buffers.
- // Returns: object, address of created R3CLID_RAWIMAGESETTINGS object
- // p3: ?, R3SAREA_ChannelNames, R3SAREA_ChannelTypes, R3SAREA_ChannelData,
- // R3SAREA_ChannelBindings
-
- R3SAREM_SETOUTPUT = 1738006;
-
- function _R3SAREM_SETOUTPUT(p3) {
- return this.r3Do(R3SAREM_SETOUTPUT, p3);
- }
-
- // Description: Add a new output object to output configuration
- // p3: object, address of output target
-
- R3SAREM_REGISTEROUTPUT = 1738008;
-
- function _R3SAREM_REGISTEROUTPUT(p3) {
- this.r3DoA(R3SAREM_REGISTEROUTPUT, p3);
- }
-
- // Description: Remove an output from output configuration
- // p3: object, address of output object to be removed
-
- R3SAREM_UNREGISTEROUTPUT = 1738009;
-
- function _R3SAREM_UNREGISTEROUTPUT(p3) {
- this.r3DoA(R3SAREM_UNREGISTEROUTPUT, p3);
- }
-
-
- // ==== Attributes ====
-
-
- // R3SAREA_Real ?r3real applicatiom model
- R3SAREA_Real = 1738500;
- function SetR3SAREA_Real(value) {
- this.r3Set(R3SAREA_Real, value); // R3OBJ*
- }
-
- function GetR3SAREA_Real() {
- var value = 0;
- return this.r3Get(R3SAREA_Real, value); // R3OBJ*
- }
-
- // R3SAREA_Renderer ?r3filren distributed rendering engine
- R3SAREA_Renderer = 1738501;
- function SetR3SAREA_Renderer(value) {
- this.r3Set(R3SAREA_Renderer, value); // R3OBJ*
- }
-
- function GetR3SAREA_Renderer() {
- var value = 0;
- return this.r3Get(R3SAREA_Renderer, value); // R3OBJ*
- }
-
- // R3SAREA_Progress ?progress model
- R3SAREA_Progress = 1738502;
- function SetR3SAREA_Progress(value) {
- this.r3Set(R3SAREA_Progress, value); // R3OBJ*
- }
-
- function GetR3SAREA_Progress() {
- var value = 0;
- return this.r3Get(R3SAREA_Progress, value); // R3OBJ*
- }
-
- // R3SAREA_LayerList ?current project
- R3SAREA_LayerList = 1738503;
- function SetR3SAREA_LayerList(value) {
- this.r3Set(R3SAREA_LayerList, value); // R3OBJ*
- }
-
- function GetR3SAREA_LayerList() {
- var value = 0;
- return this.r3Get(R3SAREA_LayerList, value); // R3OBJ*
- }
-
- // R3SAREA_ChannelName ?array of channel names
- R3SAREA_ChannelName = 1738504;
- function SetR3SAREA_ChannelName(value) {
- this.r3Set(R3SAREA_ChannelName, value); // char**
- }
-
- function GetR3SAREA_ChannelName() {
- var value = "";
- return this.r3Get(R3SAREA_ChannelName, value); // char**
- }
-
- // R3SAREA_ChannelType ?ïE≡_dú
- R3SAREA_ChannelType = 1738505;
- function SetR3SAREA_ChannelType(value) {
- this.r3Set(R3SAREA_ChannelType, value); // R3TYPEID*
- }
-
- function GetR3SAREA_ChannelType() {
- var value = 0;
- return this.r3Get(R3SAREA_ChannelType, value); // R3TYPEID*
- }
-
- // R3SAREA_ChannelData ?array of channel buffers
- R3SAREA_ChannelData = 1738506;
- function SetR3SAREA_ChannelData(value) {
- this.r3Set(R3SAREA_ChannelData, value); // void**
- }
-
- function GetR3SAREA_ChannelData() {
- var value = 0;
- return this.r3Get(R3SAREA_ChannelData, value); // void**
- }
-
- // R3SAREA_ChannelBindings ?array of channel buffers
- R3SAREA_ChannelBindings = 1738507;
- function SetR3SAREA_ChannelBindings(value) {
- this.r3Set(R3SAREA_ChannelBindings, value); // char*[3]
- }
-
- function GetR3SAREA_ChannelBindings() {
- var value = "";
- return this.r3Get(R3SAREA_ChannelBindings, value); // char*[3]
- }
-
- // R3SAREA_UserData objectïE≡_dú
- R3SAREA_UserData = 1738508;
- function SetR3SAREA_UserData(value) {
- this.r3Set(R3SAREA_UserData, value); // void *
- }
-
- function GetR3SAREA_UserData() {
- var value = 0;
- return this.r3Get(R3SAREA_UserData, value); // void *
- }
-
-
-
- function r3Sare () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_SARE, arguments);
- }
- // Methods
- this.LOADPROJECT=_R3SAREM_LOADPROJECT;
- this.UNLOADPROJECT=_R3SAREM_UNLOADPROJECT;
- this.INITRENDER=_R3SAREM_INITRENDER;
- this.RENDER=_R3SAREM_RENDER;
- this.WAIT=_R3SAREM_WAIT;
- this.CANCEL=_R3SAREM_CANCEL;
- this.SETOUTPUT=_R3SAREM_SETOUTPUT;
- this.REGISTEROUTPUT=_R3SAREM_REGISTEROUTPUT;
- this.UNREGISTEROUTPUT=_R3SAREM_UNREGISTEROUTPUT;
-
- // Attributes
- this.GetReal=GetR3SAREA_Real;
- this.SetReal=SetR3SAREA_Real;
- this.GetRenderer=GetR3SAREA_Renderer;
- this.SetRenderer=SetR3SAREA_Renderer;
- this.GetProgress=GetR3SAREA_Progress;
- this.SetProgress=SetR3SAREA_Progress;
- this.GetLayerList=GetR3SAREA_LayerList;
- this.SetLayerList=SetR3SAREA_LayerList;
- this.GetChannelName=GetR3SAREA_ChannelName;
- this.SetChannelName=SetR3SAREA_ChannelName;
- this.GetChannelType=GetR3SAREA_ChannelType;
- this.SetChannelType=SetR3SAREA_ChannelType;
- this.GetChannelData=GetR3SAREA_ChannelData;
- this.SetChannelData=SetR3SAREA_ChannelData;
- this.GetChannelBindings=GetR3SAREA_ChannelBindings;
- this.SetChannelBindings=SetR3SAREA_ChannelBindings;
- this.GetUserData=GetR3SAREA_UserData;
- this.SetUserData=SetR3SAREA_UserData;
- }
-
- r3Sare.prototype=new r3Root;
- // inc/real/code2/r3sare.h_H