Making OpenGL cooperate with pTk 
Author Message
 Making OpenGL cooperate with pTk

Has any work been done towards an OpenGL Tk widget?
I currently have a program working passably with what
is, as far as X can tell, a bona fide subwindow of the
Tk mainwindow with GL drawing into it, but all X events
go through the the machinery sets up, not
through Tk; I would like the latter to happen, if convenient,
so that getting it to refresh properly is just a matter
of binding a redraw sub to <Expose>, and changing
keyboard focus works with other widgets in the same window, etc.

Assuming that the apparent lack of any such thing on CPAN
actually implies that it doesn't exist in any usable form,
would it be feasible to do this with straight perl, or
is C-level hackery required? I tend to suspect the latter;
just poking around in the guts of Tk and, it looks
like I need to get some handle on the underlying X window
of a Tk_Window and then tell OpenGL about it (something
like glCreateContext, IIRC)


Sat, 16 Mar 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ptk with openGL

2. ptk vs pTk vs PTK

3. Making a full desktop environment with pTk

4. Emacs Perl addons: cooperate with h2xs

5. Cooperating processes...

6. Perl and tar not cooperating in a shell script

7. X resource handling between ptk-b8 and ptk-b10

8. pTk and threads, pTk and perlcc, faq update?

9. for win32

10. dynamic loading for OpenGL module on Linux

11. OpenGL on ActiveState

12. error compiling OpenGL 0.54 module


Powered by phpBB® Forum Software