From 9b47c926f15ec018698ecc4c7c353bc17438dea2 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Wed, 15 Jan 2020 16:24:04 +0100 Subject: [PATCH 1/4] Create build.yml --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml 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 From d9b922cd83d46cbbb5c69a7818c5429e185a5811 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Wed, 15 Jan 2020 16:31:21 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3f0e5f6..d2d788f 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-MIT-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 From daba395b909e4303d4b80ec3e1a3855885e8bb91 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Wed, 15 Jan 2020 16:38:36 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2d788f..94086d1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # gln [![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-MIT-orange.svg)](https://github.com/kotlin-graphics/gln/blob/master/LICENSE) +[![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) ![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)]() From 78df3a147a4f4237e33b74f146a896f3ab660ee6 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Fri, 24 Jan 2020 14:22:23 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94086d1..80bd1a5 100644 --- a/README.md +++ b/README.md @@ -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)