Module Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad ExtSlice Slice AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index TupleLoad Num Num Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad ExtSlice Slice AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index TupleLoad Num Num Call AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad ExtSlice Slice AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index TupleLoad Num Num body Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A ctypes N/A numpy np six.moves xrange PIL Image pi3d.constants * pi3d.Shader Shader pi3d.util.OffScreenTexture OffScreenTexture Clashtest N/A OffScreenTexture N/A __init__ N/A N/A self N/A N/A N/A  calls Texture.__init__ but doesn't need to set file name as
    texture generated from the framebuffer
     N/A N/A N/A N/A super Clashtest self __init__ clashtest N/A N/A self shader N/A Shader clashtest N/A N/A self img N/A N/A np zeros N/A N/A self ix 4 dtype N/A np uint8 N/A N/A self step N/A int N/A N/A self ix 100 N/A N/A self s_flg False N/A N/A self y0 N/A int N/A N/A self iy 2 N/A draw N/A N/A self shape N/A N/A N/A  draw the shape using the clashtest Shader

    Arguments:
      *shape*
        Shape object that will be drawn
     N/A N/A N/A self s_flg N/A N/A N/A N/A opengles glEnable GL_SCISSOR_TEST N/A N/A N/A opengles glScissor N/A N/A ctypes c_int N/A int 0 N/A N/A ctypes c_int N/A self y0 N/A N/A ctypes c_int N/A self ix N/A N/A ctypes c_int 1 N/A N/A self s_flg True N/A N/A N/A shape draw shader N/A self shader N/A check N/A N/A self grain N/A 50 N/A N/A  checks the pixels of the texture to see if there is any change from the
    first pixel sampled; in which case returns True else returns False.

    Keyword argument:
      *grain*
        Number of locations to check over the whole image
        NB this is no longer used - there are fixed 100 checks across the
        full width at the mid y position. This self.setp value is set in
        __init__()
     N/A N/A N/A opengles glDisable GL_SCISSOR_TEST N/A N/A self s_flg False N/A img N/A self img N/A N/A N/A opengles glReadPixels 0 N/A self y0 N/A self ix 1 GL_RGBA GL_UNSIGNED_BYTE N/A N/A N/A img ctypes data_as N/A N/A ctypes POINTER N/A ctypes c_ubyte N/A N/A N/A N/A np any N/A N/A img N/A N/A N/A self step N/A 0 N/A img N/A N/A 0 0 N/A N/A np any N/A N/A img N/A N/A N/A self step N/A 1 N/A img N/A N/A 0 1 N/A N/A np any N/A N/A img N/A N/A N/A self step N/A 2 N/A img N/A N/A 0 2 N/A N/A True N/A False N/A N/A