diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6ce606e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: build + +on: [push] + +jobs: + linux: + name: 'Linux' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + + windows: + name: 'Windows' + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Gradle + run: .\gradlew.bat build + + mac: + name: 'Mac OS' + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build diff --git a/README.md b/README.md index 3f0e5f6..80bd1a5 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # gln -[![Build Status](https://travis-ci.org/kotlin-graphics/gln.svg?branch=master)](https://travis-ci.org/kotlin-graphics/gln) -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)]() -![](https://reposs.herokuapp.com/?path=kotlin-graphics/gln&color=yellow) +[![Build Status](https://github.com/kotlin-graphics/gln/workflows/build/badge.svg)](https://github.com/kotlin-graphics/gln/actions?workflow=build) +[![license](https://img.shields.io/badge/License-Apache%202.0-orange.svg)](https://github.com/kotlin-graphics/gln/blob/master/LICENSE) [![Release](https://jitpack.io/v/kotlin-graphics/gln.svg)](https://jitpack.io/#kotlin-graphics/gln) -[![Slack Status](http://slack.kotlinlang.org/badge.svg)](http://slack.kotlinlang.org/) +![Size](https://github-size-badge.herokuapp.com/kotlin-graphics/gln.svg) +[![Github All Releases](https://img.shields.io/github/downloads/kotlin-graphics/gln/total.svg)]() OpenGL Next, functional programming @@ -22,12 +22,12 @@ A buffer in means of OpenGL can be used for vertex attributes, indices, uniform This ```kotlin - arrayBufferName = glGenBuffers() + val arrayBufferName = glGenBuffers() glBindBuffer(GL_ARRAY_BUFFER, arrayBufferName) glBufferData(GL_ARRAY_BUFFER, positionData, GL_STATIC_DRAW) glBindBuffer(GL_ARRAY_BUFFER, 0) - elementBufferName = glGenBuffers() + val elementBufferName = glGenBuffers() glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, elementBufferName) glBufferData(GL_ELEMENT_ARRAY_BUFFER, elementData, GL_STATIC_DRAW) glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)