Skip to content

Instantly share code, notes, and snippets.

@eggie5
Created July 23, 2011 18:24
Show Gist options
  • Save eggie5/1101715 to your computer and use it in GitHub Desktop.
Save eggie5/1101715 to your computer and use it in GitHub Desktop.
Can I cast jfloat [] to float []?
jsize len = env->GetArrayLength(float_vert_coords);
jfloat *jfloats;
jfloats = env->GetFloatArrayElements(vert_coords, NULL);
int i;
float cfloats [len];
for(i=0;i<len;i++)
{
cfloats[i]=jfloats[j]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment