MPacker Free pak for bmax (Beta)

BlitzMax Forums/BlitzMax Programming/MPacker Free pak for bmax (Beta)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ziggy : Yes of course !

Sarge : Can you post you code ? because my example work only
at my home :) you must convert the file with your hown media and
directory.

first create a pak (change the pak name and media of couse)

MPK_CreatePak("C:\Filou\Test.mpk")
MPK_AddFileToPak("C:\Filou\test01.jpg")
MPK_AddFileToPak("C:\Filou\test02.jpg")
MPK_AddFileToPak("C:\Filou\test03.jpg")
MPK_ClosePak()


Next example with image loading.

' ------------------------------------------------
' You can use multi transparent pak for load image
' ------------------------------------------------
MPK_InitPak("C:\Filou\Test.mpk")
Local img:Timage=LoadImage(ResizePixmap(MPK_LoadPixmap("IMG_1721.JPG"),GraphicsWidth(),GraphicsHeight()),DYNAMICIMAGE)
MPK_ClosePak()

And next draw your image ...

DrawImage img,0,0
Flip
waitkey

download this example with code+pak file
http://www.blitz3dfr.com/tempo/MPacker-Example.rar