/* * Copyright (c) 2025 Quaming Intelligent Technology Co., Ltd. * * All Rights Reserved. * Confidential and Proprietary - Quaming Intelligent Technology Co., Ltd. */ #include #include "quagl/qua_gl.h" #ifndef __QUA_GL_DRAW_WINDOW_H__ #define __QUA_GL_DRAW_WINDOW_H__ #ifdef __cplusplus extern "C" { #endif #define QUA_OPA_MIN 2 /*Opacities below this will be transparent*/ #define QUA_OPA_MAX 253 /*Opacities above this will fully cover*/ #define QUA_OPA_MIX2(a1, a2) (((int32_t)(a1) * (a2)) >> 8) typedef struct { uint8_t blue; uint8_t green; uint8_t red; } qua_color_t; typedef struct { uint8_t blue; uint8_t green; uint8_t red; uint8_t alpha; } qua_color32_t; typedef struct { uint8_t opa; qua_color_t color; const uint8_t *mask; uint32_t mask_stride; } qua_color_info_t; QUA_BOOL qua_gl_draw_window(qua_gl_surface_t *window_surface, qua_color_info_t *color_info); #ifdef __cplusplus } #endif #endif