Skip to content

Commit 8d77960

Browse files
committed
@throws(RuntimeException::class) on GlfwWindow constructors
1 parent 2455098 commit 8d77960

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/uno/glfw/GlfwWindow.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,23 @@ import java.nio.FloatBuffer
4444
glfwJoystickIsGamepad
4545
glfwUpdateGamepadMappings
4646
*/
47-
4847
open class GlfwWindow(var handle: GlfwWindowHandle) {
4948

49+
@Throws(RuntimeException::class)
5050
constructor(windowSize: Vec2i,
5151
title: String,
5252
monitor: GlfwMonitor = NULL,
5353
position: Vec2i = Vec2i(Int.MIN_VALUE),
5454
installCallbacks: Boolean = true) : this(windowSize.x, windowSize.y, title, monitor, position, installCallbacks)
5555

56+
@Throws(RuntimeException::class)
5657
constructor(x: Int,
5758
title: String,
5859
monitor: GlfwMonitor = NULL,
5960
position: Vec2i = Vec2i(Int.MIN_VALUE),
6061
installCallbacks: Boolean = true) : this(x, x, title, monitor, position, installCallbacks)
6162

63+
@Throws(RuntimeException::class)
6264
constructor(width: Int, height: Int,
6365
title: String,
6466
monitor: GlfwMonitor = NULL,

0 commit comments

Comments
 (0)