bind depth into OpenWindowedScreen

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

bind depth into OpenWindowedScreen

Post by nco2k »

First I want to thank Fred and his helpers, for creating a very powerful and easy to use, programming language. Also I want to thank, the hard working people, which also create very powerful and free for use PureBasic libraries and tools.

I think it would be very useful for some users, especially for those who create games, if you could bind Depth into OpenWindowedScreen.

Result = OpenWindowedScreen(WindowID, x, y, Width, Height, Depth, AutoStretch, RightOffset, BottomOffset)

0: don’t change and use current depth
4: 16 colours, independent palette available
8: 256 colours, independent palette available
16: 65000 colours, fixed palette
24: 16 Mo colours, fixed palette
32: 16 Mo colours, faster than 24 bit mode

By the way, is there a chance to bind AutoStretch in full screen mode? Why does the ChangeGamma(R, G, B, Flags) function only work in full screen mode? It would be very nice, if you could add this stuff.

Thanks very much and keep up the good work :wink:

c ya,
nco2k
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

The problem actually is you can't change the user desktop depth with a command like that, else most of users will cry for sure. So you have to stick with the current depth and purebasic automatically handle the depth to handle your sprite at the maximum speed (ie: in the video memory).

About ChangeGamma(), it's based on a DirectX command which works only in full screen, and again it would be wierd to change the user desktop brightness/contrast without his agreement..
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

Hello and thanks for your fast reply.

I know... that is always the problem. :cry:

Some of the users would like it and others would hate it, to see their windowed color depth change. But there are also users which would hate it to see, the resolution and/or color depth to change, even in full screen mode. 8O

I just thought, that it would be very useful if this function could be implemented, cause OpenWindowedScreen() is the only way to use DirectX and front/back-Buffers, in a windowed window. The most people playing games know that it is sometimes necessary to change the resolution and/or color depth.

Of course this function is not needed if the most of the users do not like this idea. I know it is very hard for you, because you are a very busy man, with a lot of work to do, but if (much) more users would find this idea pretty attractive too, than it should be worth to work on it, other way it would not be. :wink:

c ya,
nco2k
Post Reply