diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-15 14:13:46 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-15 14:13:46 +0200 |
commit | 9956b277674563015816e1695f05c6bc4a507fda (patch) | |
tree | e0b513c635c57e74aca0346c0bab5eba748f1186 /src/skel/win | |
parent | Merge pull request #686 from erorcun/miami (diff) | |
parent | Don't react if player's targeting with melee (diff) | |
download | re3-9956b277674563015816e1695f05c6bc4a507fda.tar re3-9956b277674563015816e1695f05c6bc4a507fda.tar.gz re3-9956b277674563015816e1695f05c6bc4a507fda.tar.bz2 re3-9956b277674563015816e1695f05c6bc4a507fda.tar.lz re3-9956b277674563015816e1695f05c6bc4a507fda.tar.xz re3-9956b277674563015816e1695f05c6bc4a507fda.tar.zst re3-9956b277674563015816e1695f05c6bc4a507fda.zip |
Diffstat (limited to 'src/skel/win')
-rw-r--r-- | src/skel/win/win.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index f758a7fb..0b2b48c9 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -245,6 +245,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; +} + +/* + ***************************************************************************** + */ RwUInt32 psTimer(void) { |