Source of the shader, if available

Returns null if the source is not available, usually when the shader was created from a binary file.

Property definitions

glesv2 $ GLShader :: source
	# Source of the shader, if available
	#
	# Returns `null` if the source is not available, usually when the shader
	# was created from a binary file.
	fun source: nullable String
	do
		var size = glGetShaderiv(self, gl_SHADER_SOURCE_LENGTH)
		if size == 0 then return null
		return source_native(size).to_s
	end
lib/glesv2/glesv2.nit:230,2--239,4