Thread overview
Anounce: DUI 00.04 (Linux GL support)
Sep 09, 2003
Ant
Sep 09, 2003
John Reimer
Sep 09, 2003
John Reimer
Sep 09, 2003
John Reimer
Sep 10, 2003
John Reimer
Sep 10, 2003
Ant
Sep 10, 2003
John Reimer
September 09, 2003
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


September 09, 2003
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

September 09, 2003
> 
> 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

September 09, 2003
> 
> 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.


September 10, 2003
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

September 10, 2003
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


September 10, 2003
> 
> 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