1. How do you make a DLL that can set the colour depth of a program ?
- Posted by tamajongphilip Jul 23, 2012
- 990 views
How do you make a DLL that can set the colour depth(for example 16 or 32-bit) of a program ?
2. Re: How do you make a DLL that can set the colour depth of a program ?
- Posted by ghaberek (admin) Jul 23, 2012
- 965 views
How do you make a DLL that can set the colour depth(for example 16 or 32-bit) of a program ?
Color bit depth is a function of the operating system, not the individual application. On Windows, this can generally be changed under the "Monitor" tab of the Advanced configuration for your video card.
I deleted your duplicate thread- please refrain from hitting "Submit" too many times.
-Greg
3. Re: How do you make a DLL that can set the colour depth of a program ?
- Posted by ArthurCrump Jul 23, 2012
- 944 views
It is possible to set the monitor colour depth from a Euphoria program. A few years ago I came across a game called Hexy which does that, written by Mark K akita. This still works using Euphoria version 4.
Akita wrote wrappers around a "Simple Direct Media Layer" written by Sam Lantinga. Hexy appeared to use SDL_init, SDL_SetVideoMode and several more routines from this library. However, They are not documented with the Haxy release so I don't know how to use them.
The wrappers may be obtained separately from the game. I searched the archive for Akita. I found Sam Latinga's library on the web.
4. Re: How do you make a DLL that can set the colour depth of a program ?
- Posted by ghaberek (admin) Jul 23, 2012
- 960 views
It is possible to set the monitor colour depth from a Euphoria program. A few years ago I came across a game called Hexy which does that, written by Mark K akita. This still works using Euphoria version 4.
Akita wrote wrappers around a "Simple Direct Media Layer" written by Sam Lantinga. Hexy appeared to use SDL_init, SDL_SetVideoMode and several more routines from this library. However, They are not documented with the Haxy release so I don't know how to use them.
The wrappers may be obtained separately from the game. I searched the archive for Akita. I found Sam Latinga's library on the web.
It would seem that SDL_SetVideoMode creates a "new" video mode session for the application; it does not change the option set in Windows. This is useful for many 3D games to save on resource usage on low-end hardware.
-Greg