diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/glass_data.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/glass_data.h b/include/glass_data.h index a5eb3c6..277adfa 100644 --- a/include/glass_data.h +++ b/include/glass_data.h @@ -18,8 +18,8 @@ // Structure to represent an optical glass
typedef struct {
byte name[50];
- f32 abbeNumber; // X-axis
- f32 refractiveIndex; // Y-axis
+ f32 abbeNumber; // X-axis (vd)
+ f32 refractiveIndex; // Y-axis (nd)
} Glass;
// Get number of glasses in the catalog
@@ -37,4 +37,7 @@ void find_glass_data_range(f32 *minAbbe, f32 *maxAbbe, f32 *minRI, f32 *maxRI); // Initialize glass data - call at program start
void initialize_glass_data(void);
+// Load glasses from JSON file
+b32 load_glasses_from_json(const byte* json_path, const byte* manufacturer_filter);
+
#endif /* GLASS_DATA_H */
|