Re: [Vala] GSL and OpenGL Binding



Hi
Hello everyone,

I update again the GSL binding, the only change was the replacement of 'setv', 'getv' and other methods of some object with @set and @get. See samples (http://live.gnome.org/Vala/GSLSample)
great job matias!!!

About the OpenGL binding, I need to know the header files used by OpenGL. So far I have seen some in the folder /usr/include/GL, especially gl.h. But I need to know if there is more header files to consider.
I think we need gl and glu (Some additional functions for OpenGL programs.). With this APIS we don´t have a viewer. If you want see an OPENgl scene we need GLUT. With glut you can see opengl games for example in a window in windows/linux, etc. GLUT sucks because you only can have a only window and you don´t have widgets but it´s great for thinks like openscenegraph or games.
http://www.openscenegraph.org/projects/osg


If you want a complete viewer we need gtkglext for insert a opengel scene in a GTK drawable.
http://gtkglext.sourceforge.net/

there a nice impletentation in Ruby and easy to understand. If you download ruby installer you have many examples in opengl using glut and gtkglext.
It´s great use ruby to test opengl apps, because use the same code than C. I think with python it´s the same

GCAD3d cad is made using opengl and gtkglext.
http://www.gcad3d.org/
Franz reiter (creator of gcad3d) learn opengl using the superbible book of opengl. I have it and it´s great!!!
http://www.amazon.com/OpenGL-SuperBible-3rd-Richard-Wright/dp/0672326019


we have SDL library to create complete games in C and opengl:
http://www.libsdl.org/

In wikipedia we have a complete list of libraries:
http://en.wikipedia.org/wiki/OpenGL
find: (OpenGL support libraries).

I am really interested in help you because i really need engineering libraries, but now same i can not because i am working in thousand of applications  and could be crazy.
I am working with gtkmm and gtkglextmm a little and perhaps can be useful the samples:
K-3d people create gtkglext and gtkglextmm (for gtkmm):
http://www.k-3d.org/gtkglext/Main_Page
http://gtkglext.sourceforge.net/reference/gtkglext/
http://gtkglext.sourceforge.net/reference/gtkglextmm/
http://gtkglext.sourceforge.net/reference/gtkglextmm/examples.html

Opengl is to library to draw but you need a place where show the results (glut, libsdl, gtkglext, etc).


Another thing, I do not know whether to use the data types of OpenGL or GLib (for example, GLint or gint). I know that technically i'ts the same but in the reference api of OpenGL i't use the OpenGL data types.
Also I'm gonna need some examples in C (basic and intermediate) for testing and then make it a vala source code...
I have never programmed with OpenGL so i'm new in this area but for a binding i will learn OpenGL and it will be useful in the future.

Any help would be welcome
Matias


_______________________________________________ Vala-list mailing list Vala-list gnome org http://mail.gnome.org/mailman/listinfo/vala-list


-- 
Regards.
Martin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]