repo.or.cz
/
SoftCat.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
First attempt of defining the main arch.
[SoftCat.git]
/
SoftCat
/
SCLoader.cpp
blob
d96f4855ad24d03d6f1147b9df024f523e1f3b89
1
#include
"SCLoader.h"
2
3
namespace
SC
{
4
SCLoader
::
SCLoader
() {
5
// initialize the video subsystem
6
if
(
SDL_Init
(
SDL_INIT_VIDEO
) <
0
) {
7
//TODO: BETTER ERROR HANDLING?
8
printf
(
"Unable to initialize SDL: %s
\n
"
,
SDL_GetError
());
9
exit
(
EXIT_FAILURE
);
10
}
11
}
12
13
SCLoader
::~
SCLoader
() {
14
SDL_Quit
();
15
}
16
};
17