Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
rtextures.c File Reference
#include "raylib.h"
#include "config.h"
#include "utils.h"
#include "rlgl.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include "external/stb_image.h"
#include "external/qoi.h"
#include "external/stb_image_write.h"
#include "external/stb_image_resize.h"
+ Include dependency graph for rtextures.c:

Go to the source code of this file.

Macros

#define STBI_NO_BMP
 rtextures - Basic functions to load and draw textures More...
 
#define STBI_NO_TGA
 
#define STBI_NO_JPEG
 
#define STBI_NO_PSD
 
#define STBI_NO_PIC
 
#define STBI_NO_PIC
 
#define STBI_NO_PNM
 
#define STBI_MALLOC   RL_MALLOC
 
#define STBI_FREE   RL_FREE
 
#define STBI_REALLOC   RL_REALLOC
 
#define STB_IMAGE_IMPLEMENTATION
 
#define QOI_MALLOC   RL_MALLOC
 
#define QOI_FREE   RL_FREE
 
#define QOI_IMPLEMENTATION
 
#define STBIW_MALLOC   RL_MALLOC
 
#define STBIW_FREE   RL_FREE
 
#define STBIW_REALLOC   RL_REALLOC
 
#define STB_IMAGE_WRITE_IMPLEMENTATION
 
#define STBIR_MALLOC(size, c)   ((void)(c), RL_MALLOC(size))
 
#define STBIR_FREE(ptr, c)   ((void)(c), RL_FREE(ptr))
 
#define STB_IMAGE_RESIZE_IMPLEMENTATION
 
#define PIXELFORMAT_UNCOMPRESSED_R5G5B5A1_ALPHA_THRESHOLD   50
 
#define STBI_REQUIRED
 
#define TEXT_BYTES_PER_LINE   20
 
#define MIN(a, b)   (((a)<(b))?(a):(b))
 
#define COLOR_EQUAL(col1, col2)   ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))
 
#define COLORALPHABLEND_INTEGERS
 
#define FOURCC_DXT1   0x31545844
 
#define FOURCC_DXT3   0x33545844
 
#define FOURCC_DXT5   0x35545844
 

Functions

Image LoadImage (const char *fileName)
 
Image LoadImageRaw (const char *fileName, int width, int height, int format, int headerSize)
 
Image LoadImageAnim (const char *fileName, int *frames)
 
Image LoadImageFromMemory (const char *fileType, const unsigned char *fileData, int dataSize)
 
Image LoadImageFromTexture (Texture2D texture)
 
Image LoadImageFromScreen (void)
 
void UnloadImage (Image image)
 
bool ExportImage (Image image, const char *fileName)
 
bool ExportImageAsCode (Image image, const char *fileName)
 
Image GenImageColor (int width, int height, Color color)
 
Image GenImageGradientV (int width, int height, Color top, Color bottom)
 
Image GenImageGradientH (int width, int height, Color left, Color right)
 
Image GenImageGradientRadial (int width, int height, float density, Color inner, Color outer)
 
Image GenImageChecked (int width, int height, int checksX, int checksY, Color col1, Color col2)
 
Image GenImageWhiteNoise (int width, int height, float factor)
 
Image GenImageCellular (int width, int height, int tileSize)
 
Image ImageCopy (Image image)
 
Image ImageFromImage (Image image, Rectangle rec)
 
void ImageCrop (Image *image, Rectangle crop)
 
void ImageFormat (Image *image, int newFormat)
 
void ImageToPOT (Image *image, Color fill)
 
Image ImageText (const char *text, int fontSize, Color color)
 
Image ImageTextEx (Font font, const char *text, float fontSize, float spacing, Color tint)
 
void ImageAlphaCrop (Image *image, float threshold)
 
void ImageAlphaClear (Image *image, Color color, float threshold)
 
void ImageAlphaMask (Image *image, Image alphaMask)
 
void ImageAlphaPremultiply (Image *image)
 
void ImageResize (Image *image, int newWidth, int newHeight)
 
