EDIT: Also came across another problem, in SDL for my game I am trying to organize my art into files so how do I load something in a file path because,
SDL_LoadBMP("BlackJack/Art/Table.png");
is not working!
SDL_LoadBMP("BlackJack/Art/Table.png");
So I am just getting started in Game development, and I have been watching some dev marathons, and I noticed they have multiple .cpp files?
I already know about header files and they are all incorparated into main.cpp[/quote]
This is not necessary in the least.
but what is the point of multiple .cpp files? Can you add them all to the main.cpp file whats the difference between the .cpp and .h? Please explain in detail.
[/quote]
.cpp is a "source file" and is compiled and linked automatically by an IDE.
The point in having multiple is that it's easier to manage your code if it's split up in an orderly fashion.
So I am just getting started in Game development, and I have been watching some dev marathons, and I noticed they have multiple .cpp files? I already know about header files and they are all incorparated into main.cpp but what is the point of multiple .cpp files? Can you add them all to the main.cpp file whats the difference between the .cpp and .h? Please explain in detail.
EDIT: Also came across another problem, in SDL for my game I am trying to organize my art into files so how do I load something in a file path because,
SDL_LoadBMP("BlackJack/Art/Table.png");
is not working!
[quote name='jakobnator' timestamp='1304133567' post='4804635']
EDIT: Also came across another problem, in SDL for my game I am trying to organize my art into files so how do I load something in a file path because,
SDL_LoadBMP("BlackJack/Art/Table.bmp");
is not working!
("BlackJack/Art/Table.bmp");
[quote name='nfries88' timestamp='1304135893' post='4804645']
[quote name='jakobnator' timestamp='1304133567' post='4804635']
EDIT: Also came across another problem, in SDL for my game I am trying to organize my art into files so how do I load something in a file path because,
SDL_LoadBMP("BlackJack/Art/Table.bmp");
is not working!
("BlackJack/Art/Table.bmp");