RenderWare V2.1

Previous Page Index Next Page

RwBool

RwGetDeviceInfo(RwDeviceInfo info, void *value, RwInt32 size);

Comments

Thes following controls override or are in addition to the generic RwGetDeviceInfo():

• rwRENDERDEPTH The current render depth.

• rwPALETTEBASED Rendering is palette based if and only if the video adapter on which Windows is running is palette based. This will normally be the case if the video adapter is in 8-bit (256) color mode. In other modes rendering will not be palette based.

The following options apply when the output device is palette based:

• rwPALETTE Returns the GDI palette object RenderWare selects into the output device context. value should point to a variable of type HPALETTE. On return from RwGetDeviceInfo() this variable will contain the handle of the GDI palette object. Applications should not modify this palette object using the Windows API function SetPaletteEntries(). Instead the RenderWare API function RwSetPaletteEntries() should be used to modify the RenderWare palette.

RenderWare V2.1 support the following Windows specific information types:

• rwWINISBACKGROUNDPALETTE
A pointer to a boolean (RwBool) which will be non-zero if RenderWare realizes its palette as a background palette and zero if it realizes its palette as a foreground palette. See the section "RenderWare and Windows Palettes" for further details.

• rwWINUSINGDIBS A pointer to a boolean (RwBool) which will be non-zero if RenderWare is using device independent bitmaps (DIBs) and zero otherwise.

• rwWINUSINGDIBSECTIONS A pointer to a Boolean (RwBool) which will be non-zero if RenderWare is using Dib Section bitmaps and zero otherwise.

• rwWINUSINGDD A pointer to a Boolean (RwBool) which will be non-zero if RenderWare is using Direct Draw bitmaps and zero otherwise.