mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +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
|
// Field is a lattice of vectors uniformly distributed FIELD_ELEMENTS^(1/3) on side
|
||||||
const int FIELD_ELEMENTS = 1000;
|
const int FIELD_ELEMENTS = 1000;
|
||||||
|
|
||||||
struct {
|
struct FieldElement {
|
||||||
glm::vec3 val;
|
glm::vec3 val;
|
||||||
glm::vec3 center;
|
glm::vec3 center;
|
||||||
glm::vec3 fld;
|
glm::vec3 fld;
|
||||||
|
@ -26,7 +26,7 @@ struct {
|
||||||
} field[FIELD_ELEMENTS];
|
} field[FIELD_ELEMENTS];
|
||||||
|
|
||||||
// Pre-calculated RGB values for each field element
|
// Pre-calculated RGB values for each field element
|
||||||
struct {
|
struct FieldColor {
|
||||||
glm::vec3 rgb;
|
glm::vec3 rgb;
|
||||||
} fieldcolors[FIELD_ELEMENTS];
|
} fieldcolors[FIELD_ELEMENTS];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue