OwlCyberSecurity - MANAGER
Edit File: WalImageFile.cpython-38.pyc
U g� ^_ � @ s0 d dl Z ddlmZ ddlmZ dd� ZdZdS )� N� )�Image)�i32lec C sF dd� }t | d�r|| �S t�| d��}||�W 5 Q R � S Q R X dS )a Load texture from a Quake2 WAL texture file. By default, a Quake2 standard palette is attached to the texture. To override the palette, use the <b>putpalette</b> method. :param filename: WAL file name, or an opened file handle. :returns: An image instance. c S s� | � d�}t|d�t|d�f}t|d�}| �|� t�|� t�d|| � |d |d ��}|�t� d|_d |_ |d d� � d d�d |jd<