diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-14 17:57:23 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-14 17:57:23 +0200 |
commit | e7945625b59750459ff4876f7e076b4b8d5c3aee (patch) | |
tree | 0021cf5c59fa4e9600b732d221627c349eb0fc5d /src/skel/glfw | |
parent | Darkel fixes (diff) | |
download | re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.gz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.bz2 re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.lz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.xz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.zst re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.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 ed442348..920bb8a9 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -181,6 +181,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; +} /* ***************************************************************************** |