Browse Source

Minor tweaks

pull/4103/head
Ray 10 months ago
parent
commit
385e60dd41
4 changed files with 6 additions and 5 deletions
  1. +1
    -1
      src/raylib.h
  2. +1
    -1
      src/rlgl.h
  3. +1
    -1
      src/rshapes.c
  4. +3
    -2
      src/rtextures.c

+ 1
- 1
src/raylib.h View File

@ -1342,7 +1342,7 @@ RLAPI void ImageAlphaClear(Image *image, Color color, float threshold);
RLAPI void ImageAlphaMask(Image *image, Image alphaMask); // Apply alpha mask to image RLAPI void ImageAlphaMask(Image *image, Image alphaMask); // Apply alpha mask to image
RLAPI void ImageAlphaPremultiply(Image *image); // Premultiply alpha channel RLAPI void ImageAlphaPremultiply(Image *image); // Premultiply alpha channel
RLAPI void ImageBlurGaussian(Image *image, int blurSize); // Apply Gaussian blur using a box blur approximation RLAPI void ImageBlurGaussian(Image *image, int blurSize); // Apply Gaussian blur using a box blur approximation
RLAPI void ImageKernelConvolution(Image *image, float *kernel, int kernelSize); // Apply Custom Square image convolution kernel RLAPI void ImageKernelConvolution(Image *image, ">const float *kernel, int kernelSize); // Apply custom square convolution kernel to image
RLAPI void ImageResize(Image *image, int newWidth, int newHeight); // Resize image (Bicubic scaling algorithm) RLAPI void ImageResize(Image *image, int newWidth, int newHeight); // Resize image (Bicubic scaling algorithm)
RLAPI void ImageResizeNN(Image *image, int newWidth,int newHeight); // Resize image (Nearest-Neighbor scaling algorithm) RLAPI void ImageResizeNN(Image *image, int newWidth,int newHeight); // Resize image (Nearest-Neighbor scaling algorithm)
RLAPI void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill); // Resize canvas and fill with color RLAPI void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill); // Resize canvas and fill with color

+ 1
- 1
src/rlgl.h View File

@ -1406,7 +1406,7 @@ void rlBegin(int mode)
} }
} }
void rlEnd() { glEnd(); } void rlEnd(kt">void) { glEnd(); }
void rlVertex2i(int x, int y) { glVertex2i(x, y); } void rlVertex2i(int x, int y) { glVertex2i(x, y); }
void rlVertex2f(float x, float y) { glVertex2f(x, y); } void rlVertex2f(float x, float y) { glVertex2f(x, y); }
void rlVertex3f(float x, float y, float z) { glVertex3f(x, y, z); } void rlVertex3f(float x, float y, float z) { glVertex3f(x, y, z); }

+ 1
- 1
src/rshapes.c View File

@ -126,7 +126,7 @@ Rectangle GetShapesTextureRectangle(void)
// Draw a pixel // Draw a pixel
void DrawPixel(int posX, int posY, Color color) void DrawPixel(int posX, int posY, Color color)
{ {
DrawPixelV((Vector2){ (float)posX, (float)posY }, color); DrawPixelV((Vector2){ (float)posX, (float)posY }, color);
} }
// Draw a pixel (Vector version) // Draw a pixel (Vector version)

+ 3
- 2
src/rtextures.c View File

@ -2156,8 +2156,9 @@ void ImageBlurGaussian(Image *image, int blurSize)
ImageFormat(image, format); ImageFormat(image, format);
} }
// The kernel matrix is assumed to be square. Only supply the width of the kernel // Apply custom square convolution kernel to image
void ImageKernelConvolution(Image *image, float* kernel, int kernelSize) // NOTE: The convolution kernel matrix is expected to be square
void ImageKernelConvolution(Image *image, const float *kernel, int kernelSize)
{ {
if ((image->data == NULL) || (image->width == 0) || (image->height == 0) || kernel == NULL) return; if ((image->data == NULL) || (image->width == 0) || (image->height == 0) || kernel == NULL) return;

||||||
x
 
000:0
Loading…
Cancel
Save