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 / r3uimage.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  7.4 KB  |  259 lines

  1.  
  2. // JavaScript wrapper for r3uimage.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_USERIMAGE_H = 1;
  7. include("real/code/r3ttag.js")
  8.  
  9.  
  10. var R3CLID_USERIMAGE = 538;
  11.  
  12.  
  13.  
  14.  
  15. // Description: reads the image data into ram memory. The returned image remains valid only while
  16. //      the image library is locked.
  17. // Returns: Object, address of R3CLID_RAWIMAGE datatype object
  18.  
  19. R3UIMGM_LOADIMAGE = 538000;
  20.  
  21. function mR3UIMGM_LOADIMAGE() {
  22.   return R3ToJS(  DoA(this.r3obj, 538000, 0, R3TID_INTEGER, 0));
  23. }
  24.  
  25. // Description: Ends use of the loaded RAM image. Image will be freed in the next
  26. //      image cache flush unless it is used by other systems.
  27.  
  28. R3UIMGM_UNLOADIMAGE = 538001;
  29.  
  30. function mR3UIMGM_UNLOADIMAGE() {
  31.   DoA(this.r3obj, 538001, 0, R3TID_INTEGER, 0);
  32. }
  33.  
  34. // Description: Enumerates associated channel names as successive calls:    * R3DoA3(cbobj, cbmth, void *callback_context, char *name)
  35.  
  36. R3UIMGM_ENUMCHANNELS = 538002;
  37.  
  38. function mR3UIMGM_ENUMCHANNELS() {
  39.   DoA(this.r3obj, 538002, 0, R3TID_INTEGER, 0);
  40. }
  41.  
  42.  
  43. R3UIMGM_ENUMCB = 538003;
  44.  
  45. function mR3UIMGM_ENUMCB() {
  46.   DoA(this.r3obj, 538003, 0, R3TID_INTEGER, 0);
  47. }
  48.  
  49. // Description: Ask system to reload the image.
  50.  
  51. R3UIMGM_RELOADIMAGE = 538004;
  52.  
  53. function mR3UIMGM_RELOADIMAGE() {
  54.   DoA(this.r3obj, 538004, 0, R3TID_INTEGER, 0);
  55. }
  56.  
  57.  
  58.  
  59.  
  60. var R3UIMGA_ImageContents = 538500; // Boolean
  61. R3UIMGA_ImageFile = 538501;
  62. function SetR3UIMGA_ImageFile(value) {
  63.   R3Set(this.r3obj, R3UIMGA_ImageFile, value, R3TID_STRING, 0); 
  64. }
  65.  
  66. function GetR3UIMGA_ImageFile() {
  67.   return R3Get(this.r3obj, R3UIMGA_ImageFile, R3TID_STRING, 0); 
  68. }
  69.  
  70. R3UIMGA_Image = 538502;
  71. function GetR3UIMGA_Image() {
  72.   return R3ToJS(R3Get(this.r3obj, R3UIMGA_Image, R3TID_OBJECT, 0)); 
  73. }
  74.  
  75. R3UIMGA_Frame = 538503;
  76. function SetR3UIMGA_Frame(value) {
  77.   R3Set(this.r3obj, R3UIMGA_Frame, value, R3TID_INTEGER, 0); 
  78. }
  79.  
  80. function GetR3UIMGA_Frame() {
  81.   return R3Get(this.r3obj, R3UIMGA_Frame, R3TID_INTEGER, 0); 
  82. }
  83.  
  84. R3UIMGA_AlsoChangesObj = 538504;
  85. function SetR3UIMGA_AlsoChangesObj(value) {
  86.   R3Set(this.r3obj, R3UIMGA_AlsoChangesObj, value, R3TID_OBJECT, 0); 
  87. }
  88.  
  89. function GetR3UIMGA_AlsoChangesObj() {
  90.   return R3ToJS(R3Get(this.r3obj, R3UIMGA_AlsoChangesObj, R3TID_OBJECT, 0)); 
  91. }
  92.  
  93. R3UIMGA_AlsoChangesMethod = 538505;
  94. function SetR3UIMGA_AlsoChangesMethod(value) {
  95.   R3Set(this.r3obj, R3UIMGA_AlsoChangesMethod, value, R3TID_INTEGER, 0); 
  96. }
  97.  
  98. function GetR3UIMGA_AlsoChangesMethod() {
  99.   return R3Get(this.r3obj, R3UIMGA_AlsoChangesMethod, R3TID_INTEGER, 0); 
  100. }
  101.  
  102. R3UIMGA_TextureAnimation = 538506;
  103. function SetR3UIMGA_TextureAnimation(value) {
  104.   R3Set(this.r3obj, R3UIMGA_TextureAnimation, value, R3TID_INTEGER, 0); 
  105. }
  106.  
  107. function GetR3UIMGA_TextureAnimation() {
  108.   return R3Get(this.r3obj, R3UIMGA_TextureAnimation, R3TID_INTEGER, 0); 
  109. }
  110.  
  111. R3UIMGA_Type = 538507;
  112. function GetR3UIMGA_Type() {
  113.   return R3Get(this.r3obj, R3UIMGA_Type, R3TID_INTEGER, 0); 
  114. }
  115.  
  116. R3UIMGA_BaseName = 538508;
  117. function SetR3UIMGA_BaseName(value) {
  118.   R3Set(this.r3obj, R3UIMGA_BaseName, value, R3TID_STRING, 0); 
  119. }
  120.  
  121. function GetR3UIMGA_BaseName() {
  122.   return R3Get(this.r3obj, R3UIMGA_BaseName, R3TID_STRING, 0); 
  123. }
  124.  
  125. R3UIMGA_BaseIndex = 538509;
  126. function SetR3UIMGA_BaseIndex(value) {
  127.   R3Set(this.r3obj, R3UIMGA_BaseIndex, value, R3TID_INTEGER, 0); 
  128. }
  129.  
  130. function GetR3UIMGA_BaseIndex() {
  131.   return R3Get(this.r3obj, R3UIMGA_BaseIndex, R3TID_INTEGER, 0); 
  132. }
  133.  
  134. R3UIMGA_TileAnimation = 538510;
  135. function SetR3UIMGA_TileAnimation(value) {
  136.   R3Set(this.r3obj, R3UIMGA_TileAnimation, value, R3TID_INTEGER, 0); 
  137. }
  138.  
  139. function GetR3UIMGA_TileAnimation() {
  140.   return R3Get(this.r3obj, R3UIMGA_TileAnimation, R3TID_INTEGER, 0); 
  141. }
  142.  
  143. R3UIMGA_FlipAnimation = 538511;
  144. function SetR3UIMGA_FlipAnimation(value) {
  145.   R3Set(this.r3obj, R3UIMGA_FlipAnimation, value, R3TID_INTEGER, 0); 
  146. }
  147.  
  148. function GetR3UIMGA_FlipAnimation() {
  149.   return R3Get(this.r3obj, R3UIMGA_FlipAnimation, R3TID_INTEGER, 0); 
  150. }
  151.  
  152. R3UIMGA_ReverseAnimation = 538512;
  153. function SetR3UIMGA_ReverseAnimation(value) {
  154.   R3Set(this.r3obj, R3UIMGA_ReverseAnimation, value, R3TID_INTEGER, 0); 
  155. }
  156.  
  157. function GetR3UIMGA_ReverseAnimation() {
  158.   return R3Get(this.r3obj, R3UIMGA_ReverseAnimation, R3TID_INTEGER, 0); 
  159. }
  160.  
  161. R3UIMGA_NumFrames = 538513;
  162. function SetR3UIMGA_NumFrames(value) {
  163.   R3Set(this.r3obj, R3UIMGA_NumFrames, value, R3TID_INTEGER, 0); 
  164. }
  165.  
  166. function GetR3UIMGA_NumFrames() {
  167.   return R3Get(this.r3obj, R3UIMGA_NumFrames, R3TID_INTEGER, 0); 
  168. }
  169.  
  170. R3UIMGA_Format = 538514;
  171. function SetR3UIMGA_Format(value) {
  172.   R3Set(this.r3obj, R3UIMGA_Format, value, R3TID_STRING, 0); 
  173. }
  174.  
  175. function GetR3UIMGA_Format() {
  176.   return R3Get(this.r3obj, R3UIMGA_Format, R3TID_STRING, 0); 
  177. }
  178.  
  179. R3UIMGA_FormatType = 538515;
  180. function SetR3UIMGA_FormatType(value) {
  181.   R3Set(this.r3obj, R3UIMGA_FormatType, value, R3TID_INTEGER, 0); 
  182. }
  183.  
  184. function GetR3UIMGA_FormatType() {
  185.   return R3Get(this.r3obj, R3UIMGA_FormatType, R3TID_INTEGER, 0); 
  186. }
  187.  
  188. R3UIMGA_FormatDigits = 538516;
  189. function SetR3UIMGA_FormatDigits(value) {
  190.   R3Set(this.r3obj, R3UIMGA_FormatDigits, value, R3TID_INTEGER, 0); 
  191. }
  192.  
  193. function GetR3UIMGA_FormatDigits() {
  194.   return R3Get(this.r3obj, R3UIMGA_FormatDigits, R3TID_INTEGER, 0); 
  195. }
  196.  
  197. R3UIMGA_FormatName = 538517;
  198. function GetR3UIMGA_FormatName() {
  199.   return R3Get(this.r3obj, R3UIMGA_FormatName, R3TID_STRING, 0); 
  200. }
  201.  
  202. var R3UIMGTYPE_UNKNOWN = 0;
  203. var R3UIMGTYPE_ANIMATIONFILE = 1;
  204. var R3UIMGTYPE_SEPARATEIMAGES = 2;
  205. var R3UIMGANIM_NONE = 0;
  206. var R3UIMGANIM_AUTOMATIC = 1;
  207. var R3UIMGANIM_KEYFRAME = 2;
  208. var R3UIMGFORMAT_AUTO = 0;
  209. var R3UIMGFORMAT_CUSTOM = 1;
  210.  
  211.  
  212. function r3Userimage () { 
  213.    this.base = r3God;
  214.    if(arguments.length) {
  215.       this.base(R3CLID_USERIMAGE, arguments);
  216.    }
  217.    // Methods
  218.    this.LOADIMAGE=mR3UIMGM_LOADIMAGE;
  219.    this.UNLOADIMAGE=mR3UIMGM_UNLOADIMAGE;
  220.    this.ENUMCHANNELS=mR3UIMGM_ENUMCHANNELS;
  221.    this.ENUMCB=mR3UIMGM_ENUMCB;
  222.    this.RELOADIMAGE=mR3UIMGM_RELOADIMAGE;
  223.  
  224.    // Attributes
  225.    this.GetImageFile=GetR3UIMGA_ImageFile;
  226.    this.SetImageFile=SetR3UIMGA_ImageFile;
  227.    this.GetImage=GetR3UIMGA_Image;
  228.    this.GetFrame=GetR3UIMGA_Frame;
  229.    this.SetFrame=SetR3UIMGA_Frame;
  230.    this.GetAlsoChangesObj=GetR3UIMGA_AlsoChangesObj;
  231.    this.SetAlsoChangesObj=SetR3UIMGA_AlsoChangesObj;
  232.    this.GetAlsoChangesMethod=GetR3UIMGA_AlsoChangesMethod;
  233.    this.SetAlsoChangesMethod=SetR3UIMGA_AlsoChangesMethod;
  234.    this.GetTextureAnimation=GetR3UIMGA_TextureAnimation;
  235.    this.SetTextureAnimation=SetR3UIMGA_TextureAnimation;
  236.    this.GetType=GetR3UIMGA_Type;
  237.    this.GetBaseName=GetR3UIMGA_BaseName;
  238.    this.SetBaseName=SetR3UIMGA_BaseName;
  239.    this.GetBaseIndex=GetR3UIMGA_BaseIndex;
  240.    this.SetBaseIndex=SetR3UIMGA_BaseIndex;
  241.    this.GetTileAnimation=GetR3UIMGA_TileAnimation;
  242.    this.SetTileAnimation=SetR3UIMGA_TileAnimation;
  243.    this.GetFlipAnimation=GetR3UIMGA_FlipAnimation;
  244.    this.SetFlipAnimation=SetR3UIMGA_FlipAnimation;
  245.    this.GetReverseAnimation=GetR3UIMGA_ReverseAnimation;
  246.    this.SetReverseAnimation=SetR3UIMGA_ReverseAnimation;
  247.    this.GetNumFrames=GetR3UIMGA_NumFrames;
  248.    this.SetNumFrames=SetR3UIMGA_NumFrames;
  249.    this.GetFormat=GetR3UIMGA_Format;
  250.    this.SetFormat=SetR3UIMGA_Format;
  251.    this.GetFormatType=GetR3UIMGA_FormatType;
  252.    this.SetFormatType=SetR3UIMGA_FormatType;
  253.    this.GetFormatDigits=GetR3UIMGA_FormatDigits;
  254.    this.SetFormatDigits=SetR3UIMGA_FormatDigits;
  255.    this.GetFormatName=GetR3UIMGA_FormatName;
  256. }
  257.  
  258. r3Userimage.prototype=new r3Ttag;
  259. // r3uimage.h_H