bindbc.raylib.bind.texture

Undocumented in source.

Members

Aliases

pDrawTexture
alias pDrawTexture = void function(Texture2D texture, int posX, int posY, Color tint)

Draw a Texture2D

pDrawTextureEx
alias pDrawTextureEx = void function(Texture2D texture, Vector2 position, float rotation, float scale, Color tint)

Draw a Texture2D with extended parameters

pDrawTextureNPatch
alias pDrawTextureNPatch = void function(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint)

Draws a texture (or part of it) that stretches or shrinks nicely

pDrawTexturePro
alias pDrawTexturePro = void function(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

pDrawTextureQuad
alias pDrawTextureQuad = void function(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint)

Draw texture quad with tiling and offset parameters

pDrawTextureRec
alias pDrawTextureRec = void function(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint)

Draw a part of a texture defined by a rectangle

pDrawTextureV
alias pDrawTextureV = void function(Texture2D texture, Vector2 position, Color tint)

Draw a Texture2D with position defined as Vector2

pExportImage
alias pExportImage = void function(Image image, const(char)* fileName)

Export image data to file

pExportImageAsCode
alias pExportImageAsCode = void function(Image image, const(char)* fileName)

Export image as code file defining an array of bytes

pGenImageCellular
alias pGenImageCellular = Image function(int width, int height, int tileSize)

Generate image: cellular algorithm. Bigger tileSize means bigger cells

pGenImageChecked
alias pGenImageChecked = Image function(int width, int height, int checksX, int checksY, Color col1, Color col2)

Generate image: checked

pGenImageColor
alias pGenImageColor = Image function(int width, int height, Color color)

Generate image: plain color

pGenImageGradientH
alias pGenImageGradientH = Image function(int width, int height, Color left, Color right)

Generate image: horizontal gradient

pGenImageGradientRadial
alias pGenImageGradientRadial = Image function(int width, int height, float density, Color inner, Color outer)

Generate image: radial gradient

pGenImageGradientV
alias pGenImageGradientV = Image function(int width, int height, Color top, Color bottom)

Generate image: vertical gradient

pGenImagePerlinNoise
alias pGenImagePerlinNoise = Image function(int width, int height, int offsetX, int offsetY, float scale)

Generate image: perlin noise

pGenImageWhiteNoise
alias pGenImageWhiteNoise = Image function(int width, int height, float factor)

Generate image: white noise

pGenTextureMipmaps
alias pGenTextureMipmaps = void function(Texture2D* texture)

Generate GPU mipmaps for a texture

pGetImageAlphaBorder
alias pGetImageAlphaBorder = Rectangle function(Image image, float threshold)

Get image alpha border rectangle

pGetImageData
alias pGetImageData = Color* function(Image image)

Get pixel data from image as a Color struct array

pGetImageDataNormalized
alias pGetImageDataNormalized = Vector4* function(Image image)

Get pixel data from image as Vector4 array (float normalized)

pGetPixelDataSize
alias pGetPixelDataSize = int function(int width, int height, int format)

Get pixel data size in bytes (image or texture)

pGetScreenData
alias pGetScreenData = Image function()

Get pixel data from screen buffer and return an Image (screenshot)

pGetTextureData
alias pGetTextureData = Image function(Texture2D texture)

Get pixel data from GPU texture and return an Image

pImageAlphaClear
alias pImageAlphaClear = void function(Image* image, Color color, float threshold)

Clear alpha channel to desired color

pImageAlphaCrop
alias pImageAlphaCrop = void function(Image* image, float threshold)

Crop image depending on alpha value

pImageAlphaMask
alias pImageAlphaMask = void function(Image* image, Image alphaMask)

Apply alpha mask to image

pImageAlphaPremultiply
alias pImageAlphaPremultiply = void function(Image* image)

Premultiply alpha channel

pImageClearBackground
alias pImageClearBackground = void function(Image* dst, Color color)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pImageColorBrightness
alias pImageColorBrightness = void function(Image* image, int brightness)

Modify image color: brightness (-255 to 255)

pImageColorContrast
alias pImageColorContrast = void function(Image* image, float contrast)

Modify image color: contrast (-100 to 100)

pImageColorGrayscale
alias pImageColorGrayscale = void function(Image* image)

Modify image color: grayscale

pImageColorInvert
alias pImageColorInvert = void function(Image* image)

Modify image color: invert

pImageColorReplace
alias pImageColorReplace = void function(Image* image, Color color, Color replace)

Modify image color: replace color

pImageColorTint
alias pImageColorTint = void function(Image* image, Color color)

Modify image color: tint

pImageCopy
alias pImageCopy = Image function(Image image)

Create an image duplicate (useful for transformations)

pImageCrop
alias pImageCrop = void function(Image* image, Rectangle crop)

Crop an image to a defined rectangle

pImageDither
alias pImageDither = void function(Image* image, int rBpp, int gBpp, int bBpp, int aBpp)

Dither image data to 16bpp or lower (Floyd-Steinberg dithering)

pImageDraw
alias pImageDraw = void function(Image* dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint)

Draw a source image within a destination image (tint applied to source)

pImageDrawCircle
alias pImageDrawCircle = void function(Image* dst, int centerX, int centerY, int radius, Color color)

Draw circle within an image

pImageDrawCircleV
alias pImageDrawCircleV = void function(Image* dst, Vector2 center, int radius, Color color)

Draw circle within an image (Vector version)

pImageDrawLine
alias pImageDrawLine = void function(Image* dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color)

Draw line within an image

pImageDrawLineV
alias pImageDrawLineV = void function(Image* dst, Vector2 start, Vector2 end, Color color)

Draw line within an image (Vector version)

pImageDrawPixel
alias pImageDrawPixel = void function(Image* dst, int posX, int posY, Color color)

Draw pixel within an image

pImageDrawPixelV
alias pImageDrawPixelV = void function(Image* dst, Vector2 position, Color color)

Draw pixel within an image (Vector version)

pImageDrawRectangle
alias pImageDrawRectangle = void function(Image* dst, Rectangle rec, Color color)

Draw rectangle within an image

pImageDrawRectangleLines
alias pImageDrawRectangleLines = void function(Image* dst, Rectangle rec, int thick, Color color)

Draw rectangle lines within an image

pImageDrawRectangleRec
alias pImageDrawRectangleRec = void function(Image* dst, Rectangle rec, Color color)

Draw rectangle within an image

pImageDrawRectangleV
alias pImageDrawRectangleV = void function(Image* dst, Vector2 position, Vector2 size, Color color)

Draw rectangle within an image (Vector version)

pImageDrawText
alias pImageDrawText = void function(Image* dst, const(char)* text, int posX, int posY, int fontSize, Color color)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pImageDrawText
alias pImageDrawText = void function(Image* dst, Vector2 position, const(char)* text, int fontSize, Color color)

Draw text (default font) within an image (destination)

pImageDrawTextEx
alias pImageDrawTextEx = void function(Image* dst, Font font, const(char)* text, Vector2 position, float fontSize, float spacing, Color tint)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pImageDrawTextEx
alias pImageDrawTextEx = void function(Image* dst, Vector2 position, Font font, const(char)* text, float fontSize, float spacing, Color color)

Draw text (custom sprite font) within an image (destination)

pImageExtractPalette
alias pImageExtractPalette = Color* function(Image image, int maxPaletteSize, int* extractCount)

Extract color palette from image to maximum size (memory should be freed)

pImageFlipHorizontal
alias pImageFlipHorizontal = void function(Image* image)

Flip image horizontally

pImageFlipVertical
alias pImageFlipVertical = void function(Image* image)

Flip image vertically

pImageFormat
alias pImageFormat = void function(Image* image, int newFormat)

Convert image data to desired format

pImageFromImage
alias pImageFromImage = Image function(Image image, Rectangle rec)

Create an image from another image piece

pImageMipmaps
alias pImageMipmaps = void function(Image* image)

Generate all mipmap levels for a provided image

pImageResize
alias pImageResize = void function(Image* image, int newWidth, int newHeight)

Resize image (Bicubic scaling algorithm)

pImageResizeCanvas
alias pImageResizeCanvas = void function(Image* image, int newWidth, int newHeight, int offsetX, int offsetY, Color color)

Resize canvas and fill with color

pImageResizeNN
alias pImageResizeNN = void function(Image* image, int newWidth, int newHeight)

Resize image (Nearest-Neighbor scaling algorithm)

pImageRotateCCW
alias pImageRotateCCW = void function(Image* image)

Rotate image counter-clockwise 90deg

pImageRotateCW
alias pImageRotateCW = void function(Image* image)

Rotate image clockwise 90deg

pImageText
alias pImageText = Image function(const(char)* text, int fontSize, Color color)

Create an image from text (default font)

pImageTextEx
alias pImageTextEx = Image function(Font font, const(char)* text, float fontSize, float spacing, Color tint)

Create an image from text (custom sprite font)

pImageToPOT
alias pImageToPOT = void function(Image* image, Color fillColor)

Convert image to POT (power-of-two)

pLoadImage
alias pLoadImage = Image function(const(char)* fileName)

Load image from file into CPU memory (RAM)

pLoadImageEx
alias pLoadImageEx = Image function(Color* pixels, int width, int height)

Load image from Color array data (RGBA - 32bit)

pLoadImagePro
alias pLoadImagePro = Image function(void* data, int width, int height, int format)

Load image from raw data with parameters

pLoadImageRaw
alias pLoadImageRaw = Image function(const(char)* fileName, int width, int height, int format, int headerSize)

Load image from RAW file data

pLoadRenderTexture
alias pLoadRenderTexture = RenderTexture2D function(int width, int height)

Load texture for rendering (framebuffer)

pLoadTexture
alias pLoadTexture = Texture2D function(const(char)* fileName)

Load texture from file into GPU memory (VRAM)

pLoadTextureCubemap
alias pLoadTextureCubemap = TextureCubemap function(Image image, int layoutType)

Load cubemap from image, multiple image cubemap layouts supported

pLoadTextureFromImage
alias pLoadTextureFromImage = Texture2D function(Image image)

Load texture from image data

pSetTextureFilter
alias pSetTextureFilter = void function(Texture2D texture, int filterMode)

Set texture scaling filter mode

pSetTextureWrap
alias pSetTextureWrap = void function(Texture2D texture, int wrapMode)

Set texture wrapping mode

pUnloadImage
alias pUnloadImage = void function(Image image)

Unload image from CPU memory (RAM)

pUnloadRenderTexture
alias pUnloadRenderTexture = void function(RenderTexture2D target)

Unload render texture from GPU memory (VRAM)

pUnloadTexture
alias pUnloadTexture = void function(Texture2D texture)

Unload texture from GPU memory (VRAM)

pUpdateTexture
alias pUpdateTexture = void function(Texture2D texture, const void* pixels)

Update GPU texture with new data

Static variables

DrawTexture
pDrawTexture DrawTexture;
Undocumented in source.
DrawTextureEx
pDrawTextureEx DrawTextureEx;
Undocumented in source.
DrawTextureNPatch
pDrawTextureNPatch DrawTextureNPatch;
Undocumented in source.
DrawTexturePro
pDrawTexturePro DrawTexturePro;
Undocumented in source.
DrawTextureQuad
pDrawTextureQuad DrawTextureQuad;
Undocumented in source.
DrawTextureRec
pDrawTextureRec DrawTextureRec;
Undocumented in source.
DrawTextureV
pDrawTextureV DrawTextureV;
Undocumented in source.
ExportImage
pExportImage ExportImage;
Undocumented in source.
ExportImageAsCode
pExportImageAsCode ExportImageAsCode;
Undocumented in source.
GenImageCellular
pGenImageCellular GenImageCellular;
Undocumented in source.
GenImageChecked
pGenImageChecked GenImageChecked;
Undocumented in source.
GenImageColor
pGenImageColor GenImageColor;
Undocumented in source.
GenImageGradientH
pGenImageGradientH GenImageGradientH;
Undocumented in source.
GenImageGradientRadial
pGenImageGradientRadial GenImageGradientRadial;
Undocumented in source.
GenImageGradientV
pGenImageGradientV GenImageGradientV;
Undocumented in source.
GenImagePerlinNoise
pGenImagePerlinNoise GenImagePerlinNoise;
Undocumented in source.
GenImageWhiteNoise
pGenImageWhiteNoise GenImageWhiteNoise;
Undocumented in source.
GenTextureMipmaps
pGenTextureMipmaps GenTextureMipmaps;
Undocumented in source.
GetImageAlphaBorder
pGetImageAlphaBorder GetImageAlphaBorder;
Undocumented in source.
GetImageData
pGetImageData GetImageData;
Undocumented in source.
GetImageDataNormalized
pGetImageDataNormalized GetImageDataNormalized;
Undocumented in source.
GetPixelDataSize
pGetPixelDataSize GetPixelDataSize;
Undocumented in source.
GetScreenData
pGetScreenData GetScreenData;
Undocumented in source.
GetTextureData
pGetTextureData GetTextureData;
Undocumented in source.
ImageAlphaClear
pImageAlphaClear ImageAlphaClear;
Undocumented in source.
ImageAlphaCrop
pImageAlphaCrop ImageAlphaCrop;
Undocumented in source.
ImageAlphaMask
pImageAlphaMask ImageAlphaMask;
Undocumented in source.
ImageAlphaPremultiply
pImageAlphaPremultiply ImageAlphaPremultiply;
Undocumented in source.
ImageClearBackground
pImageClearBackground ImageClearBackground;
Undocumented in source.
ImageColorBrightness
pImageColorBrightness ImageColorBrightness;
Undocumented in source.
ImageColorContrast
pImageColorContrast ImageColorContrast;
Undocumented in source.
ImageColorGrayscale
pImageColorGrayscale ImageColorGrayscale;
Undocumented in source.
ImageColorInvert
pImageColorInvert ImageColorInvert;
Undocumented in source.
ImageColorReplace
pImageColorReplace ImageColorReplace;
Undocumented in source.
ImageColorTint
pImageColorTint ImageColorTint;
Undocumented in source.
ImageCopy
pImageCopy ImageCopy;
Undocumented in source.
ImageCrop
pImageCrop ImageCrop;
Undocumented in source.
ImageDither
pImageDither ImageDither;
Undocumented in source.
ImageDraw
pImageDraw ImageDraw;
Undocumented in source.
ImageDrawCircle
pImageDrawCircle ImageDrawCircle;
Undocumented in source.
ImageDrawCircleV
pImageDrawCircleV ImageDrawCircleV;
Undocumented in source.
ImageDrawLine
pImageDrawLine ImageDrawLine;
Undocumented in source.
ImageDrawLineV
pImageDrawLineV ImageDrawLineV;
Undocumented in source.
ImageDrawPixel
pImageDrawPixel ImageDrawPixel;
Undocumented in source.
ImageDrawPixelV
pImageDrawPixelV ImageDrawPixelV;
Undocumented in source.
ImageDrawRectangle
pImageDrawRectangle ImageDrawRectangle;
Undocumented in source.
ImageDrawRectangleLines
pImageDrawRectangleLines ImageDrawRectangleLines;
Undocumented in source.
ImageDrawRectangleRec
pImageDrawRectangleRec ImageDrawRectangleRec;
Undocumented in source.
ImageDrawRectangleV
pImageDrawRectangleV ImageDrawRectangleV;
Undocumented in source.
ImageDrawText
pImageDrawText ImageDrawText;
Undocumented in source.
ImageDrawText
pImageDrawText ImageDrawText;
Undocumented in source.
ImageDrawTextEx
pImageDrawTextEx ImageDrawTextEx;
Undocumented in source.
ImageDrawTextEx
pImageDrawTextEx ImageDrawTextEx;
Undocumented in source.
ImageExtractPalette
pImageExtractPalette ImageExtractPalette;
Undocumented in source.
ImageFlipHorizontal
pImageFlipHorizontal ImageFlipHorizontal;
Undocumented in source.
ImageFlipVertical
pImageFlipVertical ImageFlipVertical;
Undocumented in source.
ImageFormat
pImageFormat ImageFormat;
Undocumented in source.
ImageFromImage
pImageFromImage ImageFromImage;
Undocumented in source.
ImageMipmaps
pImageMipmaps ImageMipmaps;
Undocumented in source.
ImageResize
pImageResize ImageResize;
Undocumented in source.
ImageResizeCanvas
pImageResizeCanvas ImageResizeCanvas;
Undocumented in source.
ImageResizeNN
pImageResizeNN ImageResizeNN;
Undocumented in source.
ImageRotateCCW
pImageRotateCCW ImageRotateCCW;
Undocumented in source.
ImageRotateCW
pImageRotateCW ImageRotateCW;
Undocumented in source.
ImageText
pImageText ImageText;
Undocumented in source.
ImageTextEx
pImageTextEx ImageTextEx;
Undocumented in source.
ImageToPOT
pImageToPOT ImageToPOT;
Undocumented in source.
LoadImage
pLoadImage LoadImage;
Undocumented in source.
LoadImageEx
pLoadImageEx LoadImageEx;
Undocumented in source.
LoadImagePro
pLoadImagePro LoadImagePro;
Undocumented in source.
LoadImageRaw
pLoadImageRaw LoadImageRaw;
Undocumented in source.
LoadRenderTexture
pLoadRenderTexture LoadRenderTexture;
Undocumented in source.
LoadTexture
pLoadTexture LoadTexture;
Undocumented in source.
LoadTextureCubemap
pLoadTextureCubemap LoadTextureCubemap;
Undocumented in source.
LoadTextureFromImage
pLoadTextureFromImage LoadTextureFromImage;
Undocumented in source.
SetTextureFilter
pSetTextureFilter SetTextureFilter;
Undocumented in source.
SetTextureWrap
pSetTextureWrap SetTextureWrap;
Undocumented in source.
UnloadImage
pUnloadImage UnloadImage;
Undocumented in source.
UnloadRenderTexture
pUnloadRenderTexture UnloadRenderTexture;
Undocumented in source.
UnloadTexture
pUnloadTexture UnloadTexture;
Undocumented in source.
UpdateTexture
pUpdateTexture UpdateTexture;
Undocumented in source.

Meta