Discussion Board

Results 1 to 2 of 2
  1. #1
    I'm trying to create my own RWindow (I'm running opengl es in separate thread) for OpenGL ES.

    Code:
    RWsSession iWsSession;
    RWindowGroup iWindowGroup;
    RWindow iWindow;
     
    //connect session
    User::LeaveIfError(iWsSession.Connect());
    iWsSession.ComputeMode(RWsSession::EPriorityControlDisabled);
    
    //create windowgroup
    iWindowGroup=RWindowGroup(iWsSession);
    User::LeaveIfError(iWindowGroup.Construct((TUint32)&iWindowGroup));
    iWindowGroup.EnableScreenChangeEvents(); // flip events (EEventScreenDeviceChanged)
    iWindowGroup.EnableFocusChangeEvents(); // EEventFocusGroupChanged
    iWindowGroup.SetOrdinalPosition(0, 1); // TInt aPos, TInt aOrdinalPriority
    
    //create window
    TSize windowsize(320, 240);
    iWindow=RWindow(iWsSession);
    User::LeaveIfError(iWindow.Construct(iWindowGroup, (TUint32)&iWindow));
    iWindow.SetSize(windowsize);
    iWindow.PointerFilter(EPointerFilterDrag, 0);
    iWindow.SetPointerGrab(ETrue);
    iWindow.SetVisible(ETrue);
    iWindow.Activate();
    When I'm calling
    Code:
    iEglSurface = eglCreateWindowSurface (iEglDisplay, iEglConfig, &iWindow, 0);
    I will get WSERV 6 panic (invalid window handle). How should I initialize the RWindow for Opengl ES? The same RWindow intialization example works for DirectScreenAccess.

  2. #2
    I already solved this by using the opencopenglex example. I really don't need the S60 UI, so this example solved my problems.

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. Not able to create CAknIntegerEdwin/CAknNumericEdwin
    By gpalvia in forum Symbian User Interface
    Replies: 4
    Last Post: 2010-07-19, 09:22
  3. Replies: 10
    Last Post: 2007-07-02, 06:28
  4. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26
  5. how to create a grid
    By ddhungry in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-11-27, 08:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved