[iPhone] UI control using OpenGL ES

I'm writing a ui control using OpenGL ES. It should be able to function as a component on a screen amongst other components, or as a full screen component (not going to hide the status bar etc, I just mean occupying the full 'user area').
My question is: should I write it as a UiView, or a UiComponent? Currently I have OpenGL code functioning as a UiView, it works fine. Can anyone more experienced point me at the pros and cons etc. of doing this control as a view or a component? Or is there a clear "correct" answer?

Just to add: I do realise that UiControl is a subclass of UiView. The more I think of it, subclassing UiView seems to be more appropriate.

Similar Messages

  • Creating Active controls using opengl libraries in LabVIEW

    Hi,
    I want to create a 3D representation of the some geographic data on LabVIEW GUI. The need is to achieve something beyond the dumb representation. I would like to be able to choose any one of the points represented on the 3D GUI and do some activity like give a POP-UP etc.
    I believe labview 3D picture control allows to create the view in various ways like mesh and bars etc. But doesn't allow to create a active control.
    Attaching a sample pic. Of what am I expecting. I want to be able to click on each of the intersection points in the graph and get the pop-up.
    Since this seems to be not possible just using inbuilt 3D picture capabilities of LabVIEW, plan is to use a opengl libraries to achieve this.
    Will it be possible to create this in LabVIEW?
    Has some one done this before? A sample code will be of great help.
    Attachments:
    Example 3D view.JPG ‏69 KB

    Ayman
    Take a look at this thread http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391  where Joe Hoskins has kindly donated his collection of activex vi's for excel.
    There are a couple of examples shipped with labview. Goto menu Help -> Find Examples. The NI Example finder will appear. Goto the search tab and search for excel.
    And, there are plenty of examples on the forum you just need to search for them.
    Trying to get you started ...
    David

  • I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • When using apple remote app on ipad or iphone to control apple TV is there a way of selecting different airplay speakers?

    When using apple remote on ipdad or iphone to control apple TV is there a way to select different airplay speakers without having to control the menu on screen. Eg I want to listed to my music through apple tv (which is in the living room)  and beam it to my airplay speakers in my bedroom, at the moment I would have to go back into the living room to see my tv screen to select the bedroom airplay speakers, then go back upstairs to listen to the music. YOu should be able to select the speakers in app without looking at the TV screen. Hopefully that makes sense!?!

    Look at this.
    Tango Remote Control for iOS6-7 on the App Store on iTunes

  • I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    Welcome to the Apple Community.
    If you haven't turned find my phone off on the device, it should just reappear next time it is connected to an appropriate network. If you have turned off find my phone, turn it back on.

  • HT1947 Can I use my iPhone to control Netflix on my iPad 2

    Can I use my iPhone to control Netflix on my iPad 2?

    Yes. If your carrier provides this service.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)
    iPad 2 User Guide (For iOS 4.3 Software)
    iOS: Understanding Personal Hotspot

  • How can I use OpenGl for iPhone games??

    Hi! As you know I really want to be an iOS developer. I know how Xcode works. But I don't know for the graphics and animation. I've heard that OpenGl can be used in games. But how? I mean like connecting the animations in OpenGl to the program written in XCode. I don't understand that part yet. So please can you guys explain me about that. I thank you all. 

    Hi Eric,
    it would help me frame answers if you give the background information:
    - do you know any 3D computer graphics theory? E.g. viewing transformations.
    - do you know any openGL already?
    - do you already know objectiveC and ios programming?
    To answer your questions:
    - the OpenGL ES libraries are already included as part of the iOS SDK, so if you have that you are set.
    - I am using an Air myself, works fine for developing for iOS, including code using OpenGL ES.
    - OpenGL ES is based on OpenGL 3.0, so is very similar. Almost the same.
    - read the post I linked to:
    http://db-in.com/blog/2011/01/all-about-opengl-es-2-x-part-13/
    He explains how to hook things up quite well. However, you do already need to understand how to develop for iOS.
    As I mentioned above, it helps to know 3D Graphics principles. If you do not know that then it is difficult to animate using openGL (or any other SDK). There are third party tools available (e.g. Corona, Unity, project Anarchy) that can make life easier, but at some point you simply have to learn 3D graphics. Trying to do animation without understanding graphics is like trying to write native apps without understanding programming. You can cheat to do basic stuff, but nothing useful or deep.
    This is not easy stuff, you will have to put some work into it. Start with the above link as an intro, and also the apple docs pointed to by teacup.
    Good luck!

  • How do I sync photos FROM iphone TO pc using wifi?

    I have a 4S I bought in Mar 2012 - just updated to IOS6
    PC is a 2011 Dell Inspirion 620 running Windows 7
    Browsers are IE & Chrome
    I am a computer person so I'm not new to the techno world but this is my first iphone so I'm new to Apple    There are plenty of places to get info about syncing photos using icloud or syncing from PC to iPhone but I'm getting conflicting  info on syincing FROM iphone TO pc using WIFI. One video I watched told me I needed to download PhotoSync so I did.   Then I read that I needed the companion app for Photosync -- Apple.com talks about something called iphoto 
    I am totally confused can someone please explain to me how to transfer photos FROM my iphone TO my pc using  WiFi? 
    Do I need to download something like photosync? or another type of app.?
    Thank you
    Christine

    So, just to clarify, you're a "computer person" and cannot follow links?  Well ok, here goes
    Download theiCloud Control Panel.
    To enable iCloud on your Windows PC, first set up iCloud on your other devices, then install the iCloud Control Panel for Windows (Windows Vista with Service Pack 2 or Windows 7 required).Download now (you have to follow that link I cannot post the file here).
    Turn on iCloud.
    From the Windows Start menu, choose iCloud Control Panel.
    Enter the Apple ID you used to create your iCloud account and select the iCloud services you’d like to enable.
    For mail, contacts, and calendars, you can use iCloud.com or Outlook 2007 or later.
    On your iPhone go to settings-iCloud and ensure you're signed in and that "photo stream" is enabled.
    Any more questions?

  • Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What does this mean? I have had this phone for over a year..

    Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What is the issue, had this phone over a year??

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • HT1386 i get an error message saying "iphone cannot be used because the Apple mobile device service is not started.  what do i do?

    not sure why i cant sync with Itunes.  message says "Iphone cannot be used becasue the Apple Mobile Device is not started.  Can anyone help?

    Go to control panel --> Programs (Uninstall a programs) --> Apple Mobile Device Supoort (right click) --> Click repair
    Hopefuly it works for you too!
    Good luck!

  • Using OpenGL ES in an AIR native extension on iPad

    Hi,
    I am trying to find out whether I can render images using iPad GPU from a native extension loaded by an AIR application on iPad. The main reason for this is that I need every bit of GPU power in my AIR application and I cannot use Stage3D (see http://forums.adobe.com/thread/1267084 for details).
    The idea is to pass a bitmap from the ActionScript code to the native extension, render it by Objective C code and raw OpenGL ES and send it back to the AIR code.
    Is it technically possible? I am afraid that AIR runtime uses OpenGL ES for its own needs (at least for Stage3D support) so native extension possibly cannot share OpenGL with it.
    Nevertheless I have made a try. Here is some code:
    The first strange thing is that the following initialization code:
    myContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
    [EAGLContext setCurrentContext:myContext];
    does not make much sense for me. Instead of this I can see that EAGLContext already contains some instance previously set up by someone else (maybe AIR runtime did it). And I was able to get an image only when I do not create this context at all. So these two lines are actually commented out in my test app.
    Here is how I initialize framebuffer:
    glGenFramebuffersOES(1, &framebuffer);
    glBindFramebufferOES(GL_FRAMEBUFFER_OES, framebuffer);
    glGenRenderbuffersOES(1, &colorRenderbuffer);
    glBindRenderbufferOES(GL_RENDERBUFFER_OES, colorRenderbuffer);
    glRenderbufferStorageOES(GL_RENDERBUFFER_OES, GL_RGBA8_OES, width, height);
    glFramebufferRenderbufferOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_OES, GL_RENDERBUFFER_OES, colorRenderbuffer);
    I do not need 3D so I am not creating depth buffer. Insteat I need to render a lot of 2D polygons and the drawing order is OK for me.
    Then I tried the following code to render a single triangle specified in the vertexData array:
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrthof(-1.0f, 1.0f, -1.0f, 1.0f, -1.0f, 1.0f);
    glMatrixMode(GL_MODELVIEW);
    glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
    glClear(GL_COLOR_BUFFER_BIT);
    // vertexData contains 2d float coordinates followed by 4 bytes of color for each vertex
    glEnableClientState(GL_VERTEX_ARRAY);
    glVertexPointer(2, GL_FLOAT, 12, vertexData);
    // The following two lines cause the whole screen to be filled with random gradient semi-transparent fill.
    // If I comment them out then it renders a black triangle that I really expect to get.
    glEnableClientState(GL_COLOR_ARRAY);
    glColorPointer(4, GL_UNSIGNED_BYTE, 12, (vertexData + 8));
    // Draw the triangle:
    glDrawArrays(GL_TRIANGLES, 0, 3);
    // Get the final image:
    glPixelStorei(GL_PACK_ALIGNMENT, 4);
    NSInteger datalength = width * height * 4;
    GLubyte* rawdata = (GLubyte*)malloc(datalength * sizeof(GLubyte));
    glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, rawdata);
    // In this point the rawdata array contains an image that I am able to convert and send back to my AS code.
    So each time I try to specify color for vertexes then I get the whole iPad screen filled with some random gradient. I have also tried glColor function and it causes such effect too. Disabling lighting and fog did not helped.
    So my main question is the following: is it technically possible to render an offscreen image in the native extension using OpenGL?
    Maybe the black triangle that I was able to get from the rendered image is rendered accidentally and the whole thing should not work at all?

    Hi there,
    I'm a total OpenGL newb but, after quite some struggle I managed to bend OpenGL from AIR extension to do what I wanted in my FlashyWrappers library for iOS (for superfast video capturing from AIR apps).
    Basically you're right in the assumption that the OpenGL context is already initialized by AIR. I'm not sure about your code, because like I said I'm practically a newb in that field, but overall, because you share context with AIR's OpenGL, it's entirely possible you're messing with it's own rendering pipeline if you don't properly unbind / reset stuff and that might cause the screen go crazy.
    Myself I was able to do a little different thing: Create a texture-backed FBO, bind it on every frame and let AIR render into it (instead of screen). I was then able to manipulate the contents of what AIR rendered (you can do glReadPixels on the content too, by the way).
    So I bet if I can let AIR render its stuff into my texture backed FBO you can render your own things into it as well...I just bound it and waited for AIR to finish its rendering into it. Instead you can probably render into it, then bind AIR's original FBO instead of waiting for AIR to render so that AIR renders to screen again on the next frame.
    I partially used this tutorial OpenGL ES 2.0 for iPhone Tutorial Part 2: Textures - Ray Wenderlich .
    Oh and I would like to add that playing with this works only in GPU or Direct mode, not CPU.

  • IPhone cannot be used 'cos the required software is not installed..

    When I connect my iPhone 3G to iTunes i get this error message;
    'This iPhone cannot be used because the required software is not installed. Run the iTunes installer to remove iTunes, then install iTunes again.'
    I have done what it says several times but it still comes up with this error message, can anyone help?
    Thanks Chris

    I do love those canned messages (Not!).
    Your post makes it sound like the mobile device manager is the problem and that you just zapped the iTunes and nothing else.
    First : Repair Mobile Device Manager.
    If that works you're golden.
    If it doesn't then ....
    News flash : back up your downloads and then go into Add/Remove in Control Panel and get everything!
    Yes, that's Bonjour, AirTime, and everything else.
    Only the downloads remain!
    Now re-do iTunes from a fresh download.

  • HELP "iPhone cannot be used because the required software is not installed"

    I recevied a message when i tried to connect my iPhone to iTunes "This iPhone cannot be used because the required software is not installed. Run the iTunes installer to remove iTunes, then install iTunes again", I tried many times to install different version of iTunes and it still the same, Can anyone help?

    needuhelp wrote:
    I recevied a message when i tried to connect my iPhone to iTunes "This iPhone cannot be used because the required software is not installed. Run the iTunes installer to remove iTunes, then install iTunes again", I tried many times to install different version of iTunes and it still the same, Can anyone help?
    If you go to Control Panel - Add/Remove Programs (on XP) Programs/Features (on Vista) do you see a program called Apple Mobile Device Support?

  • I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    Windows XP
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Choose Start > Control Panel.
    Inside the Control Panel, open Administrative Tools.
    Open Services.
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.
    Windows Vista or Windows 7
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Click the Windows Start button .
    In the Start Search field type Services.
    In the Programs section of the search results, Click "Services".
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.

  • Iphone cannot be used because the requires software is not installed -  removed itunes 10.5 and re installed still same problem

    iphone cannot be used because the requires software is not installed -  re installed itunes still same problem

    Is Apple Mobile Device Support currently appearing in the Uninstall a program control panel on the PC, vyvsdad?

