This containes examples of bmpman usage
static int test_inited = 0;
static int test_bmp;
static uint test_bmp_data[128 * 64];
if (!test_inited) {
test_inited = 1;
test_bmp =
bm_create(32, 128, 64, test_bmp_data);
for (i = 0; i < 64; i++) {
for (j = 0; j < 64; j++) {
test_bmp_data[j + i * 128] =
r;
}
}
}
for (y = 0; y < 64; y++) {
for (x = 0; x < 128; x++) {
test_bmp_data[y * 128 +
x] = 15;
}
}
}