home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3matbas.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_MATERIALBASE_H = 1;
- include("real/code/r3ttag.js")
-
-
- var R3CLID_MATERIALBASE = 792;
-
-
-
-
- // Description: Creates rendering material object. This base class does it by sending * R3MATBASEM_BEGINRENDER and R3MATBASEM_ENDRENDER
- // methods to itself.
- // p3: Tag[], R3MATBASEA_Renderer (render engine object) included in the tag list. * R3MATBASEA_ActiveNames optionally for specifying which
- // materials to render
-
- R3MATBASEM_RENDER = 792000;
-
- function mR3MATBASEM_RENDER(p3) {
- Do(this.r3obj, 792000, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Begins rendering of the material. The object adds the rendering attributes it defines to
- // a tag list and inherits the method to the base class that creates the
- // rendering object by sending * R3FRM_BEGINLIBOBJECT method to the render engine.
- // Returns: Object, TRUE if successful
- // p2: Integer, class id of the rendering object to be created. Define it if 0 (not
- // yet defined by super class).
- // p3: Tag[], tag list for creating the rendering object.
-
- R3MATBASEM_BEGINRENDER = 792001;
-
- function mR3MATBASEM_BEGINRENDER(p2, p3) {
- return Do3(this.r3obj, 792001, 0, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Ends rendering description of the material. A material object should inherit this method to
- // this * base class which finishes creation by sending R3FRM_ENDLIBOBJECT to the render engine.
- // Returns: Object, TRUE if successful
-
- R3MATBASEM_ENDRENDER = 792002;
-
- function mR3MATBASEM_ENDRENDER() {
- return DoA(this.r3obj, 792002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: search child materials (name references) for a match
- // Returns: Integer, TRUE, if the name of a child (recursively) matches the given name -1, if
- // a recursion loop is encountered before the named child is found FALSE otherwise
- // p3: String, name of the child material to search for
-
- R3MATBASEM_FINDCHILDBYNAME = 792004;
-
- function mR3MATBASEM_FINDCHILDBYNAME(p3) {
- return DoA(this.r3obj, 792004, p3, R3TID_STRING, 0);
- }
-
- // Description: Class method, for registering R3MATBASEA_PreferredMapping alternatives
- // Returns: Integer, TRUE if succeeded
- // p1: Integer, identifier for the mapping (clid)
- // p3: String, statically allocated symbolic name (pointer value is stored, don't use temporary strings)
-
- R3MATBASECM_REGISTERMAPPINGT = 792009;
-
- function mR3MATBASECM_REGISTERMAPPINGT(p1, p3) {
- return DoA2(this.r3obj, 792009, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
- }
-
- // Description: Set preview image for the material without generating update events.
- // p3: Object, new image
-
- R3MATBASEM_SETPREVIEWIMAGENO = 792010;
-
- function mR3MATBASEM_SETPREVIEWIMAGENO(p3) {
- DoA(this.r3obj, 792010, p3, R3TID_OBJECT, 0);
- }
-
- // Description: enumerate all (static and dynamic) channel requirements R3DoA3(cbobj, cbmth, channelname, typeid (0 if unknown),
- // context);
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Object, callback context
-
- R3MATBASEM_ENUMCHANNELS = 792011;
-
- function mR3MATBASEM_ENUMCHANNELS(p1, p2, p3) {
- DoA3(this.r3obj, 792011, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
-
-
-
- var R3MATBASEA_Renderer = 792500; // Object
- R3MATBASEA_PreviewImage = 792501;
- function SetR3MATBASEA_PreviewImage(value) {
- R3Set(this.r3obj, R3MATBASEA_PreviewImage, value, R3TID_OBJECT, 0);
- }
-
- function GetR3MATBASEA_PreviewImage() {
- return R3ToJS(R3Get(this.r3obj, R3MATBASEA_PreviewImage, R3TID_OBJECT, 0));
- }
-
- R3MATBASEA_AlsoChangesObj = 792502;
- function SetR3MATBASEA_AlsoChangesObj(value) {
- R3Set(this.r3obj, R3MATBASEA_AlsoChangesObj, value, R3TID_OBJECT, 0);
- }
-
- function GetR3MATBASEA_AlsoChangesObj() {
- return R3ToJS(R3Get(this.r3obj, R3MATBASEA_AlsoChangesObj, R3TID_OBJECT, 0));
- }
-
- R3MATBASEA_ShowPreview = 792503;
- function GetR3MATBASEA_ShowPreview() {
- return R3Get(this.r3obj, R3MATBASEA_ShowPreview, R3TID_BOOLEAN, 0);
- }
-
- R3MATBASEA_PreviewProject = 792506;
- function SetR3MATBASEA_PreviewProject(value) {
- R3Set(this.r3obj, R3MATBASEA_PreviewProject, value, R3TID_STRING, 0);
- }
-
- function GetR3MATBASEA_PreviewProject() {
- return R3Get(this.r3obj, R3MATBASEA_PreviewProject, R3TID_STRING, 0);
- }
-
- R3MATBASEA_Mappable = 792507;
- function GetR3MATBASEA_Mappable() {
- return R3Get(this.r3obj, R3MATBASEA_Mappable, R3TID_INTEGER, 0);
- }
-
- R3MATBASEA_Keyframer = 792508;
- function SetR3MATBASEA_Keyframer(value) {
- R3Set(this.r3obj, R3MATBASEA_Keyframer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3MATBASEA_Keyframer() {
- return R3ToJS(R3Get(this.r3obj, R3MATBASEA_Keyframer, R3TID_OBJECT, 0));
- }
-
- var R3MATBASEA_AniTag = 792509; // Integer
- var R3MATBASEA_AniTagIsAngle = 792511; // Boolean
- R3MATBASEA_PreferredMapping = 792512;
- function SetR3MATBASEA_PreferredMapping(value) {
- R3Set(this.r3obj, R3MATBASEA_PreferredMapping, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MATBASEA_PreferredMapping() {
- return R3Get(this.r3obj, R3MATBASEA_PreferredMapping, R3TID_INTEGER, 0);
- }
-
- R3MATBASEA_MapFixedSize = 792513;
- function SetR3MATBASEA_MapFixedSize(value) {
- R3Set(this.r3obj, R3MATBASEA_MapFixedSize, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MATBASEA_MapFixedSize() {
- return R3Get(this.r3obj, R3MATBASEA_MapFixedSize, R3TID_INTEGER, 0);
- }
-
- R3MATBASEA_MapFixedProportio = 792514;
- function SetR3MATBASEA_MapFixedProportio(value) {
- R3Set(this.r3obj, R3MATBASEA_MapFixedProportio, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MATBASEA_MapFixedProportio() {
- return R3Get(this.r3obj, R3MATBASEA_MapFixedProportio, R3TID_INTEGER, 0);
- }
-
- R3MATBASEA_NotUsed = 792518;
- function SetR3MATBASEA_NotUsed(value) {
- R3Set(this.r3obj, R3MATBASEA_NotUsed, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MATBASEA_NotUsed() {
- return R3Get(this.r3obj, R3MATBASEA_NotUsed, R3TID_INTEGER, 0);
- }
-
- R3MATBASEA_PreferredPriority = 792521;
- function SetR3MATBASEA_PreferredPriority(value) {
- R3Set(this.r3obj, R3MATBASEA_PreferredPriority, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MATBASEA_PreferredPriority() {
- return R3Get(this.r3obj, R3MATBASEA_PreferredPriority, R3TID_INTEGER, 0);
- }
-
-
-
- function r3Materialbase () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_MATERIALBASE, arguments);
- }
- // Methods
- this.RENDER=mR3MATBASEM_RENDER;
- this.BEGINRENDER=mR3MATBASEM_BEGINRENDER;
- this.ENDRENDER=mR3MATBASEM_ENDRENDER;
- this.FINDCHILDBYNAME=mR3MATBASEM_FINDCHILDBYNAME;
- this.REGISTERMAPPINGT=mR3MATBASECM_REGISTERMAPPINGT;
- this.SETPREVIEWIMAGENO=mR3MATBASEM_SETPREVIEWIMAGENO;
- this.ENUMCHANNELS=mR3MATBASEM_ENUMCHANNELS;
-
- // Attributes
- this.GetPreviewImage=GetR3MATBASEA_PreviewImage;
- this.SetPreviewImage=SetR3MATBASEA_PreviewImage;
- this.GetAlsoChangesObj=GetR3MATBASEA_AlsoChangesObj;
- this.SetAlsoChangesObj=SetR3MATBASEA_AlsoChangesObj;
- this.GetShowPreview=GetR3MATBASEA_ShowPreview;
- this.GetPreviewProject=GetR3MATBASEA_PreviewProject;
- this.SetPreviewProject=SetR3MATBASEA_PreviewProject;
- this.GetMappable=GetR3MATBASEA_Mappable;
- this.GetKeyframer=GetR3MATBASEA_Keyframer;
- this.SetKeyframer=SetR3MATBASEA_Keyframer;
- this.GetPreferredMapping=GetR3MATBASEA_PreferredMapping;
- this.SetPreferredMapping=SetR3MATBASEA_PreferredMapping;
- this.GetMapFixedSize=GetR3MATBASEA_MapFixedSize;
- this.SetMapFixedSize=SetR3MATBASEA_MapFixedSize;
- this.GetMapFixedProportio=GetR3MATBASEA_MapFixedProportio;
- this.SetMapFixedProportio=SetR3MATBASEA_MapFixedProportio;
- this.GetNotUsed=GetR3MATBASEA_NotUsed;
- this.SetNotUsed=SetR3MATBASEA_NotUsed;
- this.GetPreferredPriority=GetR3MATBASEA_PreferredPriority;
- this.SetPreferredPriority=SetR3MATBASEA_PreferredPriority;
- }
-
- r3Materialbase.prototype=new r3Ttag;
- // r3matbas.h_H