Re: [Vala] opengl and gtk+-3.0

2011-07-27 Thread Sergej Reich
Am Samstag, den 16.07.2011, 20:36 +0200 schrieb august:
  Am Freitag, den 24.06.2011, 19:57 +0200 schrieb august:
   Is there any way right now to open a GL context up inside of a GTK+3
   window using vala?
  
  Yes there is, but it's not as straightforward since nobody ported
  gtkglext yet.
  
  You should be able to create the context yourself using glx
  (not sure about systems without xorg though).
  I haven't done this myself yet so I'm afraid I cannot help you directly
  but you can take a look at the glchess source in the gnome-games
  repository http://git.gnome.org/browse/gnome-games/ to see an example
  (chess-view-3d.vala).
  
  Hope that helps.
 
 
 Thanks for the link.  I finally got a chance to look at it.  But,
 afaict, the glchess source you mention uses GTK+2's Drawable class and
 glXSwapBuffers to do some indirect drawing in GL.  
 
 What I am after is a straight forward GL context that can easily be used
 in GTK+3.
 
 
 Is there no such thing (using vala or c)?

Sorry for being so late but as far as I know there is no better way
right now.
You should ask the GTK guys, maybe they can help you out.

Regards, Sergej.

___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] opengl and gtk+-3.0

2011-07-16 Thread august
 Am Freitag, den 24.06.2011, 19:57 +0200 schrieb august:
  Is there any way right now to open a GL context up inside of a GTK+3
  window using vala?
 
 Yes there is, but it's not as straightforward since nobody ported
 gtkglext yet.
 
 You should be able to create the context yourself using glx
 (not sure about systems without xorg though).
 I haven't done this myself yet so I'm afraid I cannot help you directly
 but you can take a look at the glchess source in the gnome-games
 repository http://git.gnome.org/browse/gnome-games/ to see an example
 (chess-view-3d.vala).
 
 Hope that helps.


Thanks for the link.  I finally got a chance to look at it.  But,
afaict, the glchess source you mention uses GTK+2's Drawable class and
glXSwapBuffers to do some indirect drawing in GL.  

What I am after is a straight forward GL context that can easily be used
in GTK+3.


Is there no such thing (using vala or c)?



thanks -august.
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] opengl and gtk+-3.0

2011-06-26 Thread Sergej Reich
Am Freitag, den 24.06.2011, 19:57 +0200 schrieb august:
 Is there any way right now to open a GL context up inside of a GTK+3
 window using vala?

Yes there is, but it's not as straightforward since nobody ported
gtkglext yet.

You should be able to create the context yourself using glx
(not sure about systems without xorg though).
I haven't done this myself yet so I'm afraid I cannot help you directly
but you can take a look at the glchess source in the gnome-games
repository http://git.gnome.org/browse/gnome-games/ to see an example
(chess-view-3d.vala).

Hope that helps.


Regards, Sergej.


___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] opengl and gtk+-3.0

2011-06-24 Thread august

Is there any way right now to open a GL context up inside of a GTK+3
window using vala?


 I've been trying to automatically parse the headers glext.h and glxext.h so I 
 could use OpenGL functions that aren't available in the current gl.vapi 
 (anything beyond OpenGL 1.3). So far, I've managed to produce bindings for 
 the 
 functions and the constants defined in both headers. I'm not sure what to do 
 with the types, though.
 
 Is there anywhere I can go to find out what all the [IntegerType (rank=9)] 
 stuff 
 means, and how I decide to use rank=9 versus rank=7 or 6, or whatever number 
 strikes my fancy?
 
 I've attached my progress so far. There are two python  files; each of them 
 parse the header they are named after. Two directories need to be present
 before either script runs: intermediates and xintermediates.
 
 To run the script, type:
 
 python vala_glext_header_parser.py debug
 
 The scripts produces 4 things:
 1. and 2.) A constants.vapi and functions.vapi file either in 
 intermediates 
 or xintermediates, depending on whether the parser is for GL or GLX.
 
 3.) A debug log
 
 4.) A list of the types used in each function printed to the command line. 
 This 
 is so I have an easy-to-reference list of the types used in the .vapi that 
 need 
 binding.
 
 
 On Mon Jun 5 2011, august wrote:
 Are there .vapi's that work with openGL and GTK+-3.0?
 
 any examples?
 
 thanks -august.





 ___
 vala-list mailing list
 vala-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/vala-list


-- 
---
http://aug.ment.org



signature.asc
Description: Digital signature
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] opengl and gtk+-3.0

2011-06-21 Thread Tristin Celestin
I've been trying to automatically parse the headers glext.h and glxext.h so I 
could use OpenGL functions that aren't available in the current gl.vapi 
(anything beyond OpenGL 1.3). So far, I've managed to produce bindings for the 
functions and the constants defined in both headers. I'm not sure what to do 
with the types, though.

Is there anywhere I can go to find out what all the [IntegerType (rank=9)] 
stuff 
means, and how I decide to use rank=9 versus rank=7 or 6, or whatever number 
strikes my fancy?

I've attached my progress so far. There are two python  files; each of them 
parse the header they are named after. Two directories need to be present
before either script runs: intermediates and xintermediates.

To run the script, type:

python vala_glext_header_parser.py debug

The scripts produces 4 things:
1. and 2.) A constants.vapi and functions.vapi file either in intermediates 
or xintermediates, depending on whether the parser is for GL or GLX.

3.) A debug log

4.) A list of the types used in each function printed to the command line. This 
is so I have an easy-to-reference list of the types used in the .vapi that need 
binding.


On Mon Jun 5 2011, august wrote:
Are there .vapi's that work with openGL and GTK+-3.0?

any examples?

thanks -august.

glext.deps
Description: Binary data


glxext.deps
Description: Binary data


vala_glext_header_parser.py
Description: Binary data


vala_glxext_header_parser.py
Description: Binary data
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list