home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilsm / mdisplay / !MDisplay / TechDoc < prev    next >
Text File  |  1993-06-07  |  864b  |  23 lines

  1.   If you want to use the most excellent MDisplay module in your own code,
  2. then all you have to do is load it, load the pic at User_SpriteAddress%,
  3. work out the sprite's X and Y sizes (User_SpriteSizeX% and User_SpriteSizeY%)
  4. then write a bit of code that goes like this:
  5.  
  6.   User_Mode%=MODE
  7.   REM Remember what mode we were in.
  8.  
  9.   SYS "MDisplay_Show",User_SpriteAddress%,User_SpriteSizeX%,User_SpriteSizeY%
  10.   REM Leap into 480k's worth of glorious multisync memory.
  11.   REM You *do* have enough memory, don't you?
  12.  
  13.   SYS "Wimp_SetMode",User_Mode%
  14.   REM Return to our previous mode.
  15.  
  16.   OSCLI("FX 15")
  17.   REM Clear the keyboard buffer of "///'''xzxz//x'zz " chars.
  18.  
  19. Simple, innit!
  20. Look at the BASIC source code for more details on how to rip out
  21. the size info from a sprite block, but note that I don't do it nicely!
  22. Remember to say "Ta" to Colin if you use his module.
  23.