a
    ij                     @   s   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	 Zeejd
dddZeejd
dddZdS )a  OpenGL extension EXT.cull_vertex

This module customises the behaviour of the 
OpenGL.raw.GL.EXT.cull_vertex to provide a more 
Python-friendly API

Overview (from the spec)
	
	This extension introduces a method for culling vertexes in object
	space based on the value of the dot product between the normal at
	the vertex and a culling eye direction.
	
	Culling a polygon by examining its vertexes in object space can be
	more efficient than screen space polygon culling since the transformation
	to screen space (which may include a division by w) can be avoided for
	culled vertexes.  Also, vertex culling can be computed before vertexes
	are assembled into primitives.  This is a useful property when drawing
	meshes with shared vertexes, since a vertex can be culled once, and the
	resulting state can be used for all primitives which share the vertex.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/cull_vertex.txt
    )platformconstantarrays)
extensionswrapperN)_types_glgets)*)_EXTENSION_NAMEc                  C   s   ddl m}  | tS )z=Return boolean indicating whether this extension is availabler   r   )OpenGLr   ZhasGLExtensionr
   r    r   W/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/EXT/cull_vertex.pyglInitCullVertexEXT   s    r   params)   T)sizeZorPassIn)__doc__r   r   r   r   r   r   ctypesZOpenGL.raw.GLr   r   ZOpenGL.raw.GL.EXT.cull_vertexr
   r   ZglCullParameterdvEXTZ	setOutputZglCullParameterfvEXTr   r   r   r   <module>   s   

