summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-14 17:57:23 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-14 17:57:23 +0200
commite7945625b59750459ff4876f7e076b4b8d5c3aee (patch)
tree0021cf5c59fa4e9600b732d221627c349eb0fc5d /src/skel/glfw
parentDarkel fixes (diff)
downloadre3-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 'src/skel/glfw')
-rw-r--r--src/skel/glfw/glfw.cpp16
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;
+}
/*
*****************************************************************************