natario1 / Egloo

A lightweight Kotlin multiplatform framework for OpenGL ES and EGL management based on object-oriented components, inspired by Google's Grafika.
https://natario1.github.io/Egloo
MIT License
147 stars 21 forks source link

Viewport aware components #3

Closed natario1 closed 5 years ago

natario1 commented 5 years ago

GlPolygon now automatically adjust their size. For this you should call glScene.setViewportSize whenever the viewport size changes.

If you are not using scenes, you can use glDrawable.setViewportSize directly.