Jump to page: 1 2 3
Thread overview
extern(C) / extern(Windows) - DUI OpenGL
Nov 21, 2004
Ant
Nov 21, 2004
Ant
Nov 21, 2004
Ant
Nov 22, 2004
Ant
Nov 23, 2004
Ant
Nov 22, 2004
Ant
(OT) Re: extern(C) / extern(Windows) - DUI OpenGL
Nov 22, 2004
h3r3tic
Nov 22, 2004
Regan Heath
Nov 22, 2004
John Reime
Nov 22, 2004
Simon Buchan
[Help] extern(C) / extern(Windows) - DUI OpenGL
Nov 23, 2004
Ant
Nov 23, 2004
John Reimer
Nov 23, 2004
Ant
Nov 24, 2004
Ant
Nov 24, 2004
John Reimer
Nov 24, 2004
Ant
Fix for OpenGL on DUI 00.20_100 for windows
Nov 24, 2004
Ant
Nov 24, 2004
John Reimer
Nov 23, 2004
John Reimer
Nov 24, 2004
Walter
November 21, 2004
John Reimer found that

replacing extern(C) with extern(Windows) on the
DUI OpenGL extension decalrations fixes all the problems
with the OpenGL on DUI.

how do I know which to one use?

DUI is a wrapper to Gtk+ DLLs
DUI openGL is a wrapper to GtkGlExt DLLs.

The interface with the system opengl libs is made through GtkGLExt.

Why should I use extern(C) for Gtk+
and extern(Windows) for GtkGlExt ?
how do I know which to one use?

Ant

from a discussion with John:
 --- John Reimer wrote:
> Ant wrote:
> 
> > --- John Reimer wrote: 
> > 
> >You think I'll have to change all extern(C) to extern(Windows)
> >or just the OpenGL one?
> >
> >go to any class on DUI and there is extern(C)...
> >
> >funny, I believe I try that a year ago, I'm pretty sure I did...
> >
> >Ant
> >
> >
> > Just opengl ones... because they are part of the win32 system.  GTK
> is a
> just a standard C library, not a system library (as far as I
> understand
> it), so it doesn't have much to do with WINAPI calls.
> 
November 21, 2004
ignore this I think I got it.
calls to gl* function go directly to the system libraries
the GtkGlExt just enables that (somehow).

now, to use extern(C) and extern(Windows)... how is it?

version(Win32) extern(Windows):
version(linux) extern(C):
glFunctions...
glFunctions...
glFunctions...
glFunctions...
glFunctions...

will it work? I'll give it a try.

Ant

PS sorry for sequestring the D group for DUI...
November 21, 2004
Ant wrote:

> now, to use extern(C) and extern(Windows)... how is it?
> 
> version(Win32) extern(Windows):
> version(linux) extern(C):
> glFunctions...
> 
> will it work? I'll give it a try.

No, that is wrong.
You want to write:

version(Win32) extern(Windows):
else           extern(C):

Since there are other platforms.
Remember: Not Windows != Linux.

--anders
November 21, 2004
Anders F Björklund wrote:
> 
> No, that is wrong.
> You want to write:
> 
> version(Win32) extern(Windows):
> else           extern(C):
> 
> Since there are other platforms.
> Remember: Not Windows != Linux.

thank you.

any reports of DUI working on other platforms are welcome!

Ant
November 22, 2004
Ant wrote:
> PS sorry for sequestring the D group for DUI...

I don't think this is a problem to anyone. D needs a good GUI and DUI can provide it :)
November 22, 2004
On Mon, 22 Nov 2004 01:11:29 +0100, h3r3tic <foo@bar.baz> wrote:
> Ant wrote:
>> PS sorry for sequestring the D group for DUI...
>
> I don't think this is a problem to anyone. D needs a good GUI and DUI can provide it :)

Not a problem, however it might be 'nicer' if you had your own group, like on dsource or wherever. I think 'announcements' and 'problems' should be posted here and possibly their resolutions (if applicable to other D projects)

The various posts discussing and solving the problem could be in their own group, but, then again if someone is not interested they can simply ignore the thread can't they.

Perhaps a digitalmars.D.gui NG is a good idea? We have one for the DTL, why not one for gui related discussions it occurs to me that is a large subject area which will only get more and more traffic as D evolves.

Regan

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
November 22, 2004
In article <opshubbtna5a2sq9@digitalmars.com>, Regan Heath says...
>
>On Mon, 22 Nov 2004 01:11:29 +0100, h3r3tic <foo@bar.baz> wrote:
>> Ant wrote:
>>> PS sorry for sequestring the D group for DUI...
>>
>> I don't think this is a problem to anyone. D needs a good GUI and DUI can provide it :)

<snip>

>Perhaps a digitalmars.D.gui NG is a good idea? We have one for the DTL, why not one for gui related discussions it occurs to me that is a large subject area which will only get more and more traffic as D evolves.
>
>Regan
>
>-- 
>Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


I like that idea... GUI programming discussions would likely be popular because that's the next area D needs to advance.  I think the gui question is one of the first queries made by many new people to this group.  D needs one badly. Currently, it seems that DUI is the strongest project in this area.

Ant doesn't seem to like the dsource.org forum format, which is sad.  It would be nice to see that project in subversion there. And I don't like the Yahoo discussion groups one bit. :-(

It would be nice to work something out...

John



November 22, 2004
Ant wrote:

> thank you.
> 
> any reports of DUI working on other platforms are welcome!

Since it currently has "Win32" and "linux" hardcoded,
it won't compile on platforms other than those two...

Neither dool nor DUI compiles.
(bug reports on SourceForge)

--anders
November 22, 2004
On Mon, 22 Nov 2004 13:22:31 +1300, Regan Heath <regan@netwin.co.nz> wrote:

<snip>
>
> Perhaps a digitalmars.D.gui NG is a good idea? We have one for the DTL, why not one for gui related discussions it occurs to me that is a large subject area which will only get more and more traffic as D evolves.
>
> Regan
>

Well I dont know if a gui group would get enough traffic for a while (I only
know about DUI atm) but perhaps a more general .D.projects?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
November 22, 2004
In article <cnscro$1on8$1@digitaldaemon.com>, =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...
>
>Ant wrote:
>
>> thank you.
>> 
>> any reports of DUI working on other platforms are welcome!
>
>Since it currently has "Win32" and "linux" hardcoded,
>it won't compile on platforms other than those two...
>
>Neither dool nor DUI compiles.
>(bug reports on SourceForge)
>
>--anders

My fault! :(
what should I do? just use "else" instead of linux?

Ant


« First   ‹ Prev
1 2 3