![]() |
|
#1
|
||||
|
||||
Drawing orderHi!
I'm making a card game using FLTK and I need to be able to dynamically change the drawing order of the cards. Is this possible with just FLTK calls or do I have to make a class that manages the drawing order of the cards and then calls the cards draw() function in that order? |
|
#2
|
||||
|
||||
Re: Drawing orderQuote:
Do you have cards displayed over each other? If so, you may want to look into the tab order for display purposes. I was toying around with a card game a while back, I'll see if I can find some code that does that. If it is something else, explain a little more in detail or, better yet, show us a little bit of code that shows what you are after. Mark BTW, Welcome to GIDForums™ FLTK Forum. Glad to have you on board! __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
||||
|
||||
Re: Drawing orderQuote:
This is what I'm getting now: ![]() As you can see, the uppmost cards are not drawn in the right position. What I want is some sort of z ordering of the cards. |
|
#4
|
|||
|
|||
Re: Drawing orderuse group and change order of child redraw group
|
|
#5
|
||||
|
||||
Re: Drawing orderQuote:
|
|
#6
|
|||
|
|||
Re: Drawing ordermain.h
CPP / C++ / C Code:
CPP / C++ / C Code:
thats all |
|
#7
|
||||
|
||||
Re: Drawing orderThank you very much!
I can't test it right now, but hopefully it will work! :-) |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| triangle (polygon), drawing, sizing, and rotation programme using linked lists... | promsan | C Programming Language | 12 | 14-May-2007 15:03 |
| Program Newbie: 3 numbers in ascending order | You Look Bored | C++ Forum | 9 | 03-Aug-2006 13:47 |
| CPanel Hosting, Teamspeak 2 Hosting, SHOUTcast Hosting, As Low As $2.00 per Month | Kalypsoweb | Web Hosting Advertisements & Offers | 0 | 30-Jul-2006 17:00 |
| How to save a drawing to the file | amgturk | MS Visual C++ / MFC Forum | 2 | 25-Jul-2005 01:29 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 10:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The