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.

Newcomers DBPro Corner / Text and DBP

Author
Message
AramusM
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 6th Dec 2003 20:37
Im new to Dark Basic Pro, I've played around with VB, Amos, C++, Pascal etc. I have a couple of questions, and looking through the manuals and help with the program i could find much information on what i wanted to try do.

1. Does Print and Text only send their output to the screen, can it be redirected to a bitmap for later use? because it seems at the moment i have to reprint the text to the screen every frame even if it rarely updates.

2. If not will i have to make my own print function which uses bitmap containing my font and parse strings and copy and paste the character images from the bitmap to my texture?


What im aiming for is a floating windows effect that will be renderd after the 3d scene is renderd. and have the windows contain my text interface. as only things like fps and poly's displayed will need to be updated every frame they can go straight to the backbuffer for rendering, but static information i dont want to have to redo every frame.

Hope that all makes sense.

Aramus
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Dec 2003 20:46
the screen is a bitmap(bitmap 0) so you can can write text to an off screen bitmap by making a new one a using 'set current bitmap'you can then write to this hidden bitmap with print+text if you wish just remember to set it back to 0 after adding to it so your program will draw to the right bitmap once again.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
AramusM
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 6th Dec 2003 20:59
Ahh, thanks. I can see its gonna take me a while, and a lot of questions to figure out how to do things in this which i have done in other languages. Is a more verbose and helpful help file going to be added in one of the later patches? The one that comes with dbp just seems like a slighltly expaned version of the supplied reference manual.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Dec 2003 21:20
i doubt they are gonna redo the help files, although a few WIP projects are starting up including a FAQ(compiled by me):
http://redeye.dbpcommunity.com/contents.htm
and also a 'dark basic book' by Guyon:
http://darkrealms.dbpcommunity.com/
neither is finished yet but they may be able to help.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
AramusM
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 6th Dec 2003 21:28
Thanks for your help. checking those out now.

Login to post a reply

Server time is: 2024-09-21 12:06:23
Your offset time is: 2024-09-21 12:06:23