Skip to content

Commit

Permalink
Reorganise object field demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Aug 18, 2024
1 parent 8122517 commit da85971
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/demos/object-field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

namespace objectFieldDemo {
namespace {
//IDs and pointer data
GLFWwindow* windowPtr;
int cubeKeybindId;
int shuffleKeybindId;

std::vector<int> loadedModelIds;
int modelCount = 0;
const int cubeCount = 30;
int floorId;

struct LightData {
Expand All @@ -30,7 +28,11 @@ namespace objectFieldDemo {
int orbitIndex;
int linkedModelId;
} lightData[2];
int lightCount = sizeof(lightData) / sizeof(lightData[0]);

//Model counts
const int lightCount = sizeof(lightData) / sizeof(lightData[0]);
const int cubeCount = 30;
int modelCount = 0;
}

//Non-orbit internal functions
Expand Down

0 comments on commit da85971

Please sign in to comment.