Example #1
0
        public void drawTile16(byte tid, Tile16 t16)
        {
            TileInfo t = t16.tile0;

            if (tid == 0)
            {
                t = t16.tile0;
                draw_tile(t, 0, 0, t.palette);
            }
            if (tid == 1)
            {
                t = t16.tile1;
                draw_tile(t, 8, 0, t.palette);
            }
            if (tid == 2)
            {
                t = t16.tile2;
                draw_tile(t, 0, 8, t.palette);
            }
            if (tid == 3)
            {
                t = t16.tile3;
                draw_tile(t, 8, 8, t.palette);
            }
        }
Example #2
0
        //TODO : Change that to use bitlock instead of drawimage
        public Bitmap createTile16(Tile16 t16)
        {
            Bitmap t16bitmap = new Bitmap(16, 16);

            GFX.begin_draw(t16bitmap, 16, 16);
            drawTile16(0, t16);
            drawTile16(1, t16);
            drawTile16(2, t16);
            drawTile16(3, t16);
            GFX.end_draw(t16bitmap);
            return(t16bitmap);
        }