- Code: Select all
char *filename;
NSString *filepath = [[NSBundle mainBundle] bundlePath];
sprintf(filename, "%s/%s", [filepath cStringUsingEncoding:1], "filename.ext");
char *filename;
NSString *filepath = [[NSBundle mainBundle] bundlePath];
sprintf(filename, "%s/%s", [filepath cStringUsingEncoding:1], "filename.ext");
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
char *filename = (char*)[bundlePath cStringUsingEncoding:1];
strcat(filename, "/shuttle.obj");
printf("filename:%s\n", filename);
Return to iPhone OpenGL ES 3D Game Development Forum
Users browsing this forum: No registered users and 1 guest