Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
elect86 committed Mar 13, 2020
2 parents e5131b3 + 78df3a1 commit b5f163f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 6 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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)
Expand Down

0 comments on commit b5f163f

Please sign in to comment.