Module Assign NameStore Str Assign NameStore TupleLoad Str ImportFrom alias Import alias ImportFrom alias alias alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad Str Str Str body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad GeneratorExp BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num comprehension TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call BinOpMult NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore Call BinOpMult BinOpMult AttributeLoad NameLoad attr Num NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call BinOpMult AttributeLoad NameLoad attr BinOpMult Num NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num For TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Call NameLoad UnaryOpUSub AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad BinOpMult AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad If CompareGt NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad Num AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore Num If BoolOpAnd AttributeLoad NameLoad attr CompareGt BinOpSub NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad Num AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call BinOpMult AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list
N/A N/A __version__ $Id$ N/A __all__ N/A Vector grease.geometry Vec2d N/A ctypes math sin cos radians N/A pyglet Vector N/A object N/A N/A Renders shapes in a classic vector graphics style
	
	:param scale: Scaling factor applied to shape vertices when rendered.
	
	:param line_width: The line width provided to ``glLineWidth`` before rendering.
		If not specified or None, ``glLineWidth`` is not called, and the line
		width used is determined by the OpenGL state at the time of rendering.

	:param anti_alias: If ``True``, OpenGL blending and line smoothing is enabled.
		This allows for fractional line widths as well. If ``False``, the blending
		and line smoothing modes are unchanged.

	:param corner_fill: If true (the default), the shape corners will be filled
		with round points when the ``line_width`` exceeds 2.0. This improves
		the visual quality of the rendering at larger line widths at some
		cost to performance. Has no effect if ``line_width`` is not specified.

	:param position_component: Name of :class:`grease.component.Position` 
		component to use. Shapes rendered are offset by the entity positions.

	:param renderable_component: Name of :class:`grease.component.Renderable` 
		component to use. This component specifies the entities to be 
		rendered and their base color.

	:param shape_component: Name of :class:`grease.component.Shape` 
		component to use. Source of the shape vertices for each entity.

	The entities rendered are taken from the intersection of he position,
	renderable and shape components each time :meth:`draw` is called.
	 N/A CORNER_FILL_SCALE 0.6 N/A CORNER_FILL_THRESHOLD 2.0 __init__ N/A N/A self scale line_width anti_alias corner_fill position_component renderable_component shape_component N/A 1.0 None True True position renderable shape N/A N/A N/A self scale N/A float scale N/A N/A self corner_fill corner_fill N/A N/A self line_width line_width N/A N/A self anti_alias anti_alias N/A N/A self _max_line_width None N/A N/A self position_component position_component N/A N/A self renderable_component renderable_component N/A N/A self shape_component shape_component N/A set_world N/A N/A self world N/A N/A N/A N/A self world world N/A _generate_verts N/A N/A self N/A N/A N/A Generate vertex and index arrays for rendering N/A vert_count N/A sum N/A N/A N/A len N/A shape verts 1 N/A N/A shape ignored ignored N/A N/A N/A N/A self world components join N/A self shape_component N/A self position_component N/A self renderable_component N/A v_array N/A N/A CVertColor vert_count N/A N/A vert_count 65536 N/A N/A i_array N/A N/A N/A N/A ctypes c_uint 2 vert_count N/A i_size N/A N/A pyglet gl GL_UNSIGNED_INT N/A N/A i_array N/A N/A N/A ctypes c_ushort N/A 2 vert_count N/A i_size N/A N/A pyglet gl GL_UNSIGNED_SHORT N/A v_index 0 N/A i_index 0 N/A scale N/A self scale N/A rot_vec N/A Vec2d 0 0 N/A N/A shape position renderable N/A N/A N/A N/A self world components join N/A self shape_component N/A self position_component N/A self renderable_component N/A N/A shape_start v_index N/A angle N/A radians N/A N/A position angle N/A N/A rot_vec x N/A cos angle N/A N/A rot_vec y N/A sin angle N/A r N/A int N/A N/A N/A renderable color r 255 N/A g N/A int N/A N/A N/A renderable color g 255 N/A b N/A int N/A N/A N/A renderable color b 255 N/A a N/A int N/A N/A N/A renderable color a 255 N/A vert N/A shape verts N/A N/A vert N/A N/A N/A N/A vert cpvrotate rot_vec scale N/A position position N/A N/A N/A N/A v_array N/A v_index vert x N/A vert x N/A N/A N/A N/A v_array N/A v_index vert y N/A vert y N/A N/A N/A N/A v_array N/A v_index color r r N/A N/A N/A N/A v_array N/A v_index color g g N/A N/A N/A N/A v_array N/A v_index color b b N/A N/A N/A N/A v_array N/A v_index color a a N/A N/A v_index shape_start N/A N/A N/A i_array N/A i_index N/A v_index 1 N/A i_index 1 N/A N/A i_array N/A i_index v_index N/A i_index 1 N/A v_index 1 N/A N/A N/A shape closed N/A N/A v_index shape_start 2 N/A N/A N/A i_array N/A i_index N/A v_index 1 N/A i_index 1 N/A N/A i_array N/A i_index shape_start N/A i_index 1 N/A N/A v_array i_size i_array i_index N/A draw N/A N/A self gl N/A N/A pyglet gl N/A N/A N/A vertices index_size indices index_count N/A N/A self _generate_verts N/A index_count N/A N/A N/A self anti_alias N/A N/A N/A N/A gl glEnable N/A gl GL_LINE_SMOOTH N/A N/A N/A gl glHint N/A gl GL_LINE_SMOOTH_HINT N/A gl GL_NICEST N/A N/A N/A gl glEnable N/A gl GL_BLEND N/A N/A N/A gl glBlendFunc N/A gl GL_SRC_ALPHA N/A gl GL_ONE_MINUS_SRC_ALPHA N/A N/A N/A gl glPushClientAttrib N/A gl GL_CLIENT_VERTEX_ARRAY_BIT N/A N/A N/A gl glEnableClientState N/A gl GL_VERTEX_ARRAY N/A N/A N/A gl glEnableClientState N/A gl GL_COLOR_ARRAY N/A N/A N/A gl glVertexPointer 2 N/A gl GL_FLOAT N/A N/A ctypes sizeof CVertColor N/A N/A ctypes pointer vertices N/A N/A N/A gl glColorPointer 4 N/A gl GL_UNSIGNED_BYTE N/A N/A ctypes sizeof CVertColor N/A N/A ctypes pointer N/A N/A vertices N/A 0 color N/A N/A N/A self line_width None N/A N/A N/A N/A gl glLineWidth N/A self line_width N/A N/A N/A self _max_line_width None N/A N/A range_out N/A N/A N/A ctypes c_float 2 N/A N/A N/A gl glGetFloatv N/A gl GL_ALIASED_LINE_WIDTH_RANGE range_out N/A N/A self _max_line_width N/A N/A float N/A range_out N/A 1 N/A self CORNER_FILL_SCALE N/A N/A N/A self corner_fill N/A N/A self line_width N/A self CORNER_FILL_THRESHOLD N/A N/A N/A N/A gl glEnable N/A gl GL_POINT_SMOOTH N/A N/A N/A gl glPointSize N/A min N/A N/A self line_width N/A self CORNER_FILL_SCALE N/A self _max_line_width N/A N/A N/A gl glDrawArrays N/A gl GL_POINTS 0 index_count N/A N/A N/A gl glDrawElements N/A gl GL_LINES index_count index_size N/A N/A ctypes pointer indices N/A N/A N/A gl glPopClientAttrib N/A N/A CVert N/A N/A ctypes Structure N/A N/A _fields_ N/A N/A x N/A ctypes c_float N/A y N/A ctypes c_float N/A CColor N/A N/A ctypes Structure N/A N/A _fields_ N/A N/A r N/A ctypes c_ubyte N/A g N/A ctypes c_ubyte N/A b N/A ctypes c_ubyte N/A a N/A ctypes c_ubyte N/A CVertColor N/A N/A ctypes Structure N/A N/A _fields_ N/A N/A vert CVert N/A color CColor N/A