void ImageResizeNN (Image *image, int newWidth, int newHeight)
 
void ImageResizeCanvas (Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill)
 
void ImageMipmaps (Image *image)
 
void ImageDither (Image *image, int rBpp, int gBpp, int bBpp, int aBpp)
 
void ImageFlipVertical (Image *image)
 
void ImageFlipHorizontal (Image *image)
 
void ImageRotateCW (Image *image)
 
void ImageRotateCCW (Image *image)
 
void ImageColorTint (Image *image, Color color)
 
void ImageColorInvert (Image *image)
 
void ImageColorGrayscale (Image *image)
 
void ImageColorContrast (Image *image, float contrast)
 
void ImageColorBrightness (Image *image, int brightness)
 
void ImageColorReplace (Image *image, Color color, Color replace)
 
ColorLoadImageColors (Image image)
 
ColorLoadImagePalette (Image image, int maxPaletteSize, int *colorCount)
 
void UnloadImageColors (Color *colors)
 
void UnloadImagePalette (Color *colors)
 
Rectangle GetImageAlphaBorder (Image image, float threshold)
 
Color GetImageColor (Image image, int x, int y)
 
void ImageClearBackground (Image *dst, Color color)
 
void ImageDrawPixel (Image *dst, int x, int y, Color color)
 
void ImageDrawPixelV (Image *dst, Vector2 position, Color color)
 
void ImageDrawLine (Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color)
 
void ImageDrawLineV (Image *dst, Vector2 start, Vector2 end, Color color)
 
void ImageDrawCircle (Image *dst, int centerX, int centerY, int radius, Color color)
 
void ImageDrawCircleV (Image *dst, Vector2 center, int radius, Color color)
 
void ImageDrawRectangle (Image *dst, int posX, int posY, int width, int height, Color color)
 
void ImageDrawRectangleV (Image *dst, Vector2 position, Vector2 size, Color color)
 
void ImageDrawRectangleRec (Image *dst, Rectangle rec, Color color)
 
void ImageDrawRectangleLines (Image *dst, Rectangle rec, int thick, Color color)
 
void ImageDraw (Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint)
 
void ImageDrawText (Image *dst, const char *text, int posX, int posY, int fontSize, Color color)
 
void ImageDrawTextEx (Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint)
 
Texture2D LoadTexture (const char *fileName)
 
Texture2D LoadTextureFromImage (Image image)
 
TextureCubemap LoadTextureCubemap (Image image, int layout)
 
RenderTexture2D LoadRenderTexture (int width, int height)
 
void UnloadTexture (Texture2D texture)
 
void UnloadRenderTexture (RenderTexture2D target)
 
void UpdateTexture (Texture2D texture, const void *pixels)
 
void UpdateTextureRec (Texture2D texture, Rectangle rec, const void *pixels)
 
void GenTextureMipmaps (Texture2D *texture)
 
void SetTextureFilter (Texture2D texture, int filter)
 
void SetTextureWrap (Texture2D texture, int wrap)
 
void DrawTexture (Texture2D texture, int posX, int posY, Color tint)
 
void DrawTextureV (Texture2D texture, Vector2 position, Color tint)
 
void DrawTextureEx (Texture2D texture, Vector2 position, float rotation, float scale, Color tint)
 
void DrawTextureRec (Texture2D texture, Rectangle source, Vector2 position, Color tint)
 
void DrawTextureQuad (Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint)
 
void DrawTextureTiled (Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint)
 
void DrawTexturePro (Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint)
 
void DrawTextureNPatch (Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint)
 
void DrawTexturePoly (Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointCount, Color tint)
 
Color Fade (Color color, float alpha)
 
int ColorToInt (Color color)
 
Vector4 ColorNormalize (Color color)
 
Color ColorFromNormalized (Vector4 normalized)
 
Vector3 ColorToHSV (Color color)
 
Color ColorFromHSV (float hue, float saturation, float value)
 
Color ColorAlpha (Color color, float alpha)
 
Color ColorAlphaBlend (Color dst, Color src, Color tint)
 
