Jump to content
  • Advertisement
Sign in to follow this  
Synt4x

dont understand what the ':' does

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

Im doing Aaron Cox's tutorials and in this constructor, he has the : and then adds 4 more things, can somebody please explain to me what this is called and what it does/is doing. Thank you very much for any help you can offer, // Main constructor takes location and type of block, and a pointer to our bitmap surface. cSquare(int x, int y, SDL_Surface* bitmap, BlockType type) : m_CenterX(x), m_CenterY(y), m_Bitmap(bitmap), m_BlockType(type) { } -Karakadin

Share this post


Link to post
Share on other sites
Advertisement
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!