summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-07-17 00:33:40 +0200
committerRay <[email protected]>2017-07-17 00:33:40 +0200
commit6546474fa45234ed0a84f62be705d9a9aee43079 (patch)
tree7373f17e2a875a95e1844bca20b28d1a7a052fb9 /src/core.c
parent025dab990770a0adc65f07399c6a106d59d24e46 (diff)
downloadraylib-6546474fa45234ed0a84f62be705d9a9aee43079.tar.gz
raylib-6546474fa45234ed0a84f62be705d9a9aee43079.zip
Manual integration of material-pbr into develop
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core.c b/src/core.c
index a447d750..ad905d4e 100644
--- a/src/core.c
+++ b/src/core.c
@@ -809,7 +809,7 @@ void EndDrawing(void)
{
// Get image data for the current frame (from backbuffer)
// NOTE: This process is very slow... :(
- unsigned char *screenData = rlglReadScreenPixels(screenWidth, screenHeight);
+ unsigned char *screenData = rlReadScreenPixels(screenWidth, screenHeight);
GifWriteFrame(screenData, screenWidth, screenHeight, 10, 8, false);
free(screenData); // Free image data
@@ -994,10 +994,10 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
MatrixTranspose(&matView);
//#define USE_RLGL_UNPROJECT
-#if defined(USE_RLGL_UNPROJECT) // OPTION 1: Use rlglUnproject()
+#if defined(USE_RLGL_UNPROJECT) // OPTION 1: Use rlUnproject()
- Vector3 nearPoint = rlglUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 0.0f }, matProj, matView);
- Vector3 farPoint = rlglUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
+ Vector3 nearPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 0.0f }, matProj, matView);
+ Vector3 farPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
#else // OPTION 2: Compute unprojection directly here
@@ -1201,7 +1201,7 @@ void SetConfigFlags(char flags)
void TakeScreenshot(const char *fileName)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
- unsigned char *imgData = rlglReadScreenPixels(renderWidth, renderHeight);
+ unsigned char *imgData = rlReadScreenPixels(renderWidth, renderHeight);
SavePNG(fileName, imgData, renderWidth, renderHeight, 4); // Save image as PNG
free(imgData);