Module Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num Num Num keyword Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Str Str TupleLoad Num FunctionDef arguments args NameParam defaults NameLoad body If NameLoad body Return Call NameLoad orelse Return Call NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Global identifier Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Global identifier Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A textwrap N/A numpy OpenGL GL pygly.shader Shader VertexShader FragmentShader ShaderProgram pygly.vertex_buffer VertexBuffer BufferAttributes GenericAttribute VertexAttribute pygly.vertex_array VertexArray pyrr geometry N/A N/A vertices indices N/A N/A geometry create_cube scale N/A 2.0 2.0 2.0 dtype float32 N/A vertices N/A vertices N/A indices N/A N/A vertices dtype N/A N/A position float32 N/A 3 create N/A N/A core_profile N/A True N/A N/A core_profile N/A N/A N/A CoreColourCube N/A N/A N/A LegacyColourCube N/A CoreColourCube N/A object N/A N/A vertex_shader N/A N/A textwrap dedent 
        #version 150

        // input
        in vec3 in_position;
        uniform mat4 model_view;
        uniform mat4 projection;

        void main(void) 
        {
            // apply projection and model view matrix to vertex
            gl_Position = projection * model_view * vec4( in_position, 1.0 );
        }
         N/A fragment_shader N/A N/A textwrap dedent 
        #version 150

        // input
        uniform vec4 in_colour;

        // output
        out vec4 fragColor;

        void main(void) 
        {
            // set colour of each fragment
            fragColor = in_colour;
        }
         __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super CoreColourCube self __init__ N/A vertices N/A N/A self shader N/A ShaderProgram N/A VertexShader N/A self vertex_shader N/A FragmentShader N/A self fragment_shader N/A N/A self buffer N/A VertexBuffer N/A GL GL_ARRAY_BUFFER N/A GL GL_STATIC_DRAW data vertices N/A N/A self buffer_attributes N/A BufferAttributes N/A N/A N/A self buffer_attributes N/A position N/A N/A GenericAttribute from_dtype N/A self buffer N/A vertices dtype position location N/A N/A N/A self shader attributes N/A in_position N/A N/A self vao N/A VertexArray N/A N/A N/A N/A self vao bind N/A N/A N/A N/A self buffer bind N/A N/A N/A N/A self buffer_attributes set N/A N/A N/A N/A self buffer unbind N/A N/A N/A N/A self vao unbind N/A draw N/A N/A self projection model_view colour N/A N/A N/A N/A N/A N/A self shader bind N/A N/A N/A N/A N/A self shader uniforms N/A projection value projection N/A N/A N/A N/A N/A self shader uniforms N/A model_view value model_view N/A N/A N/A N/A N/A self shader uniforms N/A in_colour value colour N/A N/A N/A N/A self vao bind N/A N/A N/A GL glDrawArrays N/A GL GL_TRIANGLES 0 N/A len vertices N/A N/A N/A N/A self vao unbind N/A N/A N/A N/A self shader unbind N/A N/A LegacyColourCube N/A object N/A N/A vertex_shader N/A N/A textwrap dedent 
        #version 120

        void main(void) 
        {
            // apply projection and model view matrix to vertex
            gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;

            gl_FrontColor = gl_Color;
        }
         N/A fragment_shader N/A N/A textwrap dedent 
        #version 120

        void main(void) 
        {
            // set colour of each fragment
            gl_FragColor = gl_Color;
        }
         __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super LegacyColourCube self __init__ N/A vertices N/A N/A self use_shaders True N/A N/A self shader N/A ShaderProgram N/A VertexShader N/A self vertex_shader N/A FragmentShader N/A self fragment_shader N/A N/A self buffer N/A VertexBuffer N/A GL GL_ARRAY_BUFFER N/A GL GL_STATIC_DRAW data vertices N/A N/A self buffer_attributes N/A BufferAttributes N/A N/A N/A self buffer_attributes N/A position N/A N/A VertexAttribute from_dtype N/A self buffer N/A vertices dtype position N/A draw N/A N/A self colour N/A N/A N/A N/A self use_shaders N/A N/A N/A N/A N/A self shader bind N/A N/A N/A N/A self buffer_attributes push_attributes N/A N/A N/A GL glColor4f colour N/A N/A N/A N/A self buffer bind N/A N/A N/A N/A self buffer_attributes set N/A N/A N/A N/A self buffer unbind N/A N/A N/A GL glDrawArrays N/A GL GL_TRIANGLES 0 N/A len vertices N/A N/A N/A N/A self buffer_attributes pop_attributes N/A N/A self use_shaders N/A N/A N/A N/A N/A self shader unbind N/A N/A