Color GetColor (unsigned int hexValue)
 
Color GetPixelColor (void *srcPtr, int format)
 
void SetPixelColor (void *dstPtr, Color color, int format)
 
int GetPixelDataSize (int width, int height, int format)
 

Macro Definition Documentation

◆ COLOR_EQUAL

#define COLOR_EQUAL (   col1,
  col2 
)    ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))

◆ COLORALPHABLEND_INTEGERS

#define COLORALPHABLEND_INTEGERS

◆ FOURCC_DXT1

#define FOURCC_DXT1   0x31545844

◆ FOURCC_DXT3

#define FOURCC_DXT3   0x33545844

◆ FOURCC_DXT5

#define FOURCC_DXT5   0x35545844

◆ MIN

#define MIN (   a,
 
)    (((a)<(b))?(a):(b))

◆ PIXELFORMAT_UNCOMPRESSED_R5G5B5A1_ALPHA_THRESHOLD

#define PIXELFORMAT_UNCOMPRESSED_R5G5B5A1_ALPHA_THRESHOLD   50

Definition at line 162 of file rtextures.c.

◆ QOI_FREE

#define QOI_FREE   RL_FREE

Definition at line 135 of file rtextures.c.

◆ QOI_IMPLEMENTATION

#define QOI_IMPLEMENTATION

Definition at line 137 of file rtextures.c.

◆ QOI_MALLOC

#define QOI_MALLOC   RL_MALLOC

Definition at line 134 of file rtextures.c.

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Definition at line 128 of file rtextures.c.

◆ STB_IMAGE_RESIZE_IMPLEMENTATION

#define STB_IMAGE_RESIZE_IMPLEMENTATION

Definition at line 154 of file rtextures.c.

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION

Definition at line 146 of file rtextures.c.

◆ STBI_FREE

#define STBI_FREE   RL_FREE

Definition at line 125 of file rtextures.c.

◆ STBI_MALLOC

#define STBI_MALLOC   RL_MALLOC

Definition at line 124 of file rtextures.c.

◆ STBI_NO_BMP

#define STBI_NO_BMP

rtextures - Basic functions to load and draw textures

CONFIGURATION:

#define SUPPORT_MODULE_RTEXTURES rtextures module is included in the build

#define SUPPORT_FILEFORMAT_BMP #define SUPPORT_FILEFORMAT_PNG #define SUPPORT_FILEFORMAT_TGA #define SUPPORT_FILEFORMAT_JPG #define SUPPORT_FILEFORMAT_GIF #define SUPPORT_FILEFORMAT_QOI #define SUPPORT_FILEFORMAT_PSD #define SUPPORT_FILEFORMAT_PIC #define SUPPORT_FILEFORMAT_HDR #define SUPPORT_FILEFORMAT_DDS #define SUPPORT_FILEFORMAT_PKM #define SUPPORT_FILEFORMAT_KTX #define SUPPORT_FILEFORMAT_PVR #define SUPPORT_FILEFORMAT_ASTC Select desired fileformats to be supported for image data loading. Some of those formats are supported by default, to remove support, just comment unrequired #define in this module

#define SUPPORT_IMAGE_EXPORT Support image export in multiple file formats

#define SUPPORT_IMAGE_MANIPULATION Support multiple image editing functions to scale, adjust colors, flip, draw on images, crop... If not defined only three image editing functions supported: ImageFormat(), ImageAlphaMask(), ImageToPOT()

#define SUPPORT_IMAGE_GENERATION Support procedural image generation functionality (gradient, spot, perlin-noise, cellular)

DEPENDENCIES: stb_image - Multiple image formats loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC) NOTE: stb_image has been slightly modified to support Android platform. stb_image_resize - Multiple image resize algorythms

LICENSE: zlib/libpng

Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)

This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 83 of file rtextures.c.

◆ STBI_NO_JPEG

#define STBI_NO_JPEG

Definition at line 92 of file rtextures.c.

◆ STBI_NO_PIC [1/2]

