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.

DarkBASIC Professional Discussion / D3D_text not displaying

Author
Message
Devonps
16
Years of Service
User Offline
Joined: 5th Nov 2009
Location: Nottingham
Posted: 18th May 2011 15:23
Hi,

I'm in the process of looking for options to make text appear faster on the screen and have recently started looking into using Cloggys D3D functions.

But when I use the D3D_text commands nothing is being displayed.

I set up things like this



The first time I want to use the D3D commands are here...


I'm missing something but I really don't know what - can anyone offer any advice?

Steve

Marriage is a circle of rings....
Engagement ring, Wedding ring, Suffering!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th May 2011 16:01
You aren't giving it a colour, add "rgb(255,0,0)" (or whatever) to the end of your d3d_text commands.

Devonps
16
Years of Service
User Offline
Joined: 5th Nov 2009
Location: Nottingham
Posted: 18th May 2011 16:25
The D3D documentation seemed to imply that was optional, have the commands moved on since then?




Marriage is a circle of rings....
Engagement ring, Wedding ring, Suffering!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th May 2011 16:35
You're right, well if that didn't work the only other thing I can think is that you are editing the display size and not using "d3d_init" again afterwards (IE. using "set display mode")?

The code looks OK unless I'm missing something too...

Devonps
16
Years of Service
User Offline
Joined: 5th Nov 2009
Location: Nottingham
Posted: 18th May 2011 16:53
Nope I set the display size once and stick to it - but I will double check...you never know.

Thanks for the assistance.

Marriage is a circle of rings....
Engagement ring, Wedding ring, Suffering!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th May 2011 17:04
Quote: "Nope I set the display size once"

So you do... just after you used d3d_init, put d3d_init after it and you'll be OK!

Can't believe I missed that!!

Devonps
16
Years of Service
User Offline
Joined: 5th Nov 2009
Location: Nottingham
Posted: 18th May 2011 17:11
Yep that's fixed it - thanks for the time you've taken over this.

Steve.

Marriage is a circle of rings....
Engagement ring, Wedding ring, Suffering!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th May 2011 17:18
No problem

Login to post a reply

Server time is: 2026-07-10 23:14:08
Your offset time is: 2026-07-10 23:14:08