RenderWare V2.1

Previous Page Index Next Page

RwBool

RwOpen(char *devname, void *param);

Arguments

devname The device name is a null-terminated string. Names currently supported under MS DOS are :

"DOS",
"DOSMOUSE"
"NullDevice"

The "NullDevice" driver allows the library to be used when output to a display is not required (for instance, when reading from or to files).

"DOSMOUSE" will open the library with the mouse driver active. This will mean that the library can only be accessed if a Microsoft compatible mouse driver is not required.

"DOS" performs the same function as "DOSMOUSE" except the mouse is not accessed, and so a mouse driver is not required.

param param should be set to a pointer to a RwInt32. If the library does not open, then the RwInt32 pointed to will be set to one of the following symbols;

E_RW_DOS_MODE_UNAVAILABLE

Unable to access the video mode requested.

E_RW_DOS_NO_VESA_BIOS

No VESA BIOS is available, install a VESA TSR for your video card.

E_RW_INCOMPATIBLE_BIOS

The VESA BIOS is not a recent enough release to be usable. (must be 1.0 or greater).

E_RW_NO_MOUSE

No Microsoft mouse driver found.

These symbols are located in rwdos.h header file.

Comments

RwOpen() parses the RenderWare initialization file dosrw.ini as described in "RenderWare Library Configuration"