summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2015-11-05 12:32:47 +0100
committerRay <[email protected]>2015-11-05 12:32:47 +0100
commit88e1fd9530100311071352f71999cca08854a3a2 (patch)
tree0a318ce8ddf4ea74ba52e3831f9a44fa7f3ccc04 /src/rlgl.h
parent2fa7e00f169c87585a46b178e6282ed63889189c (diff)
downloadraylib-88e1fd9530100311071352f71999cca08854a3a2.tar.gz
raylib-88e1fd9530100311071352f71999cca08854a3a2.zip
Added texture retrieval support on OpenGL ES 2.0
Updated functions: Image GetTextureData(Texture2D texture); void *rlglReadTexturePixels(Texture2D texture);
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index ce823d97..0960fa83 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -255,10 +255,10 @@ void rlglDrawPostpro(void); // Draw with postprocessing shad
Model rlglLoadModel(VertexData mesh); // Upload vertex data into GPU and provided VAO/VBO ids
void rlglDrawModel(Model model, Vector3 position, float rotationAngle, Vector3 rotationAxis, Vector3 scale, Color color, bool wires);
-Vector3 rlglUnproject(Vector3 source, Matrix proj, Matrix view); // Get world coordinates from screen coordinates
+Vector3 rlglUnproject(Vector3 source, Matrix proj, Matrix view); // Get world coordinates from screen coordinates
-unsigned char *rlglReadScreenPixels(int width, int height); // Read screen pixel data (color buffer)
-void *rlglReadTexturePixels(unsigned int textureId, unsigned int format); // Read texture pixel data
+unsigned char *rlglReadScreenPixels(int width, int height); // Read screen pixel data (color buffer)
+void *rlglReadTexturePixels(Texture2D texture); // Read texture pixel data
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
void PrintProjectionMatrix(void); // DEBUG: Print projection matrix