home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 61 / CDPowerplay61Disc1.iso / patches / BladeToolsEnglish.exe / BladeToolsEnglish / Compilers / Textures Compiler / BaBx.py < prev    next >
Encoding:
Python Source  |  1999-01-11  |  1.8 KB  |  65 lines

  1. # This file was created automatically by SWIG.
  2. import BaBxc
  3. class BitmapDataPtr :
  4.     def __init__(self,this):
  5.         self.this = this
  6.         self.thisown = 0
  7.     def __del__(self):
  8.         if self.thisown == 1 :
  9.             BaBxc.delete_BitmapData(self.this)
  10.     def __str__(self):
  11.         val = BaBxc.BitmapData___str__(self.this)
  12.         return val
  13.     def __setattr__(self,name,value):
  14.         if name == "InternalName" :
  15.             BaBxc.BitmapData_InternalName_set(self.this,value)
  16.             return
  17.         if name == "BMPName" :
  18.             BaBxc.BitmapData_BMPName_set(self.this,value)
  19.             return
  20.         if name == "BMPName2" :
  21.             BaBxc.BitmapData_BMPName2_set(self.this,value)
  22.             return
  23.         if name == "Weight" :
  24.             BaBxc.BitmapData_Weight_set(self.this,value)
  25.             return
  26.         self.__dict__[name] = value
  27.     def __getattr__(self,name):
  28.         if name == "InternalName" : 
  29.             return BaBxc.BitmapData_InternalName_get(self.this)
  30.         if name == "BMPName" : 
  31.             return BaBxc.BitmapData_BMPName_get(self.this)
  32.         if name == "BMPName2" : 
  33.             return BaBxc.BitmapData_BMPName2_get(self.this)
  34.         if name == "Weight" : 
  35.             return BaBxc.BitmapData_Weight_get(self.this)
  36.         raise AttributeError,name
  37.     def __repr__(self):
  38.         return "<C BitmapData instance>"
  39. class BitmapData(BitmapDataPtr):
  40.     def __init__(self,arg0,arg1,arg2,*args) :
  41.         self.this = apply(BaBxc.new_BitmapData,(arg0,arg1,arg2,)+args)
  42.         self.thisown = 1
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. #-------------- FUNCTION WRAPPERS ------------------
  50.  
  51. ProcessBitmaps = BaBxc.ProcessBitmaps
  52.  
  53. ShowBitmaps = BaBxc.ShowBitmaps
  54.  
  55. nBitmaps = BaBxc.nBitmaps
  56.  
  57. SaveFile = BaBxc.SaveFile
  58.  
  59. LoadFile = BaBxc.LoadFile
  60.  
  61.  
  62.  
  63. #-------------- VARIABLE WRAPPERS ------------------
  64.  
  65.