Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Let's make a game in C++ (SDL,OpenGL) - Episode 2 - Window

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,957
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 15, 2011

I have decided to start a "Let's make a game" tutorial-like video series. In the series I will show you how to make a game from scratch in C++ using SDL and OpenGL.

Next video:
http://www.youtube.com/watch?v=lDLcRlDkEQk
Previous video:
http://www.youtube.com/watch?v=YoWVE5cwmP8

Episode 2 - Here we will set up the window using SDL and OpenGL. Windows users write the same code and then compile and run.

Code:
http://pastebin.com/S9GEZ9Hm

For additional info about SDL programming:
http://www.lazyfoo.net/SDL_tutorials/index.php

My blog:
http://www.redgamedevblog.blogspot.com/

My Twitter:
http://twitter.com/includeLuka

Please give feedback

Link to this comment:

Share to:

Uploader Comments (RedReaper132)

  • I also get frozen window.... it freeze for 5 second, than it exit it

  • @vydraf That's ok, continue to episode 3 to make it work normal.

  • when i compile this code i'm getting transparent, freezed window.i'm using vc++(but in code blocks effect is same as in vc++, but its making a txt file with every cout strings i used in code)

  • @kacek1444 The output in a .txt file is normal on Windows. Also the freezed window may also be normal. Check Episode 3 and then tell if it's still frozen.

  • When i run the my corde or the code from pastebin.com, ther isnt a windows ... can you help me?

  • @MrSsentoO On windows there is no SDL/. That means that #include "SDL/SDL.h" must be #include "SDL.h" on windows. Same goes for other 2.

see all

All Comments (52)

Sign In or Sign Up now to post a comment!
  • thank you so much for creating this video! :D

  • @aod6061

    i personally think VIM is better but try them both and see which one you like best ;)

  • @tHaH4x0r Thanks dude, I'll have to check it out once I play around with Linux again.

  • @aod6061

    thats EMACS.

  • @CaptainLemonPants

    If you on windows its SDL_image.h without SDL/

  • What text editor are you using for the first part of the video. I know its on Linux, or a UNIX like system. Just curious. Also cool videos dude.

  • what was that thing at first that looked like cmd?

  • @MrSsentoO you must install SDL in right folder and no needing to make changes on code..

  • am i suppose to have this linux thing? Cause i skip through and I don't have this linux thingy.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more