Results 1 to 2 of 2

Thread: multpiple opengl windows

  1. #1

    Default multpiple opengl windows

    I created a small application using hellogl example given in QT. I created multiple opengl windows using QT creator
    Qt is awesome to use.

    2. how can i integrate qt with my game engine ? i am using Horde3D game engine

    i want to simply add this small application in to my game engine code can some one direct ?

    3. am i really in the right direction that if i create an instance of window and call it again as follows

    Qt Code:
    1. Window window;
    2. Window window2;
    3.  
    4. if (((float)widgetArea / (float)desktopArea) < 0.75f){
    5. window.show();
    6. a=true;
    7. }
    8. else
    9. { window.showMaximized();}
    10.  
    11.  
    12. if (((float)widgetArea / (float)desktopArea) < 0.75f){
    13. window2.show();
    14. }
    15. else
    16. { window2.showMaximized();}
    To copy to clipboard, switch view to plain text mode 
    am i doing it right? and can i integrate it with my game engine and display my scene in these two windows?
    Thank You once again

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: multpiple opengl windows

    2. how can i integrate qt with my game engine ? i am using Horde3D game engine
    You just link Horde3D to your Qt application.

    am i really in the right direction that if i create an instance of window and call it again as follows
    The right direction to where?
    What you are trying to achieve with this code?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Problems about openGL on windows xp
    By furskytl in forum Qt Programming
    Replies: 5
    Last Post: 10th November 2011, 08:00
  2. Build Qt with OpenGL ES support on Windows
    By moldovan_catalin in forum Installation and Deployment
    Replies: 0
    Last Post: 19th September 2010, 12:31
  3. OpenGL ES on Windows CE
    By carlovv81 in forum Qt for Embedded and Mobile
    Replies: 10
    Last Post: 9th March 2010, 20:57
  4. QtWidget in Overlay Planes on Windows OpenGL
    By IVTdeveloper in forum Qt Programming
    Replies: 2
    Last Post: 20th August 2008, 11:00
  5. Mulitple openGL windows
    By tcsvw5 in forum Qt Programming
    Replies: 19
    Last Post: 3rd March 2006, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.