|
Saves the content of the given window as a bitmap on the disk
Returns OK or VR_ERROR
One shouldn't use this function when using the 3D card to render.
Instead use this combination.
HBITMAP hbm=STATE_engine_render_on_bitmap(your_window_or_null, your_camera_or_null);
STATE_utilities_save_bitmap(hbm, "d:\\screenshots\\shot.bmp");
Example:
HWND hwnd=STATE_engine_get_default_rendering_window_hwnd()
STATE_utilities_save_screenshot(hwnd, "d:\\my_screenshots\\flight_sim1.bmp");
Note that the above example is the same as writing STATE_utilities_save_screenshot(NULL, "d:\\my_screenshots\\flight_sim1.bmp");
|