[Solved] C++ Passing arguments to a function [closed]


Vertices[] is global and you don’t need pass it through parameter. However you can pass vertices too.

Make your function as below

void CreateVBO(Vertex vertices[]);

call it

CreateVBO(Vertices);

2

solved C++ Passing arguments to a function [closed]