//bind a texturedmodel to the GPU. private void Initialize(Node node) { RawModel model = node.rawModel; GL.BindVertexArray(model.vaoID); //bind the VAO of the model //enable vertex array lists: GL.EnableVertexAttribArray(0); //position. GL.EnableVertexAttribArray(1); //color. }
private void Initialize(FractalDouble fractalDouble) { RawModel model = fractalDouble.rawModel; GL.BindVertexArray(model.vaoID); //bind the VAO of the model //enable vertex array lists: GL.EnableVertexAttribArray(0); //position. GL.EnableVertexAttribArray(1); //complex. }
public void GetRawModel(Loader loader) { rawModel = loader.LoadToVAO(coordinates.ToArray(), colors.ToArray()); }