toggle menu
lunaCore
androidJvm
switch theme
search in API
lunaCore
/
ru.visionlabs.grafika.gles
/
Texture2dProgram
Texture2d
Program
open
class
Texture2dProgram
GL program and supporting functions for textured 2D shapes.
Members
Constructors
Texture2d
Program
Link copied to clipboard
constructor
(
programType
:
Texture2dProgram.ProgramType
)
Prepares the program in the current EGL context.
Types
Program
Type
Link copied to clipboard
enum
ProgramType
Properties
KERNEL_SIZE
Link copied to clipboard
val
KERNEL_SIZE
:
Int
=
9
Functions
create
Texture
Object
Link copied to clipboard
open
fun
createTextureObject
(
)
:
Int
Creates a texture object suitable for use with this program.
draw
Link copied to clipboard
open
fun
draw
(
mvpMatrix
:
Array
<
Float
>
,
vertexBuffer
:
FloatBuffer
,
firstVertex
:
Int
,
vertexCount
:
Int
,
coordsPerVertex
:
Int
,
vertexStride
:
Int
,
texMatrix
:
Array
<
Float
>
,
texBuffer
:
FloatBuffer
,
textureId
:
Int
,
texStride
:
Int
)
Issues the draw call.
get
Program
Type
Link copied to clipboard
open
fun
getProgramType
(
)
:
Texture2dProgram.ProgramType
Returns the program type.
release
Link copied to clipboard
open
fun
release
(
)
Releases the program.
set
Kernel
Link copied to clipboard
open
fun
setKernel
(
values
:
Array
<
Float
>
,
colorAdj
:
Float
)
Configures the convolution filter values.
set
Tex
Size
Link copied to clipboard
open
fun
setTexSize
(
width
:
Int
,
height
:
Int
)
Sets the size of the texture.