title: Create dynamic array of objects for VBO
body: <p>I am trying to create dynamic array of objects and then use it for VBO.</p>
  
  <pre><code>Vector3f Vertices[] = new Vector3f[size];
  /* 
      initialization
  */
  
  glGenBuffers(1, &amp;VBO);
  glBindBuffer(GL_ARRAY_BUFFER, VBO);
  glBufferData(GL_ARRAY_BUFFER, sizeof(Vertices), Vertices, GL_STATIC_DRAW);
  </code></pre>
  
  <p>But i have the following error: 
  <code>initialization with '{...}' expected for aggregate object</code>
  So, how can i do this? I suppose it must be possible.</p>