home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3uimage.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_USERIMAGE_H = 1;
- include("real/code/r3ttag.js")
-
-
- var R3CLID_USERIMAGE = 538;
-
-
-
-
- // Description: reads the image data into ram memory. The returned image remains valid only while
- // the image library is locked.
- // Returns: Object, address of R3CLID_RAWIMAGE datatype object
-
- R3UIMGM_LOADIMAGE = 538000;
-
- function mR3UIMGM_LOADIMAGE() {
- return R3ToJS( DoA(this.r3obj, 538000, 0, R3TID_INTEGER, 0));
- }
-
- // Description: Ends use of the loaded RAM image. Image will be freed in the next
- // image cache flush unless it is used by other systems.
-
- R3UIMGM_UNLOADIMAGE = 538001;
-
- function mR3UIMGM_UNLOADIMAGE() {
- DoA(this.r3obj, 538001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerates associated channel names as successive calls: * R3DoA3(cbobj, cbmth, void *callback_context, char *name)
-
- R3UIMGM_ENUMCHANNELS = 538002;
-
- function mR3UIMGM_ENUMCHANNELS() {
- DoA(this.r3obj, 538002, 0, R3TID_INTEGER, 0);
- }
-
-
- R3UIMGM_ENUMCB = 538003;
-
- function mR3UIMGM_ENUMCB() {
- DoA(this.r3obj, 538003, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Ask system to reload the image.
-
- R3UIMGM_RELOADIMAGE = 538004;
-
- function mR3UIMGM_RELOADIMAGE() {
- DoA(this.r3obj, 538004, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- var R3UIMGA_ImageContents = 538500; // Boolean
- R3UIMGA_ImageFile = 538501;
- function SetR3UIMGA_ImageFile(value) {
- R3Set(this.r3obj, R3UIMGA_ImageFile, value, R3TID_STRING, 0);
- }
-
- function GetR3UIMGA_ImageFile() {
- return R3Get(this.r3obj, R3UIMGA_ImageFile, R3TID_STRING, 0);
- }
-
- R3UIMGA_Image = 538502;
- function GetR3UIMGA_Image() {
- return R3ToJS(R3Get(this.r3obj, R3UIMGA_Image, R3TID_OBJECT, 0));
- }
-
- R3UIMGA_Frame = 538503;
- function SetR3UIMGA_Frame(value) {
- R3Set(this.r3obj, R3UIMGA_Frame, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_Frame() {
- return R3Get(this.r3obj, R3UIMGA_Frame, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_AlsoChangesObj = 538504;
- function SetR3UIMGA_AlsoChangesObj(value) {
- R3Set(this.r3obj, R3UIMGA_AlsoChangesObj, value, R3TID_OBJECT, 0);
- }
-
- function GetR3UIMGA_AlsoChangesObj() {
- return R3ToJS(R3Get(this.r3obj, R3UIMGA_AlsoChangesObj, R3TID_OBJECT, 0));
- }
-
- R3UIMGA_AlsoChangesMethod = 538505;
- function SetR3UIMGA_AlsoChangesMethod(value) {
- R3Set(this.r3obj, R3UIMGA_AlsoChangesMethod, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_AlsoChangesMethod() {
- return R3Get(this.r3obj, R3UIMGA_AlsoChangesMethod, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_TextureAnimation = 538506;
- function SetR3UIMGA_TextureAnimation(value) {
- R3Set(this.r3obj, R3UIMGA_TextureAnimation, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_TextureAnimation() {
- return R3Get(this.r3obj, R3UIMGA_TextureAnimation, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_Type = 538507;
- function GetR3UIMGA_Type() {
- return R3Get(this.r3obj, R3UIMGA_Type, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_BaseName = 538508;
- function SetR3UIMGA_BaseName(value) {
- R3Set(this.r3obj, R3UIMGA_BaseName, value, R3TID_STRING, 0);
- }
-
- function GetR3UIMGA_BaseName() {
- return R3Get(this.r3obj, R3UIMGA_BaseName, R3TID_STRING, 0);
- }
-
- R3UIMGA_BaseIndex = 538509;
- function SetR3UIMGA_BaseIndex(value) {
- R3Set(this.r3obj, R3UIMGA_BaseIndex, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_BaseIndex() {
- return R3Get(this.r3obj, R3UIMGA_BaseIndex, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_TileAnimation = 538510;
- function SetR3UIMGA_TileAnimation(value) {
- R3Set(this.r3obj, R3UIMGA_TileAnimation, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_TileAnimation() {
- return R3Get(this.r3obj, R3UIMGA_TileAnimation, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_FlipAnimation = 538511;
- function SetR3UIMGA_FlipAnimation(value) {
- R3Set(this.r3obj, R3UIMGA_FlipAnimation, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_FlipAnimation() {
- return R3Get(this.r3obj, R3UIMGA_FlipAnimation, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_ReverseAnimation = 538512;
- function SetR3UIMGA_ReverseAnimation(value) {
- R3Set(this.r3obj, R3UIMGA_ReverseAnimation, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_ReverseAnimation() {
- return R3Get(this.r3obj, R3UIMGA_ReverseAnimation, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_NumFrames = 538513;
- function SetR3UIMGA_NumFrames(value) {
- R3Set(this.r3obj, R3UIMGA_NumFrames, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_NumFrames() {
- return R3Get(this.r3obj, R3UIMGA_NumFrames, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_Format = 538514;
- function SetR3UIMGA_Format(value) {
- R3Set(this.r3obj, R3UIMGA_Format, value, R3TID_STRING, 0);
- }
-
- function GetR3UIMGA_Format() {
- return R3Get(this.r3obj, R3UIMGA_Format, R3TID_STRING, 0);
- }
-
- R3UIMGA_FormatType = 538515;
- function SetR3UIMGA_FormatType(value) {
- R3Set(this.r3obj, R3UIMGA_FormatType, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_FormatType() {
- return R3Get(this.r3obj, R3UIMGA_FormatType, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_FormatDigits = 538516;
- function SetR3UIMGA_FormatDigits(value) {
- R3Set(this.r3obj, R3UIMGA_FormatDigits, value, R3TID_INTEGER, 0);
- }
-
- function GetR3UIMGA_FormatDigits() {
- return R3Get(this.r3obj, R3UIMGA_FormatDigits, R3TID_INTEGER, 0);
- }
-
- R3UIMGA_FormatName = 538517;
- function GetR3UIMGA_FormatName() {
- return R3Get(this.r3obj, R3UIMGA_FormatName, R3TID_STRING, 0);
- }
-
- var R3UIMGTYPE_UNKNOWN = 0;
- var R3UIMGTYPE_ANIMATIONFILE = 1;
- var R3UIMGTYPE_SEPARATEIMAGES = 2;
- var R3UIMGANIM_NONE = 0;
- var R3UIMGANIM_AUTOMATIC = 1;
- var R3UIMGANIM_KEYFRAME = 2;
- var R3UIMGFORMAT_AUTO = 0;
- var R3UIMGFORMAT_CUSTOM = 1;
-
-
- function r3Userimage () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_USERIMAGE, arguments);
- }
- // Methods
- this.LOADIMAGE=mR3UIMGM_LOADIMAGE;
- this.UNLOADIMAGE=mR3UIMGM_UNLOADIMAGE;
- this.ENUMCHANNELS=mR3UIMGM_ENUMCHANNELS;
- this.ENUMCB=mR3UIMGM_ENUMCB;
- this.RELOADIMAGE=mR3UIMGM_RELOADIMAGE;
-
- // Attributes
- this.GetImageFile=GetR3UIMGA_ImageFile;
- this.SetImageFile=SetR3UIMGA_ImageFile;
- this.GetImage=GetR3UIMGA_Image;
- this.GetFrame=GetR3UIMGA_Frame;
- this.SetFrame=SetR3UIMGA_Frame;
- this.GetAlsoChangesObj=GetR3UIMGA_AlsoChangesObj;
- this.SetAlsoChangesObj=SetR3UIMGA_AlsoChangesObj;
- this.GetAlsoChangesMethod=GetR3UIMGA_AlsoChangesMethod;
- this.SetAlsoChangesMethod=SetR3UIMGA_AlsoChangesMethod;
- this.GetTextureAnimation=GetR3UIMGA_TextureAnimation;
- this.SetTextureAnimation=SetR3UIMGA_TextureAnimation;
- this.GetType=GetR3UIMGA_Type;
- this.GetBaseName=GetR3UIMGA_BaseName;
- this.SetBaseName=SetR3UIMGA_BaseName;
- this.GetBaseIndex=GetR3UIMGA_BaseIndex;
- this.SetBaseIndex=SetR3UIMGA_BaseIndex;
- this.GetTileAnimation=GetR3UIMGA_TileAnimation;
- this.SetTileAnimation=SetR3UIMGA_TileAnimation;
- this.GetFlipAnimation=GetR3UIMGA_FlipAnimation;
- this.SetFlipAnimation=SetR3UIMGA_FlipAnimation;
- this.GetReverseAnimation=GetR3UIMGA_ReverseAnimation;
- this.SetReverseAnimation=SetR3UIMGA_ReverseAnimation;
- this.GetNumFrames=GetR3UIMGA_NumFrames;
- this.SetNumFrames=SetR3UIMGA_NumFrames;
- this.GetFormat=GetR3UIMGA_Format;
- this.SetFormat=SetR3UIMGA_Format;
- this.GetFormatType=GetR3UIMGA_FormatType;
- this.SetFormatType=SetR3UIMGA_FormatType;
- this.GetFormatDigits=GetR3UIMGA_FormatDigits;
- this.SetFormatDigits=SetR3UIMGA_FormatDigits;
- this.GetFormatName=GetR3UIMGA_FormatName;
- }
-
- r3Userimage.prototype=new r3Ttag;
- // r3uimage.h_H