#define STBI_NO_PIC

Definition at line 108 of file rtextures.c.

◆ STBI_NO_PIC [2/2]

#define STBI_NO_PIC

Definition at line 108 of file rtextures.c.

◆ STBI_NO_PNM

#define STBI_NO_PNM

Definition at line 109 of file rtextures.c.

◆ STBI_NO_PSD

#define STBI_NO_PSD

Definition at line 95 of file rtextures.c.

◆ STBI_NO_TGA

#define STBI_NO_TGA

Definition at line 89 of file rtextures.c.

◆ STBI_REALLOC

#define STBI_REALLOC   RL_REALLOC

Definition at line 126 of file rtextures.c.

◆ STBI_REQUIRED

#define STBI_REQUIRED

◆ STBIR_FREE

#define STBIR_FREE (   ptr,
 
)    ((void)(c), RL_FREE(ptr))

Definition at line 152 of file rtextures.c.

◆ STBIR_MALLOC

#define STBIR_MALLOC (   size,
 
)    ((void)(c), RL_MALLOC(size))

Definition at line 151 of file rtextures.c.

◆ STBIW_FREE

#define STBIW_FREE   RL_FREE

Definition at line 143 of file rtextures.c.

◆ STBIW_MALLOC

#define STBIW_MALLOC   RL_MALLOC

Definition at line 142 of file rtextures.c.

◆ STBIW_REALLOC

#define STBIW_REALLOC   RL_REALLOC

Definition at line 144 of file rtextures.c.

◆ TEXT_BYTES_PER_LINE

#define TEXT_BYTES_PER_LINE   20

Function Documentation

◆ ColorAlpha()

Color ColorAlpha ( Color  color,
float  alpha 
)

Definition at line 3798 of file rtextures.c.

◆ ColorAlphaBlend()

Color ColorAlphaBlend ( Color  dst,
Color  src,
Color  tint 
)

Definition at line 3807 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ColorFromHSV()

Color ColorFromHSV ( float  hue,
float  saturation,
float  value 
)

Definition at line 3766 of file rtextures.c.

◆ ColorFromNormalized()

Color ColorFromNormalized ( Vector4  normalized)

Definition at line 3697 of file rtextures.c.

◆ ColorNormalize()

Vector4 ColorNormalize ( Color  color)

Definition at line 3684 of file rtextures.c.

+ Here is the caller graph for this function:

◆ ColorToHSV()

Vector3 ColorToHSV ( Color  color)

Definition at line 3711 of file rtextures.c.

◆ ColorToInt()

int ColorToInt ( Color  color)

Definition at line 3678 of file rtextures.c.

◆ DrawTexture()

void DrawTexture ( Texture2D  texture,
int  posX,
int  posY,
Color  tint 
)

Definition at line 3183 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawTextureEx()

void DrawTextureEx ( Texture2D  texture,
Vector2  position,
float  rotation,
float  scale,
Color  tint 
)

Definition at line 3195 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawTextureNPatch()

void DrawTextureNPatch ( Texture2D  texture,
NPatchInfo  nPatchInfo,
Rectangle  dest,
Vector2  origin,
float  rotation,
Color  tint 
)

Definition at line 3437 of file rtextures.c.

+ Here is the call graph for this function:

◆ DrawTexturePoly()

void DrawTexturePoly ( Texture2D  texture,
Vector2  center,
Vector2 points,
Vector2 texcoords,
int  pointCount,
Color  tint 
)

Definition at line 3638 of file rtextures.c.

+ Here is the call graph for this function:

◆ DrawTexturePro()

void DrawTexturePro ( Texture2D  texture,
Rectangle  source,
Rectangle  dest,
Vector2  origin,
float  rotation,
Color  tint 
)

Definition at line 3313 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawTextureQuad()

void DrawTextureQuad ( Texture2D  texture,
Vector2  tiling,
Vector2  offset,
Rectangle  quad,
Color  tint 
)

Definition at line 3216 of file rtextures.c.

