home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3matbas.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  7.9 KB  |  230 lines

  1.  
  2. // JavaScript wrapper for r3matbas.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_MATERIALBASE_H = 1;
  7. include("real/code/r3ttag.js")
  8.  
  9.  
  10. var R3CLID_MATERIALBASE = 792;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Creates rendering material object. This base class does it by sending    * R3MATBASEM_BEGINRENDER and R3MATBASEM_ENDRENDER
  16. //      methods to itself.
  17. // p3: Tag[], R3MATBASEA_Renderer (render engine object) included in the tag list.    * R3MATBASEA_ActiveNames optionally for specifying which
  18. //      materials to render    
  19.  
  20. R3MATBASEM_RENDER = 792000;
  21.  
  22. function mR3MATBASEM_RENDER(p3) {
  23.   Do(this.r3obj, 792000, p3, R3TID_TAG, R3TNF_ARRAY);
  24. }
  25.  
  26. // Description: Begins rendering of the material. The object adds the rendering attributes it defines to
  27. //      a tag list and inherits the method to the base class that creates the
  28. //      rendering object by sending * R3FRM_BEGINLIBOBJECT method to the render engine.
  29. // Returns: Object, TRUE if successful
  30. // p2: Integer, class id of the rendering object to be created. Define it if 0 (not
  31. //      yet defined by super class).
  32. // p3: Tag[], tag list for creating the rendering object.
  33.  
  34. R3MATBASEM_BEGINRENDER = 792001;
  35.  
  36. function mR3MATBASEM_BEGINRENDER(p2, p3) {
  37.   return   Do3(this.r3obj, 792001, 0, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  38. }
  39.  
  40. // Description: Ends rendering description of the material. A material object should inherit this method to
  41. //      this * base class which finishes creation by sending R3FRM_ENDLIBOBJECT to the render engine.
  42. // Returns: Object, TRUE if successful
  43.  
  44. R3MATBASEM_ENDRENDER = 792002;
  45.  
  46. function mR3MATBASEM_ENDRENDER() {
  47.   return   DoA(this.r3obj, 792002, 0, R3TID_INTEGER, 0);
  48. }
  49.  
  50. // Description: search child materials (name references) for a match
  51. // Returns: Integer, TRUE, if the name of a child (recursively) matches the given name -1, if
  52. //      a recursion loop is encountered before the named child is found FALSE otherwise
  53. // p3: String, name of the child material to search for    
  54.  
  55. R3MATBASEM_FINDCHILDBYNAME = 792004;
  56.  
  57. function mR3MATBASEM_FINDCHILDBYNAME(p3) {
  58.   return   DoA(this.r3obj, 792004, p3, R3TID_STRING, 0);
  59. }
  60.  
  61. // Description: Class method, for registering R3MATBASEA_PreferredMapping alternatives
  62. // Returns: Integer, TRUE if succeeded
  63. // p1: Integer, identifier for the mapping (clid)
  64. // p3: String, statically allocated symbolic name (pointer value is stored, don't use temporary strings)    
  65.  
  66. R3MATBASECM_REGISTERMAPPINGT = 792009;
  67.  
  68. function mR3MATBASECM_REGISTERMAPPINGT(p1, p3) {
  69.   return   DoA2(this.r3obj, 792009, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  70. }
  71.  
  72. // Description: Set preview image for the material without generating update events.
  73. // p3: Object, new image    
  74.  
  75. R3MATBASEM_SETPREVIEWIMAGENO = 792010;
  76.  
  77. function mR3MATBASEM_SETPREVIEWIMAGENO(p3) {
  78.   DoA(this.r3obj, 792010, p3, R3TID_OBJECT, 0);
  79. }
  80.  
  81. // Description: enumerate all (static and dynamic) channel requirements R3DoA3(cbobj, cbmth, channelname, typeid (0 if unknown),
  82. //      context);
  83. // p1: Object, callback object
  84. // p2: Integer, callback method
  85. // p3: Object, callback context    
  86.  
  87. R3MATBASEM_ENUMCHANNELS = 792011;
  88.  
  89. function mR3MATBASEM_ENUMCHANNELS(p1, p2, p3) {
  90.   DoA3(this.r3obj, 792011, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  91. }
  92.  
  93.  
  94.  
  95.  
  96. var R3MATBASEA_Renderer = 792500; // Object
  97. R3MATBASEA_PreviewImage = 792501;
  98. function SetR3MATBASEA_PreviewImage(value) {
  99.   R3Set(this.r3obj, R3MATBASEA_PreviewImage, value, R3TID_OBJECT, 0); 
  100. }
  101.  
  102. function GetR3MATBASEA_PreviewImage() {
  103.   return R3ToJS(R3Get(this.r3obj, R3MATBASEA_PreviewImage, R3TID_OBJECT, 0)); 
  104. }
  105.  
  106. R3MATBASEA_AlsoChangesObj = 792502;
  107. function SetR3MATBASEA_AlsoChangesObj(value) {
  108.   R3Set(this.r3obj, R3MATBASEA_AlsoChangesObj, value, R3TID_OBJECT, 0); 
  109. }
  110.  
  111. function GetR3MATBASEA_AlsoChangesObj() {
  112.   return R3ToJS(R3Get(this.r3obj, R3MATBASEA_AlsoChangesObj, R3TID_OBJECT, 0)); 
  113. }
  114.  
  115. R3MATBASEA_ShowPreview = 792503;
  116. function GetR3MATBASEA_ShowPreview() {
  117.   return R3Get(this.r3obj, R3MATBASEA_ShowPreview, R3TID_BOOLEAN, 0); 
  118. }
  119.  
  120. R3MATBASEA_PreviewProject = 792506;
  121. function SetR3MATBASEA_PreviewProject(value) {
  122.   R3Set(this.r3obj, R3MATBASEA_PreviewProject, value, R3TID_STRING, 0); 
  123. }
  124.  
  125. function GetR3MATBASEA_PreviewProject() {
  126.   return R3Get(this.r3obj, R3MATBASEA_PreviewProject, R3TID_STRING, 0); 
  127. }
  128.  
  129. R3MATBASEA_Mappable = 792507;
  130. function GetR3MATBASEA_Mappable() {
  131.   return R3Get(this.r3obj, R3MATBASEA_Mappable, R3TID_INTEGER, 0); 
  132. }
  133.  
  134. R3MATBASEA_Keyframer = 792508;
  135. function SetR3MATBASEA_Keyframer(value) {
  136.   R3Set(this.r3obj, R3MATBASEA_Keyframer, value, R3TID_OBJECT, 0); 
  137. }
  138.  
  139. function GetR3MATBASEA_Keyframer() {
  140.   return R3ToJS(R3Get(this.r3obj, R3MATBASEA_Keyframer, R3TID_OBJECT, 0)); 
  141. }
  142.  
  143. var R3MATBASEA_AniTag = 792509; // Integer
  144. var R3MATBASEA_AniTagIsAngle = 792511; // Boolean
  145. R3MATBASEA_PreferredMapping = 792512;
  146. function SetR3MATBASEA_PreferredMapping(value) {
  147.   R3Set(this.r3obj, R3MATBASEA_PreferredMapping, value, R3TID_INTEGER, 0); 
  148. }
  149.  
  150. function GetR3MATBASEA_PreferredMapping() {
  151.   return R3Get(this.r3obj, R3MATBASEA_PreferredMapping, R3TID_INTEGER, 0); 
  152. }
  153.  
  154. R3MATBASEA_MapFixedSize = 792513;
  155. function SetR3MATBASEA_MapFixedSize(value) {
  156.   R3Set(this.r3obj, R3MATBASEA_MapFixedSize, value, R3TID_INTEGER, 0); 
  157. }
  158.  
  159. function GetR3MATBASEA_MapFixedSize() {
  160.   return R3Get(this.r3obj, R3MATBASEA_MapFixedSize, R3TID_INTEGER, 0); 
  161. }
  162.  
  163. R3MATBASEA_MapFixedProportio = 792514;
  164. function SetR3MATBASEA_MapFixedProportio(value) {
  165.   R3Set(this.r3obj, R3MATBASEA_MapFixedProportio, value, R3TID_INTEGER, 0); 
  166. }
  167.  
  168. function GetR3MATBASEA_MapFixedProportio() {
  169.   return R3Get(this.r3obj, R3MATBASEA_MapFixedProportio, R3TID_INTEGER, 0); 
  170. }
  171.  
  172. R3MATBASEA_NotUsed = 792518;
  173. function SetR3MATBASEA_NotUsed(value) {
  174.   R3Set(this.r3obj, R3MATBASEA_NotUsed, value, R3TID_INTEGER, 0); 
  175. }
  176.  
  177. function GetR3MATBASEA_NotUsed() {
  178.   return R3Get(this.r3obj, R3MATBASEA_NotUsed, R3TID_INTEGER, 0); 
  179. }
  180.  
  181. R3MATBASEA_PreferredPriority = 792521;
  182. function SetR3MATBASEA_PreferredPriority(value) {
  183.   R3Set(this.r3obj, R3MATBASEA_PreferredPriority, value, R3TID_INTEGER, 0); 
  184. }
  185.  
  186. function GetR3MATBASEA_PreferredPriority() {
  187.   return R3Get(this.r3obj, R3MATBASEA_PreferredPriority, R3TID_INTEGER, 0); 
  188. }
  189.  
  190.  
  191.  
  192. function r3Materialbase () { 
  193.    this.base = r3God;
  194.    if(arguments.length) {
  195.       this.base(R3CLID_MATERIALBASE, arguments);
  196.    }
  197.    // Methods
  198.    this.RENDER=mR3MATBASEM_RENDER;
  199.    this.BEGINRENDER=mR3MATBASEM_BEGINRENDER;
  200.    this.ENDRENDER=mR3MATBASEM_ENDRENDER;
  201.    this.FINDCHILDBYNAME=mR3MATBASEM_FINDCHILDBYNAME;
  202.    this.REGISTERMAPPINGT=mR3MATBASECM_REGISTERMAPPINGT;
  203.    this.SETPREVIEWIMAGENO=mR3MATBASEM_SETPREVIEWIMAGENO;
  204.    this.ENUMCHANNELS=mR3MATBASEM_ENUMCHANNELS;
  205.  
  206.    // Attributes
  207.    this.GetPreviewImage=GetR3MATBASEA_PreviewImage;
  208.    this.SetPreviewImage=SetR3MATBASEA_PreviewImage;
  209.    this.GetAlsoChangesObj=GetR3MATBASEA_AlsoChangesObj;
  210.    this.SetAlsoChangesObj=SetR3MATBASEA_AlsoChangesObj;
  211.    this.GetShowPreview=GetR3MATBASEA_ShowPreview;
  212.    this.GetPreviewProject=GetR3MATBASEA_PreviewProject;
  213.    this.SetPreviewProject=SetR3MATBASEA_PreviewProject;
  214.    this.GetMappable=GetR3MATBASEA_Mappable;
  215.    this.GetKeyframer=GetR3MATBASEA_Keyframer;
  216.    this.SetKeyframer=SetR3MATBASEA_Keyframer;
  217.    this.GetPreferredMapping=GetR3MATBASEA_PreferredMapping;
  218.    this.SetPreferredMapping=SetR3MATBASEA_PreferredMapping;
  219.    this.GetMapFixedSize=GetR3MATBASEA_MapFixedSize;
  220.    this.SetMapFixedSize=SetR3MATBASEA_MapFixedSize;
  221.    this.GetMapFixedProportio=GetR3MATBASEA_MapFixedProportio;
  222.    this.SetMapFixedProportio=SetR3MATBASEA_MapFixedProportio;
  223.    this.GetNotUsed=GetR3MATBASEA_NotUsed;
  224.    this.SetNotUsed=SetR3MATBASEA_NotUsed;
  225.    this.GetPreferredPriority=GetR3MATBASEA_PreferredPriority;
  226.    this.SetPreferredPriority=SetR3MATBASEA_PreferredPriority;
  227. }
  228.  
  229. r3Materialbase.prototype=new r3Ttag;
  230. // r3matbas.h_H