Move _eve module declarations into shared-bindings header · csamuelson/circuitpython@f101ff6 · GitHub
Skip to content

Commit f101ff6

Browse files
committed
Move _eve module declarations into shared-bindings header
1 parent c631b4d commit f101ff6

3 files changed

Lines changed: 86 additions & 55 deletions

File tree

shared-bindings/_eve/__init__.c

Lines changed: 2 additions & 1 deletion

shared-bindings/_eve/__init__.h

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* This file is part of the Micro Python project, http://micropython.org/
3+
*
4+
* The MIT License (MIT)
5+
*
6+
* Copyright (c) 2020 James Bowman for Excamera Labs
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
* THE SOFTWARE.
25+
*/
26+
27+
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H
28+
#define MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H
29+
30+
void common_hal__eve_flush(common_hal__eve_t *eve);
31+
void common_hal__eve_add(common_hal__eve_t *eve, size_t len, void *buf);
32+
void common_hal__eve_Vertex2f(common_hal__eve_t *eve, mp_float_t x, mp_float_t y);
33+
34+
void common_hal__eve_AlphaFunc(common_hal__eve_t *eve, uint32_t func, uint32_t ref);
35+
void common_hal__eve_Begin(common_hal__eve_t *eve, uint32_t prim);
36+
void common_hal__eve_BitmapExtFormat(common_hal__eve_t *eve, uint32_t fmt);
37+
void common_hal__eve_BitmapHandle(common_hal__eve_t *eve, uint32_t handle);
38+
void common_hal__eve_BitmapLayoutH(common_hal__eve_t *eve, uint32_t linestride, uint32_t height);
39+
void common_hal__eve_BitmapLayout(common_hal__eve_t *eve, uint32_t format, uint32_t linestride, uint32_t height);
40+
void common_hal__eve_BitmapSizeH(common_hal__eve_t *eve, uint32_t width, uint32_t height);
41+
void common_hal__eve_BitmapSize(common_hal__eve_t *eve, uint32_t filter, uint32_t wrapx, uint32_t wrapy, uint32_t width, uint32_t height);
42+
void common_hal__eve_BitmapSource(common_hal__eve_t *eve, uint32_t addr);
43+
void common_hal__eve_BitmapSwizzle(common_hal__eve_t *eve, uint32_t r, uint32_t g, uint32_t b, uint32_t a);
44+
void common_hal__eve_BitmapTransformA(common_hal__eve_t *eve, uint32_t a, uint32_t p);
45+
void common_hal__eve_BitmapTransformB(common_hal__eve_t *eve, uint32_t b, uint32_t p);
46+
void common_hal__eve_BitmapTransformC(common_hal__eve_t *eve, uint32_t c, uint32_t p);
47+
void common_hal__eve_BitmapTransformD(common_hal__eve_t *eve, uint32_t d, uint32_t p);
48+
void common_hal__eve_BitmapTransformE(common_hal__eve_t *eve, uint32_t e, uint32_t p);
49+
void common_hal__eve_BitmapTransformF(common_hal__eve_t *eve, uint32_t f, uint32_t p);
50+
void common_hal__eve_BlendFunc(common_hal__eve_t *eve, uint32_t src, uint32_t dst);
51+
void common_hal__eve_Call(common_hal__eve_t *eve, uint32_t dest);
52+
void common_hal__eve_Cell(common_hal__eve_t *eve, uint32_t cell);
53+
void common_hal__eve_ClearColorA(common_hal__eve_t *eve, uint32_t alpha);
54+
void common_hal__eve_ClearColorRGB(common_hal__eve_t *eve, uint32_t red, uint32_t green, uint32_t blue);
55+
void common_hal__eve_Clear(common_hal__eve_t *eve, uint32_t c, uint32_t s, uint32_t t);
56+
void common_hal__eve_ClearStencil(common_hal__eve_t *eve, uint32_t s);
57+
void common_hal__eve_ClearTag(common_hal__eve_t *eve, uint32_t s);
58+
void common_hal__eve_ColorA(common_hal__eve_t *eve, uint32_t alpha);
59+
void common_hal__eve_ColorMask(common_hal__eve_t *eve, uint32_t r, uint32_t g, uint32_t b, uint32_t a);
60+
void common_hal__eve_ColorRGB(common_hal__eve_t *eve, uint32_t red, uint32_t green, uint32_t blue);
61+
void common_hal__eve_Display(common_hal__eve_t *eve);
62+
void common_hal__eve_End(common_hal__eve_t *eve);
63+
void common_hal__eve_Jump(common_hal__eve_t *eve, uint32_t dest);
64+
void common_hal__eve_LineWidth(common_hal__eve_t *eve, uint32_t width);
65+
void common_hal__eve_Macro(common_hal__eve_t *eve, uint32_t m);
66+
void common_hal__eve_Nop(common_hal__eve_t *eve);
67+
void common_hal__eve_PaletteSource(common_hal__eve_t *eve, uint32_t addr);
68+
void common_hal__eve_PointSize(common_hal__eve_t *eve, uint32_t size);
69+
void common_hal__eve_RestoreContext(common_hal__eve_t *eve);
70+
void common_hal__eve_Return(common_hal__eve_t *eve);
71+
void common_hal__eve_SaveContext(common_hal__eve_t *eve);
72+
void common_hal__eve_ScissorSize(common_hal__eve_t *eve, uint32_t width, uint32_t height);
73+
void common_hal__eve_ScissorXY(common_hal__eve_t *eve, uint32_t x, uint32_t y);
74+
void common_hal__eve_StencilFunc(common_hal__eve_t *eve, uint32_t func, uint32_t ref, uint32_t mask);
75+
void common_hal__eve_StencilMask(common_hal__eve_t *eve, uint32_t mask);
76+
void common_hal__eve_StencilOp(common_hal__eve_t *eve, uint32_t sfail, uint32_t spass);
77+
void common_hal__eve_TagMask(common_hal__eve_t *eve, uint32_t mask);
78+
void common_hal__eve_Tag(common_hal__eve_t *eve, uint32_t s);
79+
void common_hal__eve_VertexTranslateX(common_hal__eve_t *eve, uint32_t x);
80+
void common_hal__eve_VertexTranslateY(common_hal__eve_t *eve, uint32_t y);
81+
void common_hal__eve_VertexFormat(common_hal__eve_t *eve, uint32_t frac);
82+
void common_hal__eve_Vertex2ii(common_hal__eve_t *eve, uint32_t x, uint32_t y, uint32_t handle, uint32_t cell);
83+
84+
#endif // MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H

shared-module/_eve/__init__.h

Lines changed: 0 additions & 54 deletions

0 commit comments

Comments
 (0)