Browse Source

Corrected typo

Ray 3 years ago
parent
commit
df3f64bfd2
4 changed files with 9 additions and 9 deletions
  1. 2 2
      src/rcore.c
  2. 3 3
      src/rlgl.h
  3. 3 3
      src/rtext.c
  4. 1 1
      src/rtextures.c

+ 2 - 2
src/rcore.c

@@ -3189,7 +3189,7 @@ long GetFileModTime(const char *fileName)
     return 0;
     return 0;
 }
 }
 
 
-// Compress data (DEFLATE algorythm)
+// Compress data (DEFLATE algorithm)
 unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize)
 unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize)
 {
 {
     #define COMPRESSION_QUALITY_DEFLATE  8
     #define COMPRESSION_QUALITY_DEFLATE  8
@@ -3209,7 +3209,7 @@ unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDa
     return compData;
     return compData;
 }
 }
 
 
-// Decompress data (DEFLATE algorythm)
+// Decompress data (DEFLATE algorithm)
 unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize)
 unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize)
 {
 {
     unsigned char *data = NULL;
     unsigned char *data = NULL;

+ 3 - 3
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 defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
     if ((texIsPOT) || (RLGL.ExtSupported.texNPOT))
     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
         glGenerateMipmap(GL_TEXTURE_2D);    // Generate mipmaps automatically
 
 
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
         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)
 // Get internal projection matrix for stereo render (selected eye)
-Matrix rlGetMatrixProjectionStereo(int eye)
+RLAPI Matrix rlGetMatrixProjectionStereo(int eye)
 {
 {
     Matrix mat = rlMatrixIdentity();
     Matrix mat = rlMatrixIdentity();
 #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
 #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)
 // Get internal view offset matrix for stereo render (selected eye)
-Matrix rlGetMatrixViewOffsetStereo(int eye)
+RLAPI Matrix rlGetMatrixViewOffsetStereo(int eye)
 {
 {
     Matrix mat = rlMatrixIdentity();
     Matrix mat = rlMatrixIdentity();
 #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
 #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)

+ 3 - 3
src/rtext.c

@@ -25,7 +25,7 @@
 *
 *
 *   DEPENDENCIES:
 *   DEPENDENCIES:
 *       stb_truetype  - Load TTF file and rasterize characters data
 *       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
 *   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...
     // 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;
     //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 offsetX = padding;
         int offsetY = 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_context *context = (stbrp_context *)RL_MALLOC(sizeof(*context));
         stbrp_node *nodes = (stbrp_node *)RL_MALLOC(glyphCount*sizeof(*nodes));
         stbrp_node *nodes = (stbrp_node *)RL_MALLOC(glyphCount*sizeof(*nodes));

+ 1 - 1
src/rtextures.c

@@ -37,7 +37,7 @@
 *   DEPENDENCIES:
 *   DEPENDENCIES:
 *       stb_image        - Multiple image formats loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC)
 *       stb_image        - Multiple image formats loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC)
 *                          NOTE: stb_image has been slightly modified to support Android platform.
 *                          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
 *   LICENSE: zlib/libpng