
    3j	                         S r SrSSKr\R                  " S5      rSSKJr  Sr\R                  (       a   SSK	Jr  \c  SSKJr   " S	 S
\R                  5      rgg! \
 a  r\R                  S5         SrCN<SrCff = f)z&Passing of None as an array data-type
nones    NzOpenGL.arrays.nones)acceleratesupport)NoneHandlerzEUnable to load nones_formathandler accelerator from OpenGL_accelerate)formathandlerc                       \ rS rSrSr\" S5      4rSS jrS rS r	SS jr
S rSS	 jrSS
 jrSS jrSS jrSS jrSS jrSrg)r      z+Numpy-specific data-type handler for OpenGLNc                     g)z!Convert to a ctypes pointer valueN selfvaluetypeCodes      M/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/arrays/nones.py
from_paramNoneHandler.from_param           c                     g)zreturn long for pointer valueNr
   r   r   s     r   dataPointerNoneHandler.dataPointer   r   r   c                     g)zCGiven value in a known data-pointer type, return void_p for pointerNr
   )clsr   s     r   voidDataPointerNoneHandler.voidDataPointer   r   r   c                     g)z.Given a value, convert to array representationNr
   r   s      r   asArrayNoneHandler.asArray   r   r   c                     [        S5      e)z=Given a value, guess OpenGL type of the corresponding pointerz"Can't guess type of a NULL pointer	TypeErrorr   s     r   arrayToGLTypeNoneHandler.arrayToGLType!   s    EGGr   c                     g)z6Given a data-value, calculate dimensions for the arrayr   r
   r   s      r   	arraySizeNoneHandler.arraySize$       r   c                     g)zCGiven a data-value, calculate number of bytes required to representr   r
   r   s      r   arrayByteCountNoneHandler.arrayByteCount'   r'   r   c                     [        S5      ez2Create an array of given shape with given typeCodez,Can't create NULL pointer filled with valuesr    r   shaper   s      r   zerosNoneHandler.zeros*       OQQr   c                     [        S5      er,   r    r-   s      r   onesNoneHandler.ones-   r1   r   c                     [        S5      e)z-Determine unit size of an array (if possible)z+Can't determine unit size of a null pointerr    r   s      r   unitSizeNoneHandler.unitSize0   s    NPPr   c                     g)z<Determine dimensions of the passed array value (if possible))r   r
   r   s      r   
dimensionsNoneHandler.dimensions3   r   r   r
   )N)__name__
__module____qualname____firstlineno____doc__typeHANDLED_TYPESr   r   r   r   r"   r%   r)   r/   r3   r6   r9   __static_attributes__r
   r   r   r   r      sK    9d					H			R	R	Q	r   r   )r?   REGISTRY_NAMElogging	getLogger_logOpenGLr   r   ACCELERATE_AVAILABLE%OpenGL_accelerate.nones_formathandlerImportErrorerrwarningOpenGL.arraysr   FormatHandlerr
   r   r   <module>rO      s    /1 $))
E
 +#}22 # 	  
S	
 	

s   A A<!A77A<