Ticket #42 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 2 years ago

DMD2 and Linux support patch

Reported by: jordi Assigned to:
Priority: minor Version:
Keywords: dmd2, unix, linux Cc:

Description

This is a request for comments on a patch i have made to support dmd2 under linux. The patch is not ready yet, and this ticket is to get feedback only. Things to improve before applying:

- I know some changes are redundant and should be moved somewhere else. Some "version" stuff to set the GLX version, an alias of getProcAddress, etc... - dgl example compiles and shows the blue screen, but the changes are not compatible with D1. - it is untested beyond the dgl example! - i am not sure about some of the design rules and conding standards of this project.

Attachments

dmd2-linux.patch (18.1 kB) - added by jordi on 12/24/09 03:49:59.
First version of the patch. Not applyable yet.
derelict2-dmd-linux.patch (19.2 kB) - added by Stanley Pancakes on 12/26/09 22:34:02.

Change History

12/24/09 03:49:59 changed by jordi

  • attachment dmd2-linux.patch added.

First version of the patch. Not applyable yet.

12/26/09 22:34:02 changed by Stanley Pancakes

  • attachment derelict2-dmd-linux.patch added.

12/26/09 22:41:39 changed by Stanley Pancakes

May I propose some alterations to the patch?

I just extracted some of the code you mentioned (this 'version' and 'getProcAddress' stuff) into separate file (derelict/opengl/platform.d). In dgl.d, non-D1-compatible change was with const(SDL_version*) which is actually defined in Derelict as CSDLVERPTR.

I can tell that under linux GL works with my pet project as well as with dgl, but I can't say that I'm using 100% of the API.

Looks like I forgot to add license info to platform.d...

01/01/10 11:00:22 changed by jordi

Your changes look good to me. I have actually finished porting my project to dmd2 and derelict2 and it works fine. It is very simple and for now it only uses some shaders in glsl and Freetype, so it cannot be considered a good test case.

05/05/10 06:14:53 changed by aldacron

  • status changed from new to closed.
  • resolution set to wontfix.

From what I can see, this patch isn't relevant now.