toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.utils.gl
/
GlUtil
Gl
Util
@
RequiresApi
(
api
=
Build.VERSION_CODES.JELLY_BEAN_MR2
)
open
class
GlUtil
Created by pedro on 9/09/17.
Members
Constructors
Gl
Util
Link copied to clipboard
constructor
(
)
Functions
check
Egl
Error
Link copied to clipboard
open
fun
checkEglError
(
msg
:
String
)
check
Gl
Error
Link copied to clipboard
open
fun
checkGlError
(
op
:
String
)
create
External
Textures
Link copied to clipboard
open
fun
createExternalTextures
(
quantity
:
Int
,
texturesId
:
Array
<
Int
>
,
offset
:
Int
)
create
Program
Link copied to clipboard
open
fun
createProgram
(
vertexSource
:
String
,
fragmentSource
:
String
)
:
Int
create
Textures
Link copied to clipboard
open
fun
createTextures
(
quantity
:
Int
,
texturesId
:
Array
<
Int
>
,
offset
:
Int
)
get
Bitmap
Link copied to clipboard
open
fun
getBitmap
(
streamWidth
:
Int
,
streamHeight
:
Int
)
:
Bitmap
get
String
From
Raw
Link copied to clipboard
open
fun
getStringFromRaw
(
context
:
Context
,
id
:
Int
)
:
String
load
Shader
Link copied to clipboard
open
fun
loadShader
(
shaderType
:
Int
,
source
:
String
)
:
Int