I am having some problems dynamically declaring a GLfloat array in Objective-C. Here is the c ode i'm using:
GLfloat *m_bindPositions;
@implementation
int nVerts = [self m_countVertices];
m_bindPositions = (GLfloat*)malloc((nVerts * 3) * sizeof(GLfloat));
nVerts in this example equals 6704.
if I was to run sizeof(m_bindPositions) it should return 80448.
It currently returns 4.This makes me believe there is an error with the allocation of the
memory and I am not entirely sure why. Any help would be much appreciated.
Thanks