SOLVED Editor and viewport colours - where/how to find them?

Hi folks,

I want to get the editor viewport colours, so I can colour things using the same as the viewport. I'm guessing this is in the preferences.

E.g. how do I get the viewport background colour? How about the grid and world axis colours? Selected point colours... etc.

WP.

@WickedP

see

GetViewColor(VIEWCOLOR_C4DBACKGROUND);

From there you can find the other viewcolors you need.

@WickedP

see

GetViewColor(VIEWCOLOR_C4DBACKGROUND);

From there you can find the other viewcolors you need.

Thanks @C4DS, that's what I'm after!

WP.