packages/pyglGA/scripts/basicIndexedTriangle.py
def init(self):
        """
        shader extra initialisation from raw strings or source file names
        """
        vert = self._compile_shader(self._vertex_source, gl.GL_VERTEX_SHADER)
        frag = self._compile_shader(self._fragment_source, gl.GL_FRAGMENT_SHADER)
        
        if vert and frag:
            self._glid = gl.glCreateProgram()
            gl.glAttachShader(self._glid, vert)
            gl.glAttachShader(self._glid, frag)
            gl.glLinkProgram(self._glid)
            gl.glDeleteShader(vert)
            gl.glDeleteShader(frag)
            status = gl.glGetProgramiv(self._glid, gl.GL_LINK_STATUS)
            if not status:
                print(gl.glGetProgramInfoLog(self._glid).decode('ascii'))
                gl.glDeleteProgram(self._glid)
                self._glid = None

        shader extra initialisation from raw strings or source file names
        
shader extra initialisation from raw strings or source file names
shader extra initialisation from raw strings or source file names
def init(self):
        vert = self._compile_shader(self._vertex_source, gl.GL_VERTEX_SHADER)
        frag = self._compile_shader(self._fragment_source, gl.GL_FRAGMENT_SHADER)
        if vert and frag:
            self._glid = gl.glCreateProgram()
            gl.glAttachShader(self._glid, vert)
            gl.glAttachShader(self._glid, frag)
            gl.glLinkProgram(self._glid)
            gl.glDeleteShader(vert)
            gl.glDeleteShader(frag)
            status = gl.glGetProgramiv(self._glid, gl.GL_LINK_STATUS)
            if not status:
                print(gl.glGetProgramInfoLog(self._glid).decode('ascii'))
                gl.glDeleteProgram(self._glid)
                self._glid = None
def init ( self ) : vert = self . _compile_shader ( self . _vertex_source , gl . GL_VERTEX_SHADER ) frag = self . _compile_shader ( self . _fragment_source , gl . GL_FRAGMENT_SHADER ) if vert and frag : self . _glid = gl . glCreateProgram ( ) gl . glAttachShader ( self . _glid , vert ) gl . glAttachShader ( self . _glid , frag ) gl . glLinkProgram ( self . _glid ) gl . glDeleteShader ( vert ) gl . glDeleteShader ( frag ) status = gl . glGetProgramiv ( self . _glid , gl . GL_LINK_STATUS ) if not status : print ( gl . glGetProgramInfoLog ( self . _glid ) . decode ( 'ascii' ) ) gl . glDeleteProgram ( self . _glid ) self . _glid = None
shader extra initialisation from raw strings or source file names
shader extra initialisation from raw strings or source file names
"""
        shader extra initialisation from raw strings or source file names
        """
self