+
    õäûjG  ã                   óŠ  € R t ^ RIHt ^ RIHt  ! R R]4      tR t]R8X  d    ^ RIH	t	 ]	P                  t. tR t]! ]4      ! ]4      t]! 4        ]P                   R	8X  g   Q h]P                  P                  R
8X  g   Q h]P                  R
8X  g   Q h]P                   ]J g   Q h]P"                  ]J g   Q h]'       g   Q hR# R# )z6Simplistic wrapper decorator for Python-coded wrappers)ÚCurry)ÚMODULE_ANNOTATIONSc                   ó   € ] tR t^tRtRtR# )Ú_LazyWrapperz2Marker to tell us that an object is a lazy wrapper© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚNC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\OpenGL\lazywrapper.pyr   r      s   † Ý<r   r   c                ó   a € V 3R lpV# )a¢  Produce a lazy-binding decorator that uses baseFunction

Allows simple implementation of wrappers where the
whole of the wrapper can be summed up as do 1 thing
then call base function with the cleaned up result.

Passes baseFunction in as the first argument of the
wrapped function, all other parameters are passed
unchanged.  The wrapper class created has __nonzero__
and similar common wrapper entry points defined.
c                ó*  <€ V3R lpV3R lp\        V P                  \        3RVRV P                  RVRVRSR\	        V R\	        SRR	4      4      /4      pV! V S4      pV P                  Vn        \        SR
4      '       d   SP                  Vn        V# )zWrap wrapper with baseFunctionc                 ó   <€ \        S4      # )N)Úbool©ÚselfÚbaseFunctions   &€r   Ú__bool__Ú$lazy.<locals>.wrap.<locals>.__bool__   s   ø€ Ü˜Ó'Ð'r   c                 ó,   <€ R : RSP                   : R2# )zOpenGL.lazywrapper.lazyz( z ))r   r   s   &€r   Ú__repr__Ú$lazy.<locals>.wrap.<locals>.__repr__   s   ø€ ã)Ø×%Ô%ðð r   r   r   Ú__nonzero__r   ÚwrappedOperationÚrestypeNr   )Útyper   r   r   ÚgetattrÚhasattrr   )Úwrapperr   r   Ú_with_wrapperÚwith_wrapperr   s   &    €r   ÚwrapÚlazy.<locals>.wrap   s�   ø€ õ	(õ	ô
 ˜g×.Ñ.´°Ø˜Ø�w—‘Ø˜8Ø˜Ø Ø”w˜w¨	´'¸,ÀyÐQUÓ2VÓWðB
ó ˆñ % W¨\Ó:ˆØ '× 0Ñ 0ˆÔÜ�L ,×0Ò0Ø&2×&=Ñ&=ˆLÔ#ØÐr   r   )r   r$   s   f r   Úlazyr&      s   ø€ õð, €Kr   Ú__main__)ÚGLUc                ó0   € \         P                  V 4       R# )ÚTestingN)ÚoutputÚappend)Úbases   &r   Útestwrapr.   1   s   € ä�‰�tÖr   r*   r.   N)r   ÚOpenGL.latebindr   ÚOpenGLr   r   r&   r   Ú
OpenGL.rawr(   ÚgluNurbsCallbackDataÚfuncr+   r.   ÚtestlazyÚ	__class__r   ÚwrapperFunctionr   r   r   Ú<module>r7      sÍ   ðÙ <Ý !Ý %ô=�Eô =ò"ðJ ˆzÔÝØ×#Ñ#€DØ€Fòñ �TŒ|˜XÓ'€HÙ„KØ×Ñ˜yÔ(Ð(Ð(Ø×Ñ×&Ñ&¨*Ô4Ð4Ð4Ø×Ñ 
Ô*Ð*Ð*Ø× Ñ  DÓ(Ð(Ð(Ø×#Ñ# xÓ/Ð/Ð/ß€MŠ6ñ r   