Find the answer to your Linux question:
Results 1 to 2 of 2
I am writing a program that needs to display graphs. Right now I am using Cairo which works well except it is really slow. Drawing 1200 lines locks up my ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    14

    GTK DrawArea OpenGL

    I am writing a program that needs to display graphs. Right now I am using Cairo which works well except it is really slow. Drawing 1200 lines locks up my computer (i7 CPU and gtx285 graphics card).

    I only found examples to use Cairo with GTK DrawingArea can I use OpenGL instead or is there a way to cairo to run faster?

    Thanks,
    Justin

  2. #2
    Linux User
    Join Date
    Jan 2006
    Posts
    414
    If you want to use OpenGL inside of GTK+ take a look at gtkglext it gives you a gtk widget that you can create an OpenGL context inside of.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...