+ Here is the call graph for this function:

◆ DrawTextureRec()

void DrawTextureRec ( Texture2D  texture,
Rectangle  source,
Vector2  position,
Color  tint 
)

Definition at line 3205 of file rtextures.c.

+ Here is the call graph for this function:

◆ DrawTextureTiled()

void DrawTextureTiled ( Texture2D  texture,
Rectangle  source,
Rectangle  dest,
Vector2  origin,
float  rotation,
float  scale,
Color  tint 
)

Definition at line 3228 of file rtextures.c.

+ Here is the call graph for this function:

◆ DrawTextureV()

void DrawTextureV ( Texture2D  texture,
Vector2  position,
Color  tint 
)

Definition at line 3189 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExportImage()

bool ExportImage ( Image  image,
const char *  fileName 
)

Definition at line 464 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExportImageAsCode()

bool ExportImageAsCode ( Image  image,
const char *  fileName 
)

Definition at line 545 of file rtextures.c.

+ Here is the call graph for this function:

◆ Fade()

Color Fade ( Color  color,
float  alpha 
)

Definition at line 3669 of file rtextures.c.

◆ GenImageCellular()

Image GenImageCellular ( int  width,
int  height,
int  tileSize 
)

Definition at line 764 of file rtextures.c.

+ Here is the call graph for this function:

◆ GenImageChecked()

Image GenImageChecked ( int  width,
int  height,
int  checksX,
int  checksY,
Color  col1,
Color  col2 
)

Definition at line 717 of file rtextures.c.

◆ GenImageColor()

Image GenImageColor ( int  width,
int  height,
Color  color 
)

Definition at line 605 of file rtextures.c.

+ Here is the caller graph for this function:

◆ GenImageGradientH()

Image GenImageGradientH ( int  width,
int  height,
Color  left,
Color  right 
)

Definition at line 652 of file rtextures.c.

◆ GenImageGradientRadial()

Image GenImageGradientRadial ( int  width,
int  height,
float  density,
Color  inner,
Color  outer 
)

Definition at line 680 of file rtextures.c.

◆ GenImageGradientV()

Image GenImageGradientV ( int  width,
int  height,
Color  top,
Color  bottom 
)

Definition at line 624 of file rtextures.c.

◆ GenImageWhiteNoise()

Image GenImageWhiteNoise ( int  width,
int  height,
float  factor 
)

Definition at line 742 of file rtextures.c.

+ Here is the call graph for this function:

◆ GenTextureMipmaps()

void GenTextureMipmaps ( Texture2D texture)

Definition at line 3076 of file rtextures.c.

+ Here is the call graph for this function:

◆ GetColor()

Color GetColor ( unsigned int  hexValue)

Definition at line 3862 of file rtextures.c.

◆ GetImageAlphaBorder()

Rectangle GetImageAlphaBorder ( Image  image,
float  threshold 
)

Definition at line 2266 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetImageColor()

Color GetImageColor ( Image  image,
int  x,
int  y 
)

Definition at line 2306 of file rtextures.c.

◆ GetPixelColor()

Color GetPixelColor ( void *  srcPtr,
int  format 
)

Definition at line 3875 of file rtextures.c.

+ Here is the caller graph for this function:

◆ GetPixelDataSize()

int GetPixelDataSize ( int  width,
int  height,
int  format 
)

Definition at line 4025 of file rtextures.c.

+ Here is the caller graph for this function:

◆ ImageAlphaClear()

void ImageAlphaClear ( Image image,
Color  color,
float  threshold 
)

Definition at line 1233 of file rtextures.c.

◆ ImageAlphaCrop()

void ImageAlphaCrop ( Image image,
float  threshold 
)

Definition at line 1220 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageAlphaMask()

void ImageAlphaMask ( Image image,
Image  alphaMask 
)

Definition at line 1325 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageAlphaPremultiply()

void ImageAlphaPremultiply ( Image image)

Definition at line 1374 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageClearBackground()

void ImageClearBackground ( Image dst,
Color  color 
)

