some opengl toString implementations (better debug log)

This commit is contained in:
Moritz Zwerger 2023-12-24 16:40:25 +01:00
parent 1fb2aac58e
commit 4523cfe7d8
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 5 additions and 0 deletions

View File

@ -124,4 +124,6 @@ class OpenGLFramebuffer(
throw MemoryLeakException("Buffer has not been unloaded!")
}
}
override fun toString() = "OpenGLFramebuffer(size=$size, color=$color, depth=$depth, state=$state)"
}

View File

@ -72,7 +72,10 @@ class FloatOpenGLVertexBuffer(
super.unload()
}
override fun toString() = "FloatOpenGLVertexBuffer(vertices=$vertices, state=$state)"
private companion object {
val PrimitiveTypes.gl: Int
get() {
return when (this) {