Hi!

FRAME struct
is a struct that allocates all the pointers to BMAPs

You can create all you want with 'frame_create' function. Its parameter are the images for the frame. This function returns a pointer to the created struct.

Code:
var *myFrame = frame_create ( "center.tga", "top.tga", "bottom.tga", "left.tga", "right.tga", "top-left.tga", "top-right.tga", "bottom-left.tga", "bottom-right.tga" );



Use 'frame_remove ( myFrame )' to remove allocated frame sets before exiting.

Draw the frame with 'pan_frame ( myPanel, myFrame, SizeX, SizeY )'. It fits the panel size and bitmap size to given dimensions.

Salud!

PD: I thought main function was enough explanatory