Definition at line 2412 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorBrightness()

void ImageColorBrightness ( Image image,
int  brightness 
)

Definition at line 2001 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorContrast()

void ImageColorContrast ( Image image,
float  contrast 
)

Definition at line 1943 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorGrayscale()

void ImageColorGrayscale ( Image image)

Definition at line 1936 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorInvert()

void ImageColorInvert ( Image image)

Definition at line 1909 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorReplace()

void ImageColorReplace ( Image image,
Color  color,
Color  replace 
)

Definition at line 2044 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageColorTint()

void ImageColorTint ( Image image,
Color  color 
)

Definition at line 1870 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageCopy()

Image ImageCopy ( Image  image)

Definition at line 833 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageCrop()

void ImageCrop ( Image image,
Rectangle  crop 
)

Definition at line 892 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDither()

void ImageDither ( Image image,
int  rBpp,
int  gBpp,
int  bBpp,
int  aBpp 
)

Definition at line 1627 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDraw()

void ImageDraw ( Image dst,
Image  src,
Rectangle  srcRec,
Rectangle  dstRec,
Color  tint 
)

Definition at line 2731 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDrawCircle()

void ImageDrawCircle ( Image dst,
int  centerX,
int  centerY,
int  radius,
Color  color 
)

Definition at line 2647 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDrawCircleV()

void ImageDrawCircleV ( Image dst,
Vector2  center,
int  radius,
Color  color 
)

Definition at line 2674 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawLine()

void ImageDrawLine ( Image dst,
int  startPosX,
int  startPosY,
int  endPosX,
int  endPosY,
Color  color 
)

Definition at line 2550 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDrawLineV()

void ImageDrawLineV ( Image dst,
Vector2  start,
Vector2  end,
Color  color 
)

Definition at line 2641 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawPixel()

void ImageDrawPixel ( Image dst,
int  x,
int  y,
Color  color 
)

Definition at line 2432 of file rtextures.c.

+ Here is the caller graph for this function:

◆ ImageDrawPixelV()

void ImageDrawPixelV ( Image dst,
Vector2  position,
Color  color 
)

Definition at line 2544 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawRectangle()

void ImageDrawRectangle ( Image dst,
int  posX,
int  posY,
int  width,
int  height,
Color  color 
)

Definition at line 2680 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDrawRectangleLines()

void ImageDrawRectangleLines ( Image dst,
Rectangle  rec,
int  thick,
Color  color 
)

Definition at line 2721 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawRectangleRec()

void ImageDrawRectangleRec ( Image dst,
Rectangle  rec,
Color  color 
)

Definition at line 2692 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageDrawRectangleV()

void ImageDrawRectangleV ( Image dst,
Vector2  position,
Vector2  size,
Color  color 
)

Definition at line 2686 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawText()

void ImageDrawText ( Image dst,
const char *  text,
int  posX,
int  posY,
int  fontSize,
Color  color 
)

Definition at line 2846 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageDrawTextEx()

void ImageDrawTextEx ( Image dst,
Font  font,
const char *  text,
Vector2  position,
float  fontSize,
float  spacing,
Color  tint 
)

Definition at line 2858 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageFlipHorizontal()

void ImageFlipHorizontal ( Image image)

Definition at line 1761 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageFlipVertical()

void ImageFlipVertical ( Image image)

Definition at line 1737 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageFormat()

void ImageFormat ( Image image,
int  newFormat 
)

Definition at line 943 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageFromImage()

Image ImageFromImage ( Image  image,
Rectangle  rec 
)

Definition at line 870 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageMipmaps()

void ImageMipmaps ( Image image)

Definition at line 1558 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageResize()

void ImageResize ( Image image,
int  newWidth,
int  newHeight 
)

Definition at line 1412 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageResizeCanvas()

void ImageResizeCanvas ( Image image,
int  newWidth,
int  newHeight,
int  offsetX,
int  offsetY,
Color  fill 
)

