# Generated by scripts/generate_pyi.py, do not edit.

from typing import Any, Callable

import renpy

import builtins as __builtins__

class Mesh2(renpy.gl2.gl2mesh.Mesh):
    def __init__(self, layout: 'AttributeLayout', points: int, triangles: int): ...

    def __reduce__(self): ...

    def __repr__(self, /): ...

    def __setstate__(self, __pyx_state): ...

    def add_glyph(self, tw: float, th: float, cx: float, cy: float, index: float, left: float, top: float, right: float, bottom: float, left_time: float, right_time: float, ascent: float, descent: float, xoffset: float, yoffset: float): ...

    def crop(self, p: 'Polygon') -> 'Mesh2': ...

    def get_point0(self): ...

    def get_points(self): ...

    @staticmethod
    def rectangle(pl: float, pb: float, pr: float, pt: float): ...

    def remap_texture(self, old_x: float, old_y: float, old_w: float, old_h: float, new_x: float, new_y: float, new_w: float, new_h: float): ...

    @staticmethod
    def text_mesh(glyphs: int): ...

    @staticmethod
    def texture_grid_mesh(width: int, height: int, pl: float, pb: float, pr: float, pt: float, tl: float, tb: float, tr: float, tt: float): ...

    @staticmethod
    def texture_rectangle(pl: float, pb: float, pr: float, pt: float, tl: float, tb: float, tr: float, tt: float): ...


