@@ -970,6 +970,7 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(vertex2ii_obj, 3, 5, _vertex2ii);
970970 { MP_ROM_QSTR(MP_QSTR_PaletteSource), MP_ROM_PTR(&palettesource_obj) }, \
971971 { MP_ROM_QSTR(MP_QSTR_PaletteSourceH), MP_ROM_PTR(&palettesourceh_obj) }, \
972972 { MP_ROM_QSTR(MP_QSTR_PointSize), MP_ROM_PTR(&pointsize_obj) }, \
973+ { MP_ROM_QSTR(MP_QSTR_Region), MP_ROM_PTR(®ion_obj) }, \
973974 { MP_ROM_QSTR(MP_QSTR_RestoreContext), MP_ROM_PTR(&restorecontext_obj) }, \
974975 { MP_ROM_QSTR(MP_QSTR_Return), MP_ROM_PTR(&return_obj) }, \
975976 { MP_ROM_QSTR(MP_QSTR_SaveContext), MP_ROM_PTR(&savecontext_obj) }, \
@@ -1061,8 +1062,29 @@ static mp_obj_t _pointsize(mp_obj_t self, mp_obj_t a0) {
10611062 common_hal__eve_PointSize (EVEHAL (self ), size );
10621063 return mp_const_none ;
10631064}
1065+
10641066static MP_DEFINE_CONST_FUN_OBJ_2 (pointsize_obj , _pointsize ) ;
10651067
1068+ //| def Region(self, y: int, h: int, dest: int) -> None:
1069+ //| """Specify a cull region in the display list
1070+ //|
1071+ //| :param int y: Starting Y band in the render buffer. Range 0-63
1072+ //| :param int h: Y height in the render buffer. Range 0-63
1073+ //| :param int dest: destination address in the display list if the raster is outside the region
1074+ //|
1075+ //| """
1076+ //| ...
1077+ //|
1078+
1079+ static mp_obj_t _region (size_t n_args , const mp_obj_t * args ) {
1080+ uint32_t y = mp_obj_get_int_truncated (args [1 ]);
1081+ uint32_t h = mp_obj_get_int_truncated (args [2 ]);
1082+ uint32_t dest = mp_obj_get_int_truncated (args [3 ]);
1083+ common_hal__eve_Region (EVEHAL (args [0 ]), y , h , dest );
1084+ return mp_const_none ;
1085+ }
1086+ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (region_obj , 4 , 4 , _region ) ;
1087+
10661088//| def VertexTranslateX(self, x: float) -> None:
10671089//| """Set the vertex transformation's x translation component
10681090//|
0 commit comments