07 July 2019, 13:52 | #1 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 189
|
Covert BitMap to ImageData for Bobs
I'm just trying to display a Bob using the GELs system.
RKRM Libraries page 637 contains a description of the image format needed to display a Bob properly. However I loaded the image already using datatypes. Now I've a pointer to the struct BitMap of the image data. I just don't know how to convert it. Is there any known way to convert the BitMap->Planes to the Bob format? |
07 July 2019, 16:37 | #2 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,216
|
Quote:
Code:
NEWOB myNewBob = { /* Data for the new ob structure defined in animtools.h */ bob_data2,NULL, /* Image,ColorSet */ 32,4,2,2, /* Width,Heigth,Depth,RasterDepth */ 160,100, /* x,y */ SAVEBACK | OVERLAY,ISBOB, /* Flags,ExtraFlags */ 3,0, /* PlanePick,PlaneOnOff */ 0,0 /* meMask,hitMask */ }; Code:
UWORD __chip bob_data2[2*2*GEL_SIZE]={ /*plane 1*/ 0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa,0xaaaa, /*plane 2*/ 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555 }; |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GOTEK Floppy Emulator: Covert ADF to real floppies? | c0dehunter | support.Hardware | 7 | 29 May 2016 20:27 |
Clipping bobs | roondar | Coders. General | 18 | 24 September 2015 09:54 |
FS: Various bits n bobs | jujasi | MarketPlace | 0 | 12 July 2009 19:13 |
Covert Action | bornemannen | Games images which need to be WHDified | 4 | 04 October 2006 12:32 |
Covert Action by Microprose | hiptanaka | request.Old Rare Games | 2 | 30 July 2006 20:32 |
|
|