summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw/glfw.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-15 14:13:46 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-15 14:13:46 +0200
commit9956b277674563015816e1695f05c6bc4a507fda (patch)
treee0b513c635c57e74aca0346c0bab5eba748f1186 /src/skel/glfw/glfw.cpp
parentMerge pull request #686 from erorcun/miami (diff)
parentDon't react if player's targeting with melee (diff)
downloadre3-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.cpp16
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;
+}
/*
*****************************************************************************