Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom-rendering-004/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.math.Vector3
import org.openrndr.math.transforms.transform
import org.openrndr.shape.Triangulator
import org.openrndr.shape.triangulate
import org.openrndr.svg.loadSVG
import java.io.File

Expand All @@ -18,7 +18,7 @@ class Example : Program() {
override fun setup() {
val c = loadSVG(File("data/svg/shape.svg").readText())
val shape = c.findShapes()[0].shape
val points = Triangulator().triangulate(shape.outline)
val points = triangulate(shape)

// -- create the vertex buffer
geometry = vertexBuffer(
Expand Down
1 change: 0 additions & 1 deletion filters-002/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import org.openrndr.Configuration
import org.openrndr.Program
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.filter.filterShaderFromUrl

/**
* Example noise filter
Expand Down
1 change: 0 additions & 1 deletion filters-003/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import org.openrndr.Configuration
import org.openrndr.Program
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.filter.filterWatcherFromUrl

/**
* Example noise filter
Expand Down
1 change: 0 additions & 1 deletion shader-shadertoy-001/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.openrndr.Application
import org.openrndr.Configuration
import org.openrndr.Program
import org.openrndr.draw.*
import org.openrndr.filter.filterShaderFromUrl
import org.openrndr.math.Vector3
import org.openrndr.math.Vector4

Expand Down
1 change: 0 additions & 1 deletion shader-shadertoy-002/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.openrndr.Application
import org.openrndr.Configuration
import org.openrndr.Program
import org.openrndr.draw.*
import org.openrndr.filter.filterShaderFromUrl
import org.openrndr.math.Vector3
import org.openrndr.math.Vector4

Expand Down
4 changes: 2 additions & 2 deletions start-dialog-001/src/main/kotlin/Example.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import org.openrndr.Application
import org.openrndr.Configuration
import org.openrndr.Fullscreen
import org.openrndr.Program
import org.openrndr.color.ColorRGBa
import org.openrndr.configuration
Expand Down Expand Up @@ -57,7 +57,7 @@ fun main(args: Array<String>) {

fullScreen?.let {
Application.run(Example(), configuration {
fullscreen = it
fullscreen = if (it) Fullscreen.CURRENT_DISPLAY_MODE else Fullscreen.DISABLED
width = if (it) -1 else 640
height = if (it) -1 else 480
})
Expand Down