OverrideDefaults and ReadMouse
Samples can use the OverrideDefaults function with Rmmain.cpp, in addition to the standard BuildScene function. Egg.c includes an implementation of OverrideDefaults that simply sets the bNoTextures member to TRUE in the Defaults structure (defined in Rmdemo.h) and changes the name of the application:
void OverrideDefaults(Defaults *defaults)
{
defaults->bNoTextures = TRUE;
strcpy(defaults->Name, "Egg Direct3DRM Example");
}
Rmmain.cpp includes another function, ReadMouse, that samples can use to retrieve the mouse status. For an example of how this function is used, see the Quat.c sample in this SDK.
void ReadMouse(int* b, int* x, int* y)
{
*b = myglobs.mouse_buttons;
*x = myglobs.mouse_x;
*y = myglobs.mouse_y;
}