Sign in to follow this  

SDL Tutorial 3c is out.

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This one covers mouse input. Clicky to my site is in the signiture. Let me know how you guys like it and if the code runs ok. I checked it all my self, but again, sometimes errors can slip through.

Share this post


Link to post
Share on other sites
Source code font is huge, it's hard to read. What I really would like is more detailed explanations of all functions covering one area of SDL, for example mouse functions. Examples in this tutorial can be found in SDL doc files... I think tutorials should answer to question "why" and not just "how".

Share this post


Link to post
Share on other sites
Like I state in the introduction, this tutorial series is focused on the API. So alot of it is going to look like a regurgitation of the doc files. And I have no problem with that.

Not to be rude, but can you be more specific about what you mean about 'the why?' I mean, come on, its a mouse. I don't know if you bothered, but there was a zip file on the bottom of the page that contained some very detailed source code and the resources to use with it.

As for the source font size, its set to your browser's default. When I have done other tutorials, I have been bashed for having it too small.

Thanks for bothering to read it though!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I'm not quiet shure, but I think that SDL will only give you hardware surface and doublebuffering if your app runs in fullscreen mode. So passing SDL_HWSURFACE | SDL_DOUBLEBUF will only make sense if you add SDL_FULLSCREEN, too.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Atleast on Windows you don't get double buffering in windowed mode. It doesn't really matter, because SDL_Flip just calls SDL_UpdateRect if double buffering is off. So, it's not really important.

Share this post


Link to post
Share on other sites

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this