libdsf: Update to v0.1.3

This commit is contained in:
Antonio Niño Díaz 2024-08-14 00:44:23 +01:00
parent 88d1b489f6
commit 4115a62800
2 changed files with 7 additions and 8 deletions

View File

@ -931,7 +931,6 @@ dsf_error DSF_StringRenderToTexture(dsf_handle handle,
// Allocate buffer // Allocate buffer
void *tex_buffer = calloc(1, tex_size); void *tex_buffer = calloc(1, tex_size);
memset(tex_buffer, 0, tex_size);
if (tex_buffer == NULL) if (tex_buffer == NULL)
return DSF_NO_MEMORY; return DSF_NO_MEMORY;

View File

@ -20,7 +20,7 @@
/// Minor version of LibDSF (semver) /// Minor version of LibDSF (semver)
#define LIBDSF_VERSION_MINOR 1 #define LIBDSF_VERSION_MINOR 1
/// Patch version of LibDSF (semver) /// Patch version of LibDSF (semver)
#define LIBDSF_VERSION_PATCH 2 #define LIBDSF_VERSION_PATCH 3
/// Value that combines all version numbers, useful for version checks. /// Value that combines all version numbers, useful for version checks.
#define LIBDSF_VERSION \ #define LIBDSF_VERSION \
@ -29,7 +29,7 @@
(LIBDSF_VERSION_PATCH << 1)) (LIBDSF_VERSION_PATCH << 1))
/// Version string /// Version string
#define LIBDSF_VERSION_STRING "0.1.2" #define LIBDSF_VERSION_STRING "0.1.3"
/// Character that is used when there are UTF-8 decoding errors. /// Character that is used when there are UTF-8 decoding errors.
/// ///
@ -154,15 +154,15 @@ dsf_error DSF_StringRender3DAlpha(dsf_handle handle, const char *str,
/// ///
/// Also, note that this texture doesn't need to have a size that is a power of /// Also, note that this texture doesn't need to have a size that is a power of
/// two. However, consider that the size of a row should at least be a multiple /// two. However, consider that the size of a row should at least be a multiple
/// of a full byte (for example, for a 16 color texture, don't use a texture /// of a full pixel (for example, for a 16 color texture, don't use a texture
/// with width of 143 because the last byte won't be full). To be sure that you /// with width of 143 bytes because the last pixel won't be full). To be sure
/// never find any issue, ensure that your textures have a width multiple of 4 /// that you never find any issue, ensure that your textures have a width
/// pixels, that will work with all texture formats. /// multiple of 4 pixels, that will work with all texture formats.
/// ///
/// @param handle Handler of the font to use. /// @param handle Handler of the font to use.
/// @param str String to print. /// @param str String to print.
/// @param texture_fmt Texture format (GL_TEXTURE_TYPE_ENUM, NE_TextureFormat). /// @param texture_fmt Texture format (GL_TEXTURE_TYPE_ENUM, NE_TextureFormat).
/// @param font_texture Pointer to the font texture data that contains the. /// @param font_texture Pointer to the font texture.
/// @param font_width Width of the font texture. /// @param font_width Width of the font texture.
/// @param font_height Height of the font texture. /// @param font_height Height of the font texture.
/// @param out_texture The pointer to the new buffer is returned here. /// @param out_texture The pointer to the new buffer is returned here.