This site is no longer active and is available for archival purposes only. Registration and login is disabled.

iPhone & Camera


iPhone & Camera

Postby la » Feb 7, 2010 @ 11:19pm

Hi, I need to use the iPhone Camera and Edgelib together is that possible?
If so how?

Thanks in Advance.
la
pm Member
 
Posts: 8
Joined: Feb 7, 2010 @ 5:13pm


Anyone using Edgelib and iPhone know this please?

Postby la » Feb 9, 2010 @ 12:41pm

Anyone using Edgelib and iPhone know this please?
la
pm Member
 
Posts: 8
Joined: Feb 7, 2010 @ 5:13pm


Postby edge » Feb 16, 2010 @ 11:05am

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
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Display

Postby la » Feb 16, 2010 @ 12:54pm

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?
la
pm Member
 
Posts: 8
Joined: Feb 7, 2010 @ 5:13pm


Update

Postby la » Feb 16, 2010 @ 1:17pm

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?
la
pm Member
 
Posts: 8
Joined: Feb 7, 2010 @ 5:13pm


Postby edge » Feb 17, 2010 @ 12:24pm

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
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron