microvg  2.0.0
microvg
LLVG_PATH_stub.c
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2022 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 
21 #include "microvg_configuration.h"
22 
23 #ifndef VG_FEATURE_PATH
24 
25 // -----------------------------------------------------------------------------
26 // Includes
27 // -----------------------------------------------------------------------------
28 
29 #include <LLVG_PATH_impl.h>
30 #include <LLVG_PATH_PAINTER_impl.h>
31 
32 // -----------------------------------------------------------------------------
33 // LLVG_PATH_impl.h functions
34 // -----------------------------------------------------------------------------
35 
36 // See the header file for the function documentation
37 jint LLVG_PATH_IMPL_initializePath(jbyte* jpath, jint length) {
38  (void)jpath;
39  (void)length;
40  return LLVG_SUCCESS;
41 }
42 
43 // See the header file for the function documentation
44 jint LLVG_PATH_IMPL_appendPathCommand1(jbyte* jpath, jint length, jint cmd, jfloat x, jfloat y) {
45  (void)jpath;
46  (void)length;
47  (void)cmd;
48  (void)x;
49  (void)y;
50  return LLVG_SUCCESS;
51 }
52 
53 // See the header file for the function documentation
54 jint LLVG_PATH_IMPL_appendPathCommand2(jbyte* jpath, jint length, jint cmd, jfloat x1, jfloat y1, jfloat x2,
55  jfloat y2) {
56  (void)jpath;
57  (void)length;
58  (void)cmd;
59  (void)x1;
60  (void)y1;
61  (void)x2;
62  (void)y2;
63  return LLVG_SUCCESS;
64 }
65 
66 // See the header file for the function documentation
67 jint LLVG_PATH_IMPL_appendPathCommand3(jbyte* jpath, jint length, jint cmd, jfloat x1, jfloat y1, jfloat x2,
68  jfloat y2, jfloat x3, jfloat y3) {
69  (void)jpath;
70  (void)length;
71  (void)cmd;
72  (void)x1;
73  (void)y1;
74  (void)x2;
75  (void)y2;
76  (void)x3;
77  (void)y3;
78  return LLVG_SUCCESS;
79 }
80 
81 // See the header file for the function documentation
82 void LLVG_PATH_IMPL_reopenPath(jbyte* jpath) {
83  // nothing to do
84  (void)jpath;
85 }
86 
87 // -----------------------------------------------------------------------------
88 // LLVG_PAINTER_impl.h functions
89 // -----------------------------------------------------------------------------
90 
91 // See the header file for the function documentation
92 jint LLVG_PATH_PAINTER_IMPL_drawPath(MICROUI_GraphicsContext* gc, jbyte* pathData, jint x, jint y, jfloat* matrix, jint fillRule, jint blend, jint color){
93  (void)gc;
94  (void)pathData;
95  (void)x;
96  (void)y;
97  (void)matrix;
98  (void)fillRule;
99  (void)blend;
100  (void)color;
101  return LLVG_SUCCESS;
102 }
103 
104 // See the header file for the function documentation
105 jint LLVG_PATH_PAINTER_IMPL_drawGradient(MICROUI_GraphicsContext* gc, jbyte* pathData, jint x, jint y, jfloat* matrix, jint fillRule, jint blend, jint* gradientData, jfloat* gradientMatrix, jint alpha){
106  (void)gc;
107  (void)pathData;
108  (void)x;
109  (void)y;
110  (void)matrix;
111  (void)fillRule;
112  (void)blend;
113  (void)gradientData;
114  (void)gradientMatrix;
115  (void)alpha;
116  return LLVG_SUCCESS;
117 }
118 
119 // -----------------------------------------------------------------------------
120 // EOF
121 // -----------------------------------------------------------------------------
122 
123 #endif // VG_FEATURE_PATH
MicroEJ MicroVG library low level API: enable some features according to the hardware capacities...