2020-02-07 20:10:19 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the Micro Python project, http://micropython.org/
|
|
|
|
*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2020 James Bowman for Excamera Labs
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H
|
|
|
|
|
2021-11-10 09:42:21 -05:00
|
|
|
#include "shared-module/_eve/__init__.h"
|
|
|
|
|
2020-02-07 20:10:19 -05:00
|
|
|
void common_hal__eve_flush(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_add(common_hal__eve_t *eve, size_t len, void *buf);
|
|
|
|
void common_hal__eve_Vertex2f(common_hal__eve_t *eve, mp_float_t x, mp_float_t y);
|
|
|
|
|
|
|
|
void common_hal__eve_AlphaFunc(common_hal__eve_t *eve, uint32_t func, uint32_t ref);
|
|
|
|
void common_hal__eve_Begin(common_hal__eve_t *eve, uint32_t prim);
|
|
|
|
void common_hal__eve_BitmapExtFormat(common_hal__eve_t *eve, uint32_t fmt);
|
|
|
|
void common_hal__eve_BitmapHandle(common_hal__eve_t *eve, uint32_t handle);
|
|
|
|
void common_hal__eve_BitmapLayoutH(common_hal__eve_t *eve, uint32_t linestride, uint32_t height);
|
|
|
|
void common_hal__eve_BitmapLayout(common_hal__eve_t *eve, uint32_t format, uint32_t linestride, uint32_t height);
|
|
|
|
void common_hal__eve_BitmapSizeH(common_hal__eve_t *eve, uint32_t width, uint32_t height);
|
|
|
|
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);
|
|
|
|
void common_hal__eve_BitmapSource(common_hal__eve_t *eve, uint32_t addr);
|
|
|
|
void common_hal__eve_BitmapSwizzle(common_hal__eve_t *eve, uint32_t r, uint32_t g, uint32_t b, uint32_t a);
|
2020-02-10 22:34:38 -05:00
|
|
|
void common_hal__eve_BitmapTransformA(common_hal__eve_t *eve, uint32_t p, uint32_t v);
|
|
|
|
void common_hal__eve_BitmapTransformB(common_hal__eve_t *eve, uint32_t p, uint32_t v);
|
|
|
|
void common_hal__eve_BitmapTransformC(common_hal__eve_t *eve, uint32_t v);
|
|
|
|
void common_hal__eve_BitmapTransformD(common_hal__eve_t *eve, uint32_t p, uint32_t v);
|
|
|
|
void common_hal__eve_BitmapTransformE(common_hal__eve_t *eve, uint32_t p, uint32_t v);
|
|
|
|
void common_hal__eve_BitmapTransformF(common_hal__eve_t *eve, uint32_t v);
|
2020-02-07 20:10:19 -05:00
|
|
|
void common_hal__eve_BlendFunc(common_hal__eve_t *eve, uint32_t src, uint32_t dst);
|
|
|
|
void common_hal__eve_Call(common_hal__eve_t *eve, uint32_t dest);
|
|
|
|
void common_hal__eve_Cell(common_hal__eve_t *eve, uint32_t cell);
|
|
|
|
void common_hal__eve_ClearColorA(common_hal__eve_t *eve, uint32_t alpha);
|
|
|
|
void common_hal__eve_ClearColorRGB(common_hal__eve_t *eve, uint32_t red, uint32_t green, uint32_t blue);
|
|
|
|
void common_hal__eve_Clear(common_hal__eve_t *eve, uint32_t c, uint32_t s, uint32_t t);
|
|
|
|
void common_hal__eve_ClearStencil(common_hal__eve_t *eve, uint32_t s);
|
|
|
|
void common_hal__eve_ClearTag(common_hal__eve_t *eve, uint32_t s);
|
|
|
|
void common_hal__eve_ColorA(common_hal__eve_t *eve, uint32_t alpha);
|
|
|
|
void common_hal__eve_ColorMask(common_hal__eve_t *eve, uint32_t r, uint32_t g, uint32_t b, uint32_t a);
|
|
|
|
void common_hal__eve_ColorRGB(common_hal__eve_t *eve, uint32_t red, uint32_t green, uint32_t blue);
|
|
|
|
void common_hal__eve_Display(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_End(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_Jump(common_hal__eve_t *eve, uint32_t dest);
|
2021-01-22 18:52:46 -05:00
|
|
|
void common_hal__eve_LineWidth(common_hal__eve_t *eve, mp_float_t width);
|
2020-02-07 20:10:19 -05:00
|
|
|
void common_hal__eve_Macro(common_hal__eve_t *eve, uint32_t m);
|
|
|
|
void common_hal__eve_Nop(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_PaletteSource(common_hal__eve_t *eve, uint32_t addr);
|
2021-01-22 18:52:46 -05:00
|
|
|
void common_hal__eve_PointSize(common_hal__eve_t *eve, mp_float_t size);
|
2020-02-07 20:10:19 -05:00
|
|
|
void common_hal__eve_RestoreContext(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_Return(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_SaveContext(common_hal__eve_t *eve);
|
|
|
|
void common_hal__eve_ScissorSize(common_hal__eve_t *eve, uint32_t width, uint32_t height);
|
|
|
|
void common_hal__eve_ScissorXY(common_hal__eve_t *eve, uint32_t x, uint32_t y);
|
|
|
|
void common_hal__eve_StencilFunc(common_hal__eve_t *eve, uint32_t func, uint32_t ref, uint32_t mask);
|
|
|
|
void common_hal__eve_StencilMask(common_hal__eve_t *eve, uint32_t mask);
|
|
|
|
void common_hal__eve_StencilOp(common_hal__eve_t *eve, uint32_t sfail, uint32_t spass);
|
|
|
|
void common_hal__eve_TagMask(common_hal__eve_t *eve, uint32_t mask);
|
|
|
|
void common_hal__eve_Tag(common_hal__eve_t *eve, uint32_t s);
|
2021-01-22 18:52:46 -05:00
|
|
|
void common_hal__eve_VertexTranslateX(common_hal__eve_t *eve, mp_float_t x);
|
|
|
|
void common_hal__eve_VertexTranslateY(common_hal__eve_t *eve, mp_float_t y);
|
2020-02-07 20:10:19 -05:00
|
|
|
void common_hal__eve_VertexFormat(common_hal__eve_t *eve, uint32_t frac);
|
|
|
|
void common_hal__eve_Vertex2ii(common_hal__eve_t *eve, uint32_t x, uint32_t y, uint32_t handle, uint32_t cell);
|
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H
|