Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How to delete dbText, dbBox, dbLine, and dbCircle

Author
Message
RangerEllis
13
Years of Service
User Offline
Joined: 15th Jan 2011
Location: Terrestrial Productions Current Project:
Posted: 2nd Feb 2011 02:27
How do you delete dbtext, box, line, and circle in Dark GDK?
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 2nd Feb 2011 03:17
If you mean clear it off the screen, use "dbCls" (I think that's the command.... not at my pc now).

The fastest code is the code never written.
RangerEllis
13
Years of Service
User Offline
Joined: 15th Jan 2011
Location: Terrestrial Productions Current Project:
Posted: 2nd Feb 2011 16:32 Edited at: 2nd Feb 2011 17:59
Ok thanks Hawkblood!
*EDIT* For anyone using this the correct code is "dbCLS" with the CLS capitalized.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 2nd Feb 2011 18:32
I thought if you would use dbSync(); in the loop. And if you call it to draw circles and dots, not calling it would be not rendering.



...and set mayRender to 0 if you dont want to draw it.

Anyway, thats what i think, but never used 2ddraw commands really...

RangerEllis
13
Years of Service
User Offline
Joined: 15th Jan 2011
Location: Terrestrial Productions Current Project:
Posted: 2nd Feb 2011 19:08
Ya the only reason I'm doing it is because I'm making a completely internal game so I don't have to do the media export stuff. Well anyway your saying that if I use that command all I would have to do is say it's "0" and the images would be deleted? I thought that after you draw that it stays, and if it's "0" it just wouldn't let me draw anymore.
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 2nd Feb 2011 22:18 Edited at: 2nd Feb 2011 22:19
dbSync() swaps the back buffer with the front one, the one displayed on the screen. All 2d and 3d drawing commands are drawn the the back buffer. By default using 3d commands clears the back buffer. When just using 2d you have to use dbCLS() to clear the back buffer. Once you're done with all your drawing command then swap the buffer so it shows to the screen using dbSync().

Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-06-23 03:21:58
Your offset time is: 2024-06-23 03:21:58