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/glfw/glfw.cpp | |
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 '')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index d94f2e80..21b5c3c0 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -185,6 +185,22 @@ psCameraShowRaster(RwCamera *camera) return; } +/* + ***************************************************************************** + */ +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; +} /* ***************************************************************************** |