I’m new to openframeworks, so in advance please apologize if my question is totally trivial - as it probably is.
Anyway, here’s a code snippet that’s causing me trouble:
in the h file:
unsigned char* depthMatrix;
in the cpp file:
depthMatrix = new unsigned char[ofGetWidth()*ofGetHeight()]; printf("defined size: %d, init size: %d\n", ofGetWidth()*ofGetHeight(), sizeof(depthMatrix));
and the marvellous output:
defined size: 786432, init size: 4
Does anyone know why this array gets defined to a length of 4, while I’m specifically defining it to over 700000??
Thanks in advance for any pointers!