ljfox4's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Active Members
Active Posts:
67 (0.03 per day)
Joined:
10-February 07
Profile Views:
3,630
Last Active:
User is offline Mar 22 2013 10:44 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
Nintendo
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   ljfox4 has not set their status

Posts I've Made

  1. In Topic: Beginning SDL - Part 3 - A Sprite/Drawing Class

    Posted 18 May 2012

    Wonderful tutorial so far. Quick question, however. What is the advantage of static member functions over normal ones?

    Instead of this:

     static   bool   Draw(SDL_Surface* dest, SDL_Surface* src, int x, int y);
    
    


    Could you do this?

    //removed src parameter
    bool   Draw(SDL_Surface* dest, int x, int y);
    
    


    And the object already knows that it is itself that it wants to draw. So my question I suppose is why do it static?


    EDIT:
    I always realize these things AFTER I post. The class doesn't actually hold the info. Just loads it. Got it. Never mind.
  2. In Topic: Looking for advice concerning attached Connect Four program.

    Posted 18 May 2012

    Ah. I see what you're saying. My main thing though is that I want to make sure it's sane so to speak. I want to be able to easily expand on it. Actually though, I just found stayscrisp's SDL tutorial and it happens to cover some of the stuff I'm looking to be sure of. I'm going to read through it for some pointer on my structure.
  3. In Topic: Looking for advice concerning attached Connect Four program.

    Posted 18 May 2012

    It is working as far as I know. Did it not work for you?
  4. In Topic: Looking for advice concerning attached Connect Four program.

    Posted 17 May 2012

    Ah. I see what I did wrong. The code should be attached now.
  5. In Topic: Looking for advice concerning attached Connect Four program.

    Posted 17 May 2012

    Hm. That's weird. I'm at work right now. I'll check what happened when I get home. I did have the code attached in a tar.gz.

My Information

Member Title:
D.I.C Head
Age:
22 years old
Birthday:
July 28, 1991
Gender:
Location:
Oak Hill, West Virginia
Interests:
Programming, Ocarina, Bowling, Learning German
Years Programming:
7
Programming Languages:
C++, PHP

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  ljfox4@goowy.com
Website URL:
Website URL  http://
ICQ:
ICQ  179422154

Friends

ljfox4 hasn't added any friends yet.

Comments

ljfox4 has no profile comments yet. Why not say hello?