loadGLShader

open fun loadGLShader(tag: String, context: Context, type: Int, filename: String, defineValuesMap: Map<String, Integer>): Int

Converts a raw text file, saved as a resource, into an OpenGL ES shader.

Return

The shader object handler.

Parameters

type
filename
defineValuesMap

open fun loadGLShader(tag: String, context: Context, type: Int, filename: String): Int

Overload of loadGLShader that assumes no additional #define values to add.