toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsgl.utils
/
ShaderUtil
Shader
Util
class
ShaderUtil
Shader utility functions.
Members
Constructors
Shader
Util
Link copied to clipboard
constructor
(
)
Functions
check
GLError
Link copied to clipboard
open
fun
checkGLError
(
tag
:
String
,
label
:
String
)
Checks if we've had an error inside of OpenGL ES, and if so what that error is.
load
GLShader
Link copied to clipboard
open
fun
loadGLShader
(
tag
:
String
,
context
:
Context
,
type
:
Int
,
filename
:
String
)
:
Int
Overload of loadGLShader that assumes no additional #define values to add.
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.