microvg  3.0.0
microvg
LLVG_impl.c
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2022-2023 MicroEJ Corp. All rights reserved.
5  * Use of this source code is governed by a BSD-style license that can be found with this software.
6  */
7 
15 // -----------------------------------------------------------------------------
16 // Includes
17 // -----------------------------------------------------------------------------
18 
19 #include <LLVG_impl.h>
20 #include <LLUI_DISPLAY.h>
21 
22 #include "microvg_configuration.h"
23 #include "microvg_helper.h"
24 #include "microvg_font_freetype.h"
25 #include "microvg_path.h"
26 
27 // -----------------------------------------------------------------------------
28 // Defines
29 // -----------------------------------------------------------------------------
30 
31 #if (defined(LLVG_MAJOR_VERSION) && (LLVG_MAJOR_VERSION != 1)) || (defined(LLVG_MINOR_VERSION) && (LLVG_MINOR_VERSION < 3))
32 #error "This CCO is only compatible with VG Pack [1.3.0,2.0.0["
33 #endif
34 
35 // -----------------------------------------------------------------------------
36 // LLVG_impl.h functions
37 // -----------------------------------------------------------------------------
38 
39 // See the header file for the function documentation
40 void LLVG_IMPL_initialize(void) {
41  MICROVG_HELPER_initialize();
42 
43 #if defined VG_FEATURE_FONT && \
44  (defined VG_FEATURE_FONT_FREETYPE_VECTOR || defined VG_FEATURE_FONT_FREETYPE_BITMAP) && \
45  (VG_FEATURE_FONT == VG_FEATURE_FONT_FREETYPE_VECTOR || VG_FEATURE_FONT == VG_FEATURE_FONT_FREETYPE_BITMAP)
46 
47  MICROVG_FONT_FREETYPE_initialize();
48 #endif
49 
50  MICROVG_PATH_initialize();
51 }
52 
MicroEJ MicroVG library low level API: helper to implement library natives methods.
MicroEJ MicroVG library low level API: implementation of Path.
MicroEJ MicroVG library low level API: implementation over FreeType.
MicroEJ MicroVG library low level API: enable some features according to the hardware capacities...