cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
SDL LoadBMP from seperate cpp?
SDL LoadBMP from seperate cpp?
Oct 27, 2009 at 10:04pm UTC
newb00
(1)
I am looking for a way to load a Bitmap from a CPP that is separate from the main CPP.
I have searched Google for quite sometime and haven't found anything... or at least nothing I can understand. There must be a simple way to do this, yes?
Any help would be appreciated.
Oct 27, 2009 at 11:14pm UTC
Bazzy
(6281)
It isn't different from loading it on your main file...
Oct 27, 2009 at 11:26pm UTC
DrChill
(574)
Yes it is just:
1
2
3
4
5
#include <SDL/SDL.h>
//or
#include <SDL>
//or
#include <SDL.h>
Oct 28, 2009 at 1:21am UTC
helios
(17574)
No, it isn't. Also, no:
#include <SDL>
Last edited on
Oct 28, 2009 at 1:21am UTC
Oct 28, 2009 at 5:43pm UTC
Duthomhas
(13206)
http://www.libsdl.org/faq.php?action=listentries&category=2#19
#include "SDL.h"
It does not matter where you load your bitmap. If it is part of your program, then your program can have access to it.
Hope this helps.
Topic archived. No new replies allowed.