Skip to content

What is the rendering api used by korge? opengl? #1010

Answered by soywiz
ZXHHYJ asked this question in Q&A
Discussion options

You must be logged in to vote

KorGE uses an abstraction called AG internally defined in the KorGW layer. That abstraction is used in korge and other layers. Right now AG is implemented in OpenGL supporting desktop OpenGL, mobile OpenGL|ES and WebGL, but can and will be implemented in other backends eventually.

Shaders are described in a Kotlin DSL that generates an AST, then right now it generates GLSL from that AST, but it is designed to be compatible with other backends as they appear and their matching shader languages. There are also plans to add a shader language parser that will be converted into that AST to be able to externally provide shaders without compiling, in a way that will also be compatible with all t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soywiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1008 on September 29, 2022 09:32.