[Solved] How to pass a vertex array as an argument in Objective-C? [closed]


Sorry for my typo in the post… Here is how I managed to fix it:

- (GLuint)make:(float[])meshVerts withSizeOfMeshVerts:(int)sizeMeshVerts
{
        GLuint _vertexArray;
        GLuint _vertexBuffer;

        glEnable(GL_DEPTH_TEST);

        glGenVertexArraysOES(1, &_vertexArray);
        glBindVertexArrayOES(_vertexArray);

        glGenBuffers(1, &_vertexBuffer);
        glBindBuffer(GL_ARRAY_BUFFER, _vertexBuffer);
        glBufferData(GL_ARRAY_BUFFER, sizeMeshVerts, meshVerts, GL_STATIC_DRAW);
}

solved How to pass a vertex array as an argument in Objective-C? [closed]