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

model & vertex_data: creation cleanup: remove code duplication, parameterize primitive mode, storage type #49

Closed jfcameron closed 3 years ago

jfcameron commented 3 years ago

model

code duplication in webgl1es2_context and webgl11es2_model: see ctor and factory. there is a copy-pasted static funciton to convert enum types. primitive type should be parameterized. storage type should be parameterized

vertex_data

recently changed from view to an owing type. make data private, add accessors. This will be affected by above dupe removal.

jfcameron commented 3 years ago

ad55d6912e9afa69d2e4f2bfb630c8729ebe4ddc