aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-12-30 13:32:41 +0100
committerraysan5 <raysan5@gmail.com>2015-12-30 13:32:41 +0100
commit5dbb93dbb476c35d8f8aab24d9c3507640b171e8 (patch)
treee01dd762850e73ab5744fe92968c27ad0a60ed0c /src/raylib.h
parent6cb0603fbee656ad2deb47d9aa5d64430c6d6862 (diff)
downloadraylib-5dbb93dbb476c35d8f8aab24d9c3507640b171e8.tar.gz
raylib-5dbb93dbb476c35d8f8aab24d9c3507640b171e8.zip
Added function: ImageDither()
Corrected some code details
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 4eefa3ea..785ebebb 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -654,6 +654,7 @@ Color *GetImageData(Image image);
Image GetTextureData(Texture2D texture); // Get pixel data from GPU texture and return an Image
void ImageToPOT(Image *image, Color fillColor); // Convert image to POT (power-of-two)
void ImageFormat(Image *image, int newFormat); // Convert image data to desired format
+void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); // Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
Image ImageCopy(Image image); // Create an image duplicate (useful for transformations)
void ImageCrop(Image *image, Rectangle crop); // Crop an image to a defined rectangle
void ImageResize(Image *image, int newWidth, int newHeight); // Resize and image (bilinear filtering)
@@ -692,6 +693,7 @@ Vector2 MeasureTextEx(SpriteFont spriteFont, const char *text, int fontSize, int
void DrawFPS(int posX, int posY); // Shows current FPS on top-left corner
const char *FormatText(const char *text, ...); // Formatting of text with variables to 'embed'
+const char *SubText(const char *text, int position, int length); // Get a piece of a text string
//------------------------------------------------------------------------------------
// Basic 3d Shapes Drawing Functions (Module: models)