Jump to page: 1 2
Thread overview
OT: Started a blog about D, OpenGL and SDL
Jan 25, 2007
Olli Aalto
Jan 25, 2007
Olli Aalto
Jan 25, 2007
Mike Parker
Jan 26, 2007
Carlos Santander
Jan 26, 2007
Olli Aalto
Jan 26, 2007
Mike Parker
Jan 26, 2007
Olli Aalto
Jan 26, 2007
Mike Parker
Jan 25, 2007
Mike Parker
January 25, 2007
I wanted just to let you know that I started writing a blog about D, OpenGL and SDL. I will be doing mostly NeHe's tutorials, but I'll probably post about other things too. Mostly D and/or games.

So here it is http://odefu.blogspot.com/

There's not much yet, but I'll try to get the first lesson up later today.

O.
January 25, 2007
Olli Aalto wrote:

> I wanted just to let you know that I started writing a blog about D, OpenGL and SDL. I will be doing mostly NeHe's tutorials, but I'll probably post about other things too. Mostly D and/or games.
> 
> So here it is http://odefu.blogspot.com/

Sounds good, be sure to use SDL_main if you want your
programs to run on Mac OS X and not just Windows/Linux.

extern(C)
int SDL_main(int argc, char **argv)
{
    ...
}

int main(char[][] args)
{
    return SDL_InitApplication(args);
}

I don't think there is any support in Derelict for this,
though. Or at least I haven't gotten it to work on a Mac.

--anders
January 25, 2007
Anders F Björklund wrote:
> Olli Aalto wrote:
> 
>> I wanted just to let you know that I started writing a blog about D, OpenGL and SDL. I will be doing mostly NeHe's tutorials, but I'll probably post about other things too. Mostly D and/or games.
>>
>> So here it is http://odefu.blogspot.com/
> 
> Sounds good, be sure to use SDL_main if you want your
> programs to run on Mac OS X and not just Windows/Linux.
>

Yeah, I added a small disclaimer in my second post that I'm working on a Windows box mostly and wont try to make them completely cross platform, at least not yet. I do have a powerbook, but haven't gotten to try gdc on it yet. Hmm.. maybe this weekend when I'm going with my girlfriend to her parents. Need something to do, you know. :)

> extern(C)
> int SDL_main(int argc, char **argv)
> {
>     ...
> }
> 
> int main(char[][] args)
> {
>     return SDL_InitApplication(args);
> }
> 
> I don't think there is any support in Derelict for this,
> though. Or at least I haven't gotten it to work on a Mac.
> 

Ok, good to know.


O.
January 25, 2007
Olli Aalto wrote:

>> Sounds good, be sure to use SDL_main if you want your
>> programs to run on Mac OS X and not just Windows/Linux.
> 
> Yeah, I added a small disclaimer in my second post that I'm working on a Windows box mostly and wont try to make them completely cross platform, at least not yet. I do have a powerbook, but haven't gotten to try gdc on it yet. Hmm.. maybe this weekend when I'm going with my girlfriend to her parents. Need something to do, you know. :)

I'm updating my bindings for D 1.0, which seems to have broken them.

But otherwise they are working good, but doesn't use Build/Derelict.
SDL and OpenGL have been running OK on GDC/Mac since at least 2005.

You can find the older on my page at http://www.algonet.se/~afb/d/
(I haved since moved opengl.gl over to gl.gl, and openal to al.al)

--anders
January 25, 2007
Olli Aalto wrote:
> I wanted just to let you know that I started writing a blog about D, OpenGL and SDL. I will be doing mostly NeHe's tutorials, but I'll probably post about other things too. Mostly D and/or games.
> 
> So here it is http://odefu.blogspot.com/
> 
> There's not much yet, but I'll try to get the first lesson up later today.
> 
> O.

Great news! The D blogosphere has been feeling lonely :)
January 25, 2007
Anders F Björklund wrote:
> 
> Sounds good, be sure to use SDL_main if you want your
> programs to run on Mac OS X and not just Windows/Linux.
> 
> extern(C)
> int SDL_main(int argc, char **argv)
> {
>     ...
> }
> 
> int main(char[][] args)
> {
>     return SDL_InitApplication(args);
> }
> 
> I don't think there is any support in Derelict for this,
> though. Or at least I haven't gotten it to work on a Mac.
> 
> --anders

