From 01fecddffc06043e772fa78fafb467b0ddcb3b1c Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 15 Apr 2025 20:53:07 +0900 Subject: [PATCH] fix document --- engine/include/gf_texture.h | 1 + engine/thread/posix/gf_thread.c | 12 ++++++++++++ engine/thread/win32/gf_thread.c | 12 ++++++++++++ 3 files changed, 25 insertions(+) diff --git a/engine/include/gf_texture.h b/engine/include/gf_texture.h index 788ac7c..9aec0d5 100644 --- a/engine/include/gf_texture.h +++ b/engine/include/gf_texture.h @@ -21,6 +21,7 @@ /** * @~english * @brief Register texture + * @param draw Drawing interface * @param width Width of texture * @param height Height of texture * @param data Texture data diff --git a/engine/thread/posix/gf_thread.c b/engine/thread/posix/gf_thread.c index d03a786..87642ff 100644 --- a/engine/thread/posix/gf_thread.c +++ b/engine/thread/posix/gf_thread.c @@ -1,3 +1,9 @@ +/** + * @file + * @~english + * @brief POSIX thread + */ + #define GF_EXPOSE_THREAD #include @@ -13,6 +19,12 @@ /* Standard */ #include +/** + * @~english + * @brief Wrap thread + * @param arg Thread context + * @return NULL + */ void* gf_wrap_thread(void* arg) { gf_thread_context_t* ctx = (gf_thread_context_t*)arg; ctx->func(ctx->data); diff --git a/engine/thread/win32/gf_thread.c b/engine/thread/win32/gf_thread.c index 51f6cbf..d7ae3b5 100644 --- a/engine/thread/win32/gf_thread.c +++ b/engine/thread/win32/gf_thread.c @@ -1,3 +1,9 @@ +/** + * @file + * @~english + * @brief Win32 thread + */ + #define GF_EXPOSE_THREAD #include @@ -13,6 +19,12 @@ /* Standard */ #include +/** + * @~english + * @brief Wrap thread + * @param arg Thread context + * @return 0 + */ DWORD WINAPI gf_wrap_thread(void* arg) { gf_thread_context_t* ctx = (gf_thread_context_t*)arg; ctx->func(ctx->data);