English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 02 October 2006, 02:16   #1
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
_LVOOpenScreen() Bitmap

Hi

I open a screen with a depth of 1, and I want to load a 320x256x1bitplane bitmap to it.

Does the bitmap in the Screen Structure point to the Bitmap or does it point to a bitmap structure?

thanks.
redblade is offline  
Old 02 October 2006, 19:03   #2
ganralf
Registered User
 
Join Date: May 2006
Location: Germany
Posts: 97
Screen->BitMap is an embedded BitMap structure and not a pointer. For that reason this BitMap structure is not allowed to grow and one should access Screen->RastPort->BitMap (which is a pointer to the screen's BitMap structure).

Anyway for your purpose you should allocate a BitMap before opening the screen and supply that structure to OpenScreen():

myBitMap=AllocBitMap(320,256,1,BMF_DISPLAYABLE,NULL);
Load you graphic to myBitMap->Planes[0];
myScreen=OpenScreenTags(NULL, ... , SABitMap, myBitMap , ... );

This will save memory and avoid flicker.
ganralf is offline  
Old 02 October 2006, 23:25   #3
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
thanks
redblade is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Return of some Bitmap titles? Bloodwych Amiga scene 13 06 January 2013 14:09
the bitmap bros are from the uk petza Nostalgia & memories 53 12 May 2006 16:08
Bitmap Brothers Interview wakeupbomb Nostalgia & memories 4 23 March 2003 01:42
New Bitmap Brothers project? Shatterhand Retrogaming General Discussion 12 30 December 2002 01:04

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11164 seconds with 13 queries