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

redesign Camera #2

Closed jfcameron closed 4 years ago

jfcameron commented 5 years ago

currently Camera is a complex, modal class. It has an orthographic mode and a perspective mode, along with mode specific data members. this is wrong. hard to read, hard to maintain. Think about how to fix. Abstract class with Ortho and Perspective children? final class with perspective and ortho utilities? think