Page 1 of 1

iPhone & Camera

PostPosted: Feb 7, 2010 @ 11:19pm
by la
Hi, I need to use the iPhone Camera and Edgelib together is that possible?
If so how?

Thanks in Advance.

Anyone using Edgelib and iPhone know this please?

PostPosted: Feb 9, 2010 @ 12:41pm
by la
Anyone using Edgelib and iPhone know this please?

PostPosted: Feb 16, 2010 @ 11:05am
by edge
You can use the iPhone's camera interface over EDGELIB without much troubles. Just allocate and initialize the imagePickerController as usual. It does require a separate Objective-C class, and you may want to set the compiler to objective-c++ to make interfacing between the two languages easier.

As a note, EDGELIB of itself will not know about all this and will just keep updating the screen (of which the results are hidden behind the camera's UI and thus not visible).

HTH,

Wouter

Display

PostPosted: Feb 16, 2010 @ 12:54pm
by la
I have tried creating a seperate Objective C Class with the imagepicker (Camera) in it, but not been able to get it to display on screen.

How do you implement a seperate Objective C Class that can display over the top of Edgelib?

I am using Animate3D as a starting point.
So there is none of the usual iPhone files such as main.m appdelegate MainWindow.xib. To view the camera do I need to add these files?

Update

PostPosted: Feb 16, 2010 @ 1:17pm
by la
I think I just need to know how to implement the following line of code that would normally allow the camera to be seen. The camera(imagePickerController) is setup in g_ViewController.

[window addSubview: [g_ViewController view] ];

Does "window" exist when using edgelib? If so how do you access it?
Or how do I add my view to the iPhones view?
How is Edgelib setup in the iPhones view system?

PostPosted: Feb 17, 2010 @ 12:24pm
by edge
Hi,

You can access the window from EDGELIB by calling GetWindowHandle() from within the framework. The function is documented here: http://www.edgelib.com/index.php?node=1 ... ndowhandle