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 / db Perform CheckList For Display Modes

Author
Message
DragonsLair
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 19th May 2009 01:13
How do you list the display modes? is there anywhere that gives good explanations about the proper usage of things? Cos I dont think things are clear enought

Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 19th May 2009 12:26 Edited at: 19th May 2009 12:27
I recommend to dig in this forum, the DBPro forum, the DBPro help files, the Code Snippets forum, and all around again.

I haven't tested this, it is IanM's code & tips (posted in this forum):

Quote: "The globstruct has the following items included:"




Quote: "The checklist variable is a pointer to an array of GlobCheclistStruct items containing the data - the definition of that structure is also in globstruct.h near the top.
Here's a quick 2 minute example:"


DragonsLair
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 19th May 2009 12:45
yes i checked that, which I use for something else. But display modes have 3 different values and arent strings.

I have dug about the forum, didnt find the answer so thats why I posted this

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2009 15:20
True but the checklist structure has room for 4 integer values and 4 float values too - it's those integer values that you'd use.

DragonsLair
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 19th May 2009 15:23
ah thats excellent mate thank you for that.

Also if anyone looking at this knows, how do you properly multilayer an object? ie a base layer, then using an opacity mask or summit put a layer of 'dirt' on the bottom of the image. Then a bump map?

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 19th May 2009 20:26
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 19th May 2009 20:34 Edited at: 19th May 2009 20:39
Alternative solution: You can do the display mode query without using globstruct. The dbCheckListQuantity function gives you the size of the list, then you can get the 3 integer values with dbCheckListValueA(index), dbCheckListValueB(index), dbCheckListValueC(index).

Login to post a reply

Server time is: 2024-10-01 01:24:50
Your offset time is: 2024-10-01 01:24:50