Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 593 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
two Panels with different bitmaps :S #350544
12/16/10 21:55
12/16/10 21:55
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
hopfel Offline OP
User
hopfel  Offline OP
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
Hey guys,
I want to create two panels, with the same bitmapfile as bitmap,
but not with the same bitmap-pointer,
so I can transform the bitmap from the first panel (with a pixelfunction)
without transforming the bitmap of the second one too.

Atm my code looks like:

Code:
PANEL* panel1 = {bmap = "picture.png";}
PANEL* panel2 = {bmap = "picture.png";}


Now panel1.bmap has the same pointer as panel2.bmap... :S

One solution is just to make a copy of the bitmapfile,
but then the filesize of the whole game is bigger,
and that's anyway not a "real" solution for me.

Hope, someone is so kind to help me. ^-^


Hilf mir, dir zu helfen!
Re: two Panels with different bitmaps :S [Re: hopfel] #350546
12/16/10 22:09
12/16/10 22:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Then MAKE two different pointers to this Bitmap:
Code:
BMAP* picture1 = "picture.png";
BMAP* picture2 = "picture.png";
PANEL* panel1 = {bmap = picture1;}
PANEL* panel2 = {bmap = picture2;}



Maybee that is not what you need, maybee you can create a second bitmap with the same size with bmap_createblack() and copy your orginalbitmap in this one. So your folder is not bigger, contains only one bmap.

Last edited by Widi; 12/16/10 22:13.
Re: two Panels with different bitmaps :S [Re: Widi] #350615
12/17/10 16:15
12/17/10 16:15
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
hopfel Offline OP
User
hopfel  Offline OP
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
Oh boy!
I made so many 2D-Games and I was not able to find the solution for this... ARGH! o.-'
Thank you for your help, I should really stop programming that late in the evening. :S


Hilf mir, dir zu helfen!

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1