jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

consider an interface layer #9

Closed jfcameron closed 4 years ago

jfcameron commented 4 years ago

currently user-facing types are concrete types containing opengl specific implementation. If support for multiple graphics apis (vulkan) is desirable then renaming these existing classes to e.g TextureGL, hiding them and instead exposing interface types Shader, Texture etc. from which they inherit, this would create an obvious layer in which I could support additional graphics apis.

would also allow me to hide implementation headers, reducing user header pollution

jfcameron commented 4 years ago

considered. going to do it.