mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 18:38:45 +02:00
provide type to structs for ISO C++ compliance
This commit is contained in:
parent
c575974060
commit
a1a8cd723d
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
// Field is a lattice of vectors uniformly distributed FIELD_ELEMENTS^(1/3) on side
|
||||
const int FIELD_ELEMENTS = 1000;
|
||||
|
||||
struct {
|
||||
struct FieldElement {
|
||||
glm::vec3 val;
|
||||
glm::vec3 center;
|
||||
glm::vec3 fld;
|
||||
|
@ -26,7 +26,7 @@ struct {
|
|||
} field[FIELD_ELEMENTS];
|
||||
|
||||
// Pre-calculated RGB values for each field element
|
||||
struct {
|
||||
struct FieldColor {
|
||||
glm::vec3 rgb;
|
||||
} fieldcolors[FIELD_ELEMENTS];
|
||||
|
||||
|
|
Loading…
Reference in a new issue