There will be, either as soon as I get me paws on a Mac or someone gets it implemented for me. The Mac market is a very important one for me. Higher conversion rates for indie games than on Windows!
January 25, 2007
Mike Parker wrote:

>> I don't think there is any support in Derelict for this,
>> though. Or at least I haven't gotten it to work on a Mac.
> 
> There will be, either as soon as I get me paws on a Mac or someone gets it implemented for me. The Mac market is a very important one for me. Higher conversion rates for indie games than on Windows!

Good to hear, I used to be a Mac game developer back in the day.

But I still haven't gotten Build or Derelict to work properly,
and got tired of trying so I went back to the regular libraries
and Make - at least that I know how to do, same as with C/C++.
I'm sure Bud/DSSS/Derelict can be made to work, with some effort.

For now, I just posted the small change needed in the blog comments.

--anders
January 26, 2007
Mike Parker wrote:
> Anders F Björklund wrote:
>>
>> Sounds good, be sure to use SDL_main if you want your
>> programs to run on Mac OS X and not just Windows/Linux.
>>
>> extern(C)
>> int SDL_main(int argc, char **argv)
>> {
>>     ...
>> }
>>
>> int main(char[][] args)
>> {
>>     return SDL_InitApplication(args);
>> }
>>
>> I don't think there is any support in Derelict for this,
>> though. Or at least I haven't gotten it to work on a Mac.
>>
>> --anders
> 
> There will be, either as soon as I get me paws on a Mac or someone gets it implemented for me. The Mac market is a very important one for me. Higher conversion rates for indie games than on Windows!

By any chance do you know what needs to be done for derelict's SDL to work on a mac? I have one and I've probably got some time during the weekend, so I could give it a shot. I just need to know a little bit more of the problem.

O.
January 26, 2007
Olli Aalto wrote:
> Mike Parker wrote:

> By any chance do you know what needs to be done for derelict's SDL to work on a mac? I have one and I've probably got some time during the weekend, so I could give it a shot. I just need to know a little bit more of the problem.
> 
> O.

Apparently SDL_main does some sort of trickery that is a necessity, so just loading in the SDL framework isn't enough to run an SDL app. Whatever SDL_main is doing needs to be done by Derelict as well. I find that rather poor design. IMO SDL_main should only be a convenience, not a necessity, and any setup should be handled in SDL_Init. But, nothing I can do about that.

Derelict should be playing nice with GDC. Anders submitted a patch a while ago to make it do so. I suppose it's working, because the last time someone tried to get Derelict up and running on the Mac they got things compiling (then got bit by the SDL_main problem).

The only other concern is Bud. If Bud isn't working on the Mac, then that means we'll need a Makefile system to build the Derelict libs. So a priority of anyone getting working on Macifying Derelict should be to get Bud functioning first.

As you can see, it's a bit of an involved task :)
January 26, 2007
Mike Parker wrote:
> Olli Aalto wrote:
>> Mike Parker wrote:
> 
>> By any chance do you know what needs to be done for derelict's SDL to work on a mac? I have one and I've probably got some time during the weekend, so I could give it a shot. I just need to know a little bit more of the problem.
>>
>> O.
> 
> Apparently SDL_main does some sort of trickery that is a necessity, so just loading in the SDL framework isn't enough to run an SDL app. Whatever SDL_main is doing needs to be done by Derelict as well. I find that rather poor design. IMO SDL_main should only be a convenience, not a necessity, and any setup should be handled in SDL_Init. But, nothing I can do about that.
> 
> Derelict should be playing nice with GDC. Anders submitted a patch a while ago to make it do so. I suppose it's working, because the last time someone tried to get Derelict up and running on the Mac they got things compiling (then got bit by the SDL_main problem).
> 
> The only other concern is Bud. If Bud isn't working on the Mac, then that means we'll need a Makefile system to build the Derelict libs. So a priority of anyone getting working on Macifying Derelict should be to get Bud functioning first.
> 
> As you can see, it's a bit of an involved task :)

Grrrrreeaat. =)

I'll at least install gdc on my powerbook and play around, see if something useful comes of it.

O.
« First   ‹ Prev
1 2