diff options
author | aap <aap@papnet.eu> | 2020-08-18 11:09:50 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-18 11:09:50 +0200 |
commit | e3405f4be4369c98f874a2d477bd6567f1be9381 (patch) | |
tree | 1cdaa079fcb6a6da55d6d5126594b2a1a94bf76d /src/skel/glfw | |
parent | update librw (diff) | |
parent | remove CFO (diff) | |
download | re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar.gz re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar.bz2 re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar.lz re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar.xz re3-e3405f4be4369c98f874a2d477bd6567f1be9381.tar.zst re3-e3405f4be4369c98f874a2d477bd6567f1be9381.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; +} /* ***************************************************************************** |