Jump to content
  • Advertisement
Sign in to follow this  
DigiMan Shart

Make an executable icon with SDL

This topic is 3559 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

I haven't really seen this mentioned anywhere, so I thought this might be a good place to ask. Is there a way to create an icon for the executable (.exe) of my program using SDL. I mean the actual image you click on to launch the executable, not the image at the top left of the window of the application, I already know SDL_WM_SetIcon does that. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Add a resource file to your project. If you're using the express edition of visual studio, you'll have to make it yourself. Just create a file with the .rc extension. Use a text editor to add

1 ICON "icon.ico"

Then it's just a matter of adding the resource to your project and compiling.

Share this post


Link to post
Share on other sites
On Windows XP you can simply right-click on the executable file and go to properties. Then on the "Icon" tab you can simply drag and drop the .ico file onto the text field. Be sure to click on "Apply" when you're done.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!