toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.graphics
/
AGTextureDrawer
AGTexture
Drawer
class
AGTextureDrawer
(
val
ag
:
AG
)
Members
Constructors
AGTexture
Drawer
Link copied to clipboard
constructor
(
ag
:
AG
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
ag
Link copied to clipboard
val
ag
:
AG
ref
Link copied to clipboard
val
ref
:
AGProgramWithUniforms
texture
Units
Link copied to clipboard
val
textureUnits
:
AGTextureUnits
VERTEX_COUNT
Link copied to clipboard
val
VERTEX_COUNT
:
Int
=
4
vertex
Data
Link copied to clipboard
val
vertexData
:
AGVertexArrayObject
vertex
Layout
Link copied to clipboard
val
vertexLayout
:
ProgramLayout
<
Attribute
>
vertices
Link copied to clipboard
val
vertices
:
AGBuffer
vertices
Data
Link copied to clipboard
val
verticesData
:
Buffer
vertices
Data
F32
Link copied to clipboard
val
verticesDataF32
:
Float32Buffer
Functions
draw
Link copied to clipboard
fun
draw
(
frameBuffer
:
AGFrameBuffer
,
tex
:
AGTexture
?
,
left
:
Float
=
-1f
,
top
:
Float
=
+1f
,
right
:
Float
=
+1f
,
bottom
:
Float
=
-1f
)
draw
XY
Link copied to clipboard
fun
drawXY
(
frameBuffer
:
AGFrameBuffer
,
tex
:
AGTexture
?
,
x
:
Int
,
y
:
Int
,
width
:
Int
,
height
:
Int
)
set
Vertex
Link copied to clipboard
fun
setVertex
(
n
:
Int
,
px
:
Float
,
py
:
Float
,
tx
:
Float
,
ty
:
Float
)