Hi I've been asked to set my arrays that contain 3d cube information to "null" so that they can be used to take in the data that is required to draw them from a txt file but have run int this error.
Any help would be appreciated.
cube header file
class Cube { private: static int numVertices, numColours, numIndices; static Vertex indexedVertices[]; static Color indexedColors[]; static GLushort indices[]; GLfloat _rotation; GLfloat _CubeX; GLfloat _CubeY; GLfloat _CubeZ; Cube cpp file
Vertex *Cube::indexedVertices = nullptr; Color *Cube::indexedColors[] = nullptr; GLushort *Cube::indices[] = nullptr; The error appears under indexedVertices , indexedColors and indices
nullptr.std::arrayorstd::vectorand stop worrying about this kind of stuff.