mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-08 10:00:36 +00:00
Original screen grabber
This commit is contained in:
parent
489743da41
commit
e7945625b5
7 changed files with 85 additions and 0 deletions
|
@ -238,6 +238,23 @@ psCameraShowRaster(RwCamera *camera)
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
RwImage *
|
||||
psGrabScreen(RwCamera *pCamera)
|
||||
{
|
||||
#ifndef LIBRW
|
||||
RwRaster *pRaster = RwCameraGetRaster(pCamera);
|
||||
if (RwImage *pImage = RwImageCreate(pRaster->width, pRaster->height, 32)) {
|
||||
RwImageAllocatePixels(pImage);
|
||||
RwImageSetFromRaster(pImage, pRaster);
|
||||
return pImage;
|
||||
}
|
||||
#endif
|
||||
return nil;
|
||||
}
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue