AminetAminet
Search:
84734 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/blitz/BDChunkyLib.lha

Mirror:Random
Showing: generic icon
No screenshot available
Short:V1.0 - Library for BlitzBasic
Author: xn.baddolls at a2points.com (NUEL Xavier)
Type:dev/blitz
Version:V1.0
Architecture:m68k-amigaos
Date:1998-05-25
Requires:Blitz Basic
Replaces:dev/basic/BDChunkyLib.lha
Download:dev/blitz/BDChunkyLib.lha - View contents
Readme:dev/blitz/BDChunkyLib.readme
Downloads:3091

;--------------------------------------------------------

     BDChunkyLib  V1.0  (C) BadDolls Production

     20/05/1998

;--------------------------------------------------------
; How to install it, if you need another lib's number :
;
; First : Change the value of #bdchklib to a free number.
; ------  ( Have a look to DefLibMan in BUM9 )
;
; Second: Make blitzlibs:libmacs.res resident
; ------  ,select only 'Make Smallest Code'
;         in the Compiler Options
;         and create an executable ( BDChunkyLib.obj )
;
; Third : Remake your Deflibs ( via DefLibMan for example )
; ------
;________________________________________________________



First, there is a new object call "NChunky". This is a Chunky Buffer ;-)

The structure of this object is :

NEWTYPE.NChunky
  Width.l       ; Width of picture
  Height.l      ; Height of picture
  Size.l        ; Size of buffer
  AWidth.l      ; Aligned Width for buffer
  *ChunkyData.b ; Addr of the real chunky buffer
End NEWTYPE


The commands are :

 o  InitNChunky NChunky#,Width.l,Height.l  
      
    This command simply init the chunky buffer NChunky#.
    When use as a command, it return the address of the object.

 o  *AddrNChunky.NChunky=InitNChunky Width.l,Height.l

	This can be useful when you need a lot of NChunky buffers
     and don't want to assign them to a number. ( I need this in
     XLabProcess ;-)  )

 o  NChunkyToBtmA *AddrNChunky.l, *AddrBtm.l

    NChunkyToBtm  NChunky#, BitMap#

    Convert a NChunky to BitMap ( same size !!! )


 o  BtmToNChunkyA *AddrBtm.l *AddrNChunky.l

    BtmToNChunky BitMap#, NChunky#

    Convert a BitMap to a NChunky ( same size !!! )


 o   NCPlotA *AddrNChunky.l, x.l, y.l, colour.b

	NCPlot NChunky#, x.l, y.l, colour.b

     Just like the Plot command ;-)


 o   colour.b = NCPointA( *AddrNChunky.l, x.l, y.l )

     colour.b = NCPoint( NChunky#, x.l, y.l )

     Just like the Point command...


 o   NCBoxFA *AddrNChunky.l, x1.l, y1.l ,x2.l ,y2.l ,colour.b

     NCBoxF NChunky#, x1.l, y1.l, x2.l, y2.l, colour.b

     Just like the BoxF command...


 o   CopyNChunkyA *AddrNChunkySrc.l, *AddrNChunkyDest.l

	CopyNChunky NChunkySrc#, NChunkyDest#

     Will copy the NChunkySrc to the NChunkyDest.


 o   NCClsA *AddrNChunky.l ,colour.b

	NCCls NChunky# [,colour.b ]

     Hummm, like Cls...


 o   FreeNChunkyA *AddrNChunky.l

     Free a NChunky buffer.
     
 	ONLY USE THIS IF YOU HAVE USE THE InitNChunkyA COMMAND !!!
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 o   RemapNChunkyLineA *AddrNChunky.l ,y.l ,&RemapTable(0).l

     RemapNChunkyLine NChunky# ,y.l ,&RemapTable(0).l

     Simply Remap the line 'y' of your NChunky, using a color table.

	RemapTable() is a table for converting the colours.
	RemapTable must be .b !!!


 o   RemapNChunkyPointA *AddrNChunky.l ,x.l, y.l ,&RemapTable(0).l

     RemapNChunkyPoint NChunky# ,x.l, y.l ,&RemapTable(0).l

     Simply Remap the point x,y of your NChunky, using a color table.

	RemapTable() is a table for converting the colours.
	RemapTable must be .b !!!


Contents of dev/blitz/BDChunkyLib.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic]                 3004   12994  23.1% -lh5- 0965 May 20  1998 BDChunkyLib.asc
[generic]                 1346    3320  40.5% -lh5- 7963 May 20  1998 BDChunkyLib.obj
[generic]                 1133    3068  36.9% -lh5- 1adb May 20  1998 BDChunkyLib.readme
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         3 files    5483   19382  28.3%            May 25  1998
Page generated in 0.01 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>