summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-05-07 18:04:34 +0200
committerRay <[email protected]>2022-05-07 18:04:34 +0200
commitdf3f64bfd2c103603ae87097d5e8efad0ed54181 (patch)
tree4e57a5ecfcbfc4634177a3d3f322a1f3b953dc05
parentaa318674e8e790eda7deefc021bb8e4c6877d59d (diff)
downloadraylib-df3f64bfd2c103603ae87097d5e8efad0ed54181.tar.gz
raylib-df3f64bfd2c103603ae87097d5e8efad0ed54181.zip
Corrected typo
-rw-r--r--src/rcore.c4
-rw-r--r--src/rlgl.h6
-rw-r--r--src/rtext.c6
-rw-r--r--src/rtextures.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/rcore.c b/src/rcore.c
index e2cbf6ca..d899317b 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3189,7 +3189,7 @@ long GetFileModTime(const char *fileName)
return 0;
}
-// Compress data (DEFLATE algorythm)
+// Compress data (DEFLATE algorithm)
unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize)
{
#define COMPRESSION_QUALITY_DEFLATE 8
@@ -3209,7 +3209,7 @@ unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDa
return compData;
}
-// Decompress data (DEFLATE algorythm)
+// Decompress data (DEFLATE algorithm)
unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize)
{
unsigned char *data = NULL;
diff --git a/src/rlgl.h b/src/rlgl.h
index d929989d..ea4eb9f4 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3110,7 +3110,7 @@ void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
if ((texIsPOT) || (RLGL.ExtSupported.texNPOT))
{
- //glHint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE); // Hint for mipmaps generation algorythm: GL_FASTEST, GL_NICEST, GL_DONT_CARE
+ //glHint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE); // Hint for mipmaps generation algorithm: GL_FASTEST, GL_NICEST, GL_DONT_CARE
glGenerateMipmap(GL_TEXTURE_2D); // Generate mipmaps automatically
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
@@ -4091,7 +4091,7 @@ Matrix rlGetMatrixTransform(void)
}
// Get internal projection matrix for stereo render (selected eye)
-Matrix rlGetMatrixProjectionStereo(int eye)
+RLAPI Matrix rlGetMatrixProjectionStereo(int eye)
{
Matrix mat = rlMatrixIdentity();
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
@@ -4101,7 +4101,7 @@ Matrix rlGetMatrixProjectionStereo(int eye)
}
// Get internal view offset matrix for stereo render (selected eye)
-Matrix rlGetMatrixViewOffsetStereo(int eye)
+RLAPI Matrix rlGetMatrixViewOffsetStereo(int eye)
{
Matrix mat = rlMatrixIdentity();
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
diff --git a/src/rtext.c b/src/rtext.c
index 78211416..6be8801f 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -25,7 +25,7 @@
*
* DEPENDENCIES:
* stb_truetype - Load TTF file and rasterize characters data
-* stb_rect_pack - Rectangles packing algorythms, required for font atlas generation
+* stb_rect_pack - Rectangles packing algorithms, required for font atlas generation
*
*
* LICENSE: zlib/libpng
@@ -695,7 +695,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
// DEBUG: We can see padding in the generated image setting a gray background...
//for (int i = 0; i < atlas.width*atlas.height; i++) ((unsigned char *)atlas.data)[i] = 100;
- if (packMethod == 0) // Use basic packing algorythm
+ if (packMethod == 0) // Use basic packing algorithm
{
int offsetX = padding;
int offsetY = padding;
@@ -746,7 +746,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
}
}
}
- else if (packMethod == 1) // Use Skyline rect packing algorythm (stb_pack_rect)
+ else if (packMethod == 1) // Use Skyline rect packing algorithm (stb_pack_rect)
{
stbrp_context *context = (stbrp_context *)RL_MALLOC(sizeof(*context));
stbrp_node *nodes = (stbrp_node *)RL_MALLOC(glyphCount*sizeof(*nodes));
diff --git a/src/rtextures.c b/src/rtextures.c
index 990475fb..d10fc8a8 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -37,7 +37,7 @@
* 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
+* stb_image_resize - Multiple image resize algorithms
*
*
* LICENSE: zlib/libpng