This topic is 5129 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

all i want to know is how you specify that a bitmap is in a seprate folder using the SDL_LoadBMP() macro thanks[smile]

Share on other sites
SDL_LoadBMP takes a filename, does it not? And this filename, it can be a fully specified or even relative path, can it not?

Share on other sites
the '..' puts you back to the root directory, say if you game was in the /bin directory.
the '//' is the escape code for a forward slash. kinda like '/n'.

Share on other sites
Quote:
 Original post by PnP Biosthe '..' puts you back to the root directory...
No. .. moves you up one directory. To jump to root, start the path with / or \\.

Quote:
 the '//' is the escape code for a forward slash.
No. You don't need to escape forward slash, only backward slash, and only because the backslash character initiates an escape sequence.

For instance, that would be \n.

Share on other sites

so that SHOULD be a vaild path? (yes those folders and that file exists in the directory im using) thanks for the replys

Share on other sites
Quote:
 Original post by raptorstrikeI_Player[0][0] = SDL_LoadBMP("BMPs//Player//Player_UL.bmp"); so that SHOULD be a vaild path? (yes those folders and that file exists in the directory im using) thanks for the replys

I_Player[0][0] = SDL_LoadBMP("BMPs/Player/Player_UL.bmp");
Works with me.

1. 1
2. 2
Rutin
17
3. 3
4. 4
5. 5

• 26
• 10
• 11
• 9
• 9
• Forum Statistics

• Total Topics
633717
• Total Posts
3013510
×