Maybe you are looking for

  • More XMP questions / filtering on edit settings

    alright, i've imported one or two of my old CS projects into LR1.0. now i have a couple of questions. in CS, i used sidecar XMP files, both as a way to avoid the mystery of the photoshop database, and to future proof myself for when something like LR

  • I cannot install Firefox-6.0.2.tar.bz2.

    I downloaded Firefox-6.0.2.tar.bz2, but I don't know how to install the new Firefox version to upgrade from Firefox version 2.0.0.14, in operating system Linpus Linux Lite v1.0.11.E. What steps should I follow?

  • Connection a iMac 10,1 to a MacBookPro4,1

    I would like to connect my MacBookPro4,1 to my iMac 10,1 as an extra monitor for using final cut...which cables do i need to use? thank you. N

  • Replace usb 1.1 with 2.0

    how can it be that every other mac can have the usb 1.1 card replaced with a usb 2.0 card, but this imac can't? i can replace the hd (ok-i knocked the damned thing over!), processor, optical reader, et c., so what's with the NO to usb swaps? is this

  • Continual order failure. Unbelievable customer ser...

    Hi, I am a Bt broadband customer and I was recently told that I would be able to update to the infinity service. I have been trying to do so for weeks now and have been experiencing the catastrophe that is bt's customer service. I have called no less