/* ================== RB_TakeScreenshotCmd ================== */ const void *RB_TakeScreenshotCmd(const void *data) { const screenshotCommand_t *cmd; cmd = ( const screenshotCommand_t * ) data; if (cmd->jpeg) { RB_TakeScreenshotJPEG(cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName); } else { RB_TakeScreenshot(cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName); } return ( const void * ) (cmd + 1); }
/* ================== RB_TakeScreenshotCmd ================== */ const void *RB_TakeScreenshotCmd( const void *data ) { const screenshotCommand_t *cmd; cmd = (const screenshotCommand_t *)data; switch( cmd->format ) { case SSF_JPEG: RB_TakeScreenshotJPEG( cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName); break; case SSF_TGA: RB_TakeScreenshotTGA( cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName); break; case SSF_PNG: RB_TakeScreenshotPNG( cmd->x, cmd->y, cmd->width, cmd->height, cmd->fileName); break; } return (const void *)(cmd + 1); }