Mercurial > molko
changeset 21:63eaec5ceba9
misc: minor cleanups
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 09 Jan 2020 20:25:16 +0100 |
parents | 2fb93d57c098 |
children | 5519ad48822e |
files | src/font.h src/image.c src/image.h src/texture.h src/window.h |
diffstat | 5 files changed, 17 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.h Wed Jan 08 20:07:00 2020 +0100 +++ b/src/font.h Thu Jan 09 20:25:16 2020 +0100 @@ -27,6 +27,12 @@ #include <stddef.h> #include <stdint.h> +/** + * \brief Font object. + * + * This object is not publicly defined because it contains + * implementation-defined data. + */ struct font; struct texture;
--- a/src/image.c Wed Jan 08 20:07:00 2020 +0100 +++ b/src/image.c Thu Jan 09 20:25:16 2020 +0100 @@ -32,7 +32,7 @@ } struct texture * -image_openb(const char *buffer, size_t size) +image_openb(const void *buffer, size_t size) { assert(buffer);
--- a/src/image.h Wed Jan 08 20:07:00 2020 +0100 +++ b/src/image.h Thu Jan 09 20:25:16 2020 +0100 @@ -47,6 +47,6 @@ * \return the texture or NULL on error */ struct texture * -image_openb(const char *buffer, size_t size); +image_openb(const void *buffer, size_t size); #endif /* !MOLKO_IMAGE_H */
--- a/src/texture.h Wed Jan 08 20:07:00 2020 +0100 +++ b/src/texture.h Thu Jan 09 20:25:16 2020 +0100 @@ -19,8 +19,6 @@ #ifndef MOLKO_TEXTURE_H #define MOLKO_TEXTURE_H -struct texture; - /** * \file texture.h * \brief Basic texture management. @@ -29,6 +27,14 @@ */ /** + * \brief Texture object. + * + * This object is not publicly defined because it contains + * implementation-defined data. + */ +struct texture; + +/** * Simple texture drawing. * * \pre tex != NULL
--- a/src/window.h Wed Jan 08 20:07:00 2020 +0100 +++ b/src/window.h Thu Jan 09 20:25:16 2020 +0100 @@ -100,8 +100,7 @@ window_present(void); /** - * Close the window and destroy associated resources, do not use pointer - * afterwards. + * Close the window and destroy associated resources. */ void window_close(void);