VBfx / Tile tutorial / Step 1

Resource managers

We already have one resource manager, it's the mTiles Module! So how can managers make life easier? The idea is to code a stand-alone Module that handles a certain resource so we can just add it to the project, use it and don't care about what happens behind the interface. Sounds complicated? Well let's have a look at the mBitmap Module we're going to develop now.

mBitmap

Since we're going to replace the PictureBoxes we need a new resource manager here. I decided to make a Module that can load bitmaps from files and returns a index we can use to access the loaded files. It cares about memory management, loading the files, get properties and everything. Also I added a function to create a empty bitmap, however we won't uset this yet since it's for double buffering.

Navigation