Cobbletext  0.2.0
Complex text layout and rendering engine
math_.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 
5 #include "macros.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
17 uint32_t cobbletext_math_alpha_blend_over_argb(uint32_t background,
18  uint32_t foreground);
19 
26 uint32_t cobbletext_math_gamma_argb(uint32_t color, double gamma);
27 
28 #ifdef __cplusplus
29 }
30 #endif
cobbletext_math_alpha_blend_over_argb
uint32_t cobbletext_math_alpha_blend_over_argb(uint32_t background, uint32_t foreground)
Composite two ARGB color values using alpha blending and the "over" operator.
macros.h
cobbletext_math_gamma_argb
uint32_t cobbletext_math_gamma_argb(uint32_t color, double gamma)
Apply gamma function to the ARGB color value.
COBBLETEXT_API
#define COBBLETEXT_API
Macro for Windows C symbol import and export, Emscripten attribute.
Definition: macros.h:18