www.digitalmars.com         C & C++   DMDScript  

D - Anounce: DUI 00.04 (Linux GL support)

reply Ant <Ant_member pathlink.com> writes:
Anounce: DUI 00.04 (Linux GL support)

(The only different from 00.03 is the GL support.)

DUI GL support (Linux only) is implemented with a binding on 
http://gtkglext.sourceforge.net/

GL support is still experimental (i.e. before pre-alpha ;)
but due to the simplicity of the
GtkGLExt API few changes should be needed to the final version.

GL is:
Mesa 3-D graphics library
Version:  4.0.4
http://www.mesa3d.org/

see a simple image at:
http://ca.geocities.com/duitoolkit/glExtension.html

get it at:
http://ca.geocities.com/duitoolkit/downloadPage.html

Ant
Sep 08 2003
next sibling parent John Reimer <jjreimer telus.net> writes:
Ant wrote:
 Anounce: DUI 00.04 (Linux GL support)
 
 (The only different from 00.03 is the GL support.)
 
 DUI GL support (Linux only) is implemented with a binding on 
 http://gtkglext.sourceforge.net/
 
 GL support is still experimental (i.e. before pre-alpha ;)
 but due to the simplicity of the
 GtkGLExt API few changes should be needed to the final version.
 
 GL is:
 Mesa 3-D graphics library
 Version:  4.0.4
 http://www.mesa3d.org/
 
 see a simple image at:
 http://ca.geocities.com/duitoolkit/glExtension.html
 
 get it at:
 http://ca.geocities.com/duitoolkit/downloadPage.html
 
 Ant
 
Super great! Man... I din't expect you to move so fast. I have gentoo linux. I haven't done much linux programming, but I'll have to give the library a try out to see how it works. I'll probably be bumbling along for a bit. Thanks! John
Sep 09 2003
prev sibling parent reply John Reimer <jjreimer telus.net> writes:
 
 see a simple image at:
 http://ca.geocities.com/duitoolkit/glExtension.html
 
Nice sample app. I like the implementation of the GL. It appears nicely integrated. I do have a question from the sample (I guess I don't no my D so well :-P) : static GLfloat ambient[4] = [ 0.329412, 0.223529, 0.027451, 1.0 ] ^---- these are encased in brackets? Is this normal D style for initializing arrays (instead of C style curly braces)? later, John
Sep 09 2003
next sibling parent John Reimer <jjreimer telus.net> writes:
 
 static GLfloat ambient[4]  = [ 0.329412, 0.223529, 0.027451, 1.0 ]
                       ^---- these are encased in brackets?
 
Argh! This confounded text formatting messed up my post. The arrow was supposed to point to the R value.
Sep 09 2003
prev sibling parent reply John Reimer <jjreimer telus.net> writes:
John Reimer wrote:

 I do have a question from the sample (I guess I don't no my D so well 
 :-P) :
 
 static GLfloat ambient[4]  = [ 0.329412, 0.223529, 0.027451, 1.0 ]
                       ^---- these are encased in brackets?
 
Pardon me. I just had to look in the D programming spec for the answer (under static initialization of static arrays). Later, John
Sep 09 2003
parent reply Ant <Ant_member pathlink.com> writes:
In article <bjmc1a$s6o$1 digitaldaemon.com>, John Reimer says...
John Reimer wrote:

 I do have a question from the sample (I guess I don't no my D so well 
 :-P) :
 
 static GLfloat ambient[4]  = [ 0.329412, 0.223529, 0.027451, 1.0 ]
                       ^---- these are encased in brackets?
 
Pardon me. I just had to look in the D programming spec for the answer (under static initialization of static arrays). Later, John
 static GLfloat ambient[4]  = [ 0.329412, 0.223529, 0.027451, 1.0 ]
                       ^---- these are encased in brackets?
 
Pardon me. I just had to look in the D programming spec for the answer (under static initialization of static arrays). Later,
John, sorry, didn't meant to ignore you, I just thought that once the example program did compile and ran your question was already answered... I'm also an absolute beginer in D. I don't know why the [] are used and I thought that was your real question. (just guessing) [] seams to mean that the array is initialized from and array, I think it makes more sence if we say that the array is initialized from a list of values therefor {} makes more sence to me. both [] and {} have other meanings, so... Now back to the "this()", "~this()" discussion, ah, forget it... Ant
Sep 09 2003
parent John Reimer <jjreimer telus.net> writes:
 
 John, sorry, didn't meant to ignore you,
 I just thought that once the example program did
 compile and ran your question was already answered...
No problem. I just figured that was a hint to find out for myself, like I should have in the first place ;-)
 I'm also an absolute beginer in D.
 I don't know why the [] are used and I thought that was your real question.
 (just guessing)
That was indeed my question. I wasn't questioning whether it worked in the sample. I was just interested to know why D uses the [] instead of {} for static initialization. I was wondering what the design decision behind that was. That's all. I just hadn't noticed this as a feature of D until I saw you use it.
 [] seams to mean that the array is initialized from and array,
 I think it makes more sence if we say that the array is initialized from
 a list of values therefor {} makes more sence to me.
 both [] and {} have other meanings, so...
Yes, {} made more sense to me too. Since [] encloses the index of an array, it seems odd to intialize array elements by listing them within the [] on the right side. It's not a problem using this new style, just different from what I'd say is intuitive, I guess (well for those with a C/C++ background, anyway). ~this(), John
Sep 09 2003