1
1
# gln
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/kotlin-graphics/gln.svg?branch=master )] ( https://travis-ci.org/kotlin-graphics/gln )
4
- [ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( )
5
- ![ ] ( https://reposs.herokuapp.com/?path=kotlin-graphics/gln&color=yellow )
3
+ [ ![ Build Status] ( https://github.com/kotlin-graphics/gln/workflows/build/badge.svg )] ( https://github.com/kotlin-graphics/gln/actions?workflow=build )
4
+ [ ![ license] ( https://img.shields.io/badge/License-Apache%202.0-orange.svg )] ( https://github.com/kotlin-graphics/gln/blob/master/LICENSE )
6
5
[ ![ Release] ( https://jitpack.io/v/kotlin-graphics/gln.svg )] ( https://jitpack.io/#kotlin-graphics/gln )
7
- [ ![ Slack Status] ( http://slack.kotlinlang.org/badge.svg )] ( http://slack.kotlinlang.org/ )
6
+ ![ Size] ( https://github-size-badge.herokuapp.com/kotlin-graphics/gln.svg )
7
+ [ ![ Github All Releases] ( https://img.shields.io/github/downloads/kotlin-graphics/gln/total.svg )] ( )
8
8
9
9
OpenGL Next, functional programming
10
10
@@ -22,12 +22,12 @@ A buffer in means of OpenGL can be used for vertex attributes, indices, uniform
22
22
This
23
23
24
24
``` kotlin
25
- arrayBufferName = glGenBuffers()
25
+ val arrayBufferName = glGenBuffers()
26
26
glBindBuffer(GL_ARRAY_BUFFER , arrayBufferName)
27
27
glBufferData(GL_ARRAY_BUFFER , positionData, GL_STATIC_DRAW )
28
28
glBindBuffer(GL_ARRAY_BUFFER , 0 )
29
29
30
- elementBufferName = glGenBuffers()
30
+ val elementBufferName = glGenBuffers()
31
31
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER , elementBufferName)
32
32
glBufferData(GL_ELEMENT_ARRAY_BUFFER , elementData, GL_STATIC_DRAW )
33
33
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER , 0 )
0 commit comments