summaryrefslogtreecommitdiff
path: root/include/glass_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/glass_data.h')
-rw-r--r--include/glass_data.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/glass_data.h b/include/glass_data.h
index 277adfa..75aedde 100644
--- a/include/glass_data.h
+++ b/include/glass_data.h
@@ -14,12 +14,15 @@
#define GLASS_DATA_H
#include "glamacdef.h" // For type definitions
+#include "glamac_errors.h" // For error handling
// Structure to represent an optical glass
typedef struct {
byte name[50];
f32 abbeNumber; // X-axis (vd)
f32 refractiveIndex; // Y-axis (nd)
+ byte glass_code[20]; // Glass code from manufacturer
+ byte manufacturer[20]; // Manufacturer name
} Glass;
// Get number of glasses in the catalog
@@ -40,4 +43,7 @@ void initialize_glass_data(void);
// Load glasses from JSON file
b32 load_glasses_from_json(const byte* json_path, const byte* manufacturer_filter);
+// Cleanup glass data resources
+void cleanup_glass_data(void);
+
#endif /* GLASS_DATA_H */
Back to https://optics-design.com