Definition at line 1503 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageResizeNN()

void ImageResizeNN ( Image image,
int  newWidth,
int  newHeight 
)

Definition at line 1463 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageRotateCCW()

void ImageRotateCCW ( Image image)

Definition at line 1838 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageRotateCW()

void ImageRotateCW ( Image image)

Definition at line 1806 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageText()

Image ImageText ( const char *  text,
int  fontSize,
Color  color 
)

Definition at line 1136 of file rtextures.c.

+ Here is the call graph for this function:

◆ ImageTextEx()

Image ImageTextEx ( Font  font,
const char *  text,
float  fontSize,
float  spacing,
Color  tint 
)

Definition at line 1152 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ImageToPOT()

void ImageToPOT ( Image image,
Color  fill 
)

Definition at line 1120 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadImage()

Image LoadImage ( const char *  fileName)

Definition at line 207 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadImageAnim()

Image LoadImageAnim ( const char *  fileName,
int *  frames 
)

Definition at line 268 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadImageColors()

Color * LoadImageColors ( Image  image)

Definition at line 2080 of file rtextures.c.

+ Here is the caller graph for this function:

◆ LoadImageFromMemory()

Image LoadImageFromMemory ( const char *  fileType,
const unsigned char *  fileData,
int  dataSize 
)

Definition at line 305 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadImageFromScreen()

Image LoadImageFromScreen ( void  )

Definition at line 443 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadImageFromTexture()

Image LoadImageFromTexture ( Texture2D  texture)

Definition at line 412 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadImagePalette()

Color * LoadImagePalette ( Image  image,
int  maxPaletteSize,
int *  colorCount 
)

Definition at line 2198 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadImageRaw()

Image LoadImageRaw ( const char *  fileName,
int  width,
int  height,
int  format,
int  headerSize 
)

Definition at line 236 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadRenderTexture()

RenderTexture2D LoadRenderTexture ( int  width,
int  height 
)

Definition at line 2995 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadTexture()

Texture2D LoadTexture ( const char *  fileName)

Definition at line 2874 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadTextureCubemap()

TextureCubemap LoadTextureCubemap ( Image  image,
int  layout 
)

Definition at line 2910 of file rtextures.c.

+ Here is the call graph for this function:

◆ LoadTextureFromImage()

Texture2D LoadTextureFromImage ( Image  image)

Definition at line 2891 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPixelColor()

void SetPixelColor ( void *  dstPtr,
Color  color,
int  format 
)

Definition at line 3943 of file rtextures.c.

+ Here is the caller graph for this function:

◆ SetTextureFilter()

void SetTextureFilter ( Texture2D  texture,
int  filter 
)

Definition at line 3084 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetTextureWrap()

void SetTextureWrap ( Texture2D  texture,
int  wrap 
)

Definition at line 3150 of file rtextures.c.

+ Here is the call graph for this function:

◆ UnloadImage()

void UnloadImage ( Image  image)

Definition at line 457 of file rtextures.c.

+ Here is the caller graph for this function:

◆ UnloadImageColors()

void UnloadImageColors ( Color colors)

Definition at line 2253 of file rtextures.c.

+ Here is the caller graph for this function:

◆ UnloadImagePalette()

void UnloadImagePalette ( Color colors)

Definition at line 2259 of file rtextures.c.

◆ UnloadRenderTexture()

void UnloadRenderTexture ( RenderTexture2D  target)

Definition at line 3045 of file rtextures.c.

+ Here is the call graph for this function:

◆ UnloadTexture()

void UnloadTexture ( Texture2D  texture)

Definition at line 3034 of file rtextures.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateTexture()

void UpdateTexture ( Texture2D  texture,
const void *  pixels 
)

Definition at line 3060 of file rtextures.c.

+ Here is the call graph for this function:

◆ UpdateTextureRec()

void UpdateTextureRec ( Texture2D  texture,
Rectangle  rec,
const void *  pixels 
)

Definition at line 3067 of file rtextures.c.

+ Here is the call graph for this function: