From ac28ac9154da6f598403d2b6c1c64bc3b3ecca2c Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 16 Apr 2025 00:21:29 +0900 Subject: [PATCH] remove some docs i cannot maintain --- engine/graphic/opengl/gf_driver.c | 6 ------ engine/graphic/opengl/gf_graphic.c | 7 ------- engine/graphic/opengl/glfw/gf_draw.c | 13 ------------- engine/graphic/opengl/glx/gf_draw.c | 6 ------ engine/graphic/opengl/wgl/gf_draw.c | 15 --------------- engine/thread/posix/gf_thread.c | 12 ------------ engine/thread/win32/gf_thread.c | 12 ------------ 7 files changed, 71 deletions(-) diff --git a/engine/graphic/opengl/gf_driver.c b/engine/graphic/opengl/gf_driver.c index 261213e..b379536 100644 --- a/engine/graphic/opengl/gf_driver.c +++ b/engine/graphic/opengl/gf_driver.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief OpenGL drawing driver - */ - #define GF_EXPOSE_DRAW_DRIVER #define GF_EXPOSE_DRAW #define GF_EXPOSE_TEXTURE diff --git a/engine/graphic/opengl/gf_graphic.c b/engine/graphic/opengl/gf_graphic.c index bd9dbe5..d912c17 100644 --- a/engine/graphic/opengl/gf_graphic.c +++ b/engine/graphic/opengl/gf_graphic.c @@ -1,10 +1,3 @@ -/** - * @file - * @~english - * @brief OpenGL graphic interface - */ - -#include #define GF_EXPOSE_DRAW #define GF_EXPOSE_TEXTURE diff --git a/engine/graphic/opengl/glfw/gf_draw.c b/engine/graphic/opengl/glfw/gf_draw.c index e309601..2287fd8 100644 --- a/engine/graphic/opengl/glfw/gf_draw.c +++ b/engine/graphic/opengl/glfw/gf_draw.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief GLFW-dependent part of drawing driver - */ - #define GF_EXPOSE_DRAW_PLATFORM #define GF_EXPOSE_DRAW @@ -34,13 +28,6 @@ void gf_draw_platform_begin(void) { void gf_draw_platform_end(void) {} -/** - * @~english - * @brief GLFW resize handler - * @param window GLFW window - * @param w Width of window - * @param h Height of window - */ void gf_glfw_size(GLFWwindow* window, int w, int h) { gf_draw_t* draw = (gf_draw_t*)glfwGetWindowUserPointer(window); draw->width = w; diff --git a/engine/graphic/opengl/glx/gf_draw.c b/engine/graphic/opengl/glx/gf_draw.c index a104a92..85f6c22 100644 --- a/engine/graphic/opengl/glx/gf_draw.c +++ b/engine/graphic/opengl/glx/gf_draw.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief GLX-dependent part of drawing driver - */ - #define GF_EXPOSE_DRAW_PLATFORM #define GF_EXPOSE_DRAW diff --git a/engine/graphic/opengl/wgl/gf_draw.c b/engine/graphic/opengl/wgl/gf_draw.c index 9f3e5b8..3982058 100644 --- a/engine/graphic/opengl/wgl/gf_draw.c +++ b/engine/graphic/opengl/wgl/gf_draw.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief WGL-dependent part of drawing driver - */ - #define GF_EXPOSE_DRAW_PLATFORM #define GF_EXPOSE_DRAW @@ -32,15 +26,6 @@ typedef BOOL(APIENTRY* PFNWGLSWAPINTERVALPROC)(int); void gf_draw_platform_begin(void) {} void gf_draw_platform_end(void) {} -/** - * @~english - * @brief Win32 API event handler - * @param hWnd Window - * @param msg Message - * @param wp Word parameter - * @param lp Long parameter - * @return Result - */ LRESULT CALLBACK gf_draw_platform_proc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { PAINTSTRUCT ps; RECT rect; diff --git a/engine/thread/posix/gf_thread.c b/engine/thread/posix/gf_thread.c index 87642ff..d03a786 100644 --- a/engine/thread/posix/gf_thread.c +++ b/engine/thread/posix/gf_thread.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief POSIX thread - */ - #define GF_EXPOSE_THREAD #include @@ -19,12 +13,6 @@ /* 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 d7ae3b5..51f6cbf 100644 --- a/engine/thread/win32/gf_thread.c +++ b/engine/thread/win32/gf_thread.c @@ -1,9 +1,3 @@ -/** - * @file - * @~english - * @brief Win32 thread - */ - #define GF_EXPOSE_THREAD #include @@ -19,12 +13,6 @@ /* 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);