summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cheatsheet/raylib_cheatsheet.pdfbin187310 -> 189021 bytes
-rw-r--r--cheatsheet/raylib_core.c2
-rw-r--r--cheatsheet/raylib_textures.c9
3 files changed, 8 insertions, 3 deletions
diff --git a/cheatsheet/raylib_cheatsheet.pdf b/cheatsheet/raylib_cheatsheet.pdf
index 197eec5..8fe77d8 100644
--- a/cheatsheet/raylib_cheatsheet.pdf
+++ b/cheatsheet/raylib_cheatsheet.pdf
Binary files differ
diff --git a/cheatsheet/raylib_core.c b/cheatsheet/raylib_core.c
index 48c69d0..eecbaec 100644
--- a/cheatsheet/raylib_core.c
+++ b/cheatsheet/raylib_core.c
@@ -7,7 +7,7 @@
bool IsWindowMinimized(void); // Check if window has been minimized (or lost focus)
bool IsWindowResized(void); // Check if window has been resized
bool IsWindowHidden(void); // Check if window is currently hidden
- bool IsWindowFullscreen(void); // Check if window is currently fullscreen
+ bool IsWindowFullscreen(void); // Check if window is currently fullscreen
void ToggleFullscreen(void); // Toggle fullscreen mode (only PLATFORM_DESKTOP)
void UnhideWindow(void); // Show the window
void HideWindow(void); // Hide the window
diff --git a/cheatsheet/raylib_textures.c b/cheatsheet/raylib_textures.c
index c1b1646..3feb255 100644
--- a/cheatsheet/raylib_textures.c
+++ b/cheatsheet/raylib_textures.c
@@ -1,3 +1,4 @@
+
// Image loading functions
// NOTE: This functions do not require GPU access
Image LoadImage(const char *fileName); // Load image from file into CPU memory (RAM)
@@ -9,8 +10,6 @@
void ExportImageAsCode(Image image, const char *fileName); // Export image as code file defining an array of bytes
Color *GetImageData(Image image); // Get pixel data from image as a Color struct array
Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
- Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
- int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes (image or texture)
// Image generation functions
Image GenImageColor(int width, int height, Color color); // Generate image: plain color
@@ -50,6 +49,7 @@
void ImageColorBrightness(Image *image, int brightness); // Modify image color: brightness (-255 to 255)
void ImageColorReplace(Image *image, Color color, Color replace); // Modify image color: replace color
Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount); // Extract color palette from image to maximum size (memory should be freed)
+ Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
// Image drawing functions
// NOTE: Image software-rendering functions (CPU)
@@ -93,3 +93,8 @@
void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint); // Draw texture quad with tiling and offset parameters
void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rectangle with 'pro' parameters
void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
+
+ // Image/Texture misc functions
+ int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes (image or texture)
+
+ \ No newline at end of file