§
    kj  ã                   óª   — d Z ddlmZ ddlZddlmZmZ ddlmZ eej	        ej
        ej        ej        f         Z G d„ de¦  «        Z e¦   «         ZdS )z
Shader Registry
é    )ÚUnionN)ÚResourceDescriptionÚTextureDescription)ÚBaseRegistryc                   ó<   ‡ — e Zd ZU dZdZeed<   dedefˆ fd„Z	ˆ xZ
S )ÚTextureszHandles texture resourcesÚTEXTURE_LOADERSÚmetaÚreturnc                 ó4  •— t          ¦   «                              |¦  «        }t          |t          j        ¦  «        s[t          |t          j        ¦  «        sAt          |t          j        ¦  «        s't          |t          j        ¦  «        sJ |› d¦   «         ‚|S )aP  Loads a texture with the configured loaders.

        Args:
            meta (:py:class:`~moderngl_window.meta.texture.TextureDescription`):
            The resource description
        Returns:
            moderngl.Texture: 2d texture
        Returns:
            moderngl.TextureArray: texture array if ``layers`` is supplied
        z* did not load a texture. Please correct it)ÚsuperÚloadÚ
isinstanceÚmodernglÚTextureÚTextureArrayÚTextureCubeÚ	Texture3D)Úselfr
   ÚtextureÚ	__class__s      €ú]/home/agentuser/manim-venv/lib/python3.11/site-packages/moderngl_window/resources/textures.pyr   zTextures.load   s›   ø€ õ ‘'”'—,’,˜tÑ$Ô$ˆåw¥Ô 0Ñ1Ô1ð	?å˜'¥8Ô#8Ñ9Ô9ð	?õ ˜'¥8Ô#7Ñ8Ô8ð	?õ ˜'¥8Ô#5Ñ6Ô6ð		?ð 	?ð
 Ð>Ð>Ð>ñ	?ô 	?ð7ð
 ˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úsettings_attrr   Ú__annotations__r   Ú
TextureAnyr   Ú__classcell__)r   s   @r   r   r      se   ø€ € € € € € Ø#Ð#à%€MØ
ÐÐÑðÐ,ð °ð ð ð ð ð ð ð ð ð ð r   r   )r   Útypingr   r   Úmoderngl_window.metar   r   Úmoderngl_window.resources.baser   r   r   r   r   r    r   Útextures© r   r   ú<module>r'      s¸   ððð ð Ð Ð Ð Ð Ð à €€€à HÐ HÐ HÐ HÐ HÐ HÐ HÐ HØ 7Ð 7Ð 7Ð 7Ð 7Ð 7àØÔØÔØÔØÔðô€
ðð ð ð ð ˆ|ñ ô ð ð6 ˆ8‰:Œ:€€€r   