src/SAL.h

00001 /*
00002     SAL - Simple Application Library
00003     Copyright (C) 2006-2006 Kronon
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019     Kronon
00020     kronon88@users.sourceforge.net
00021 */
00022 
00023 //SAL main file 
00024 //Created by Kronon
00025 
00026 #ifndef SAL_ENGINE_H
00027 #define SAL_ENGINE_H
00028 
00029 //System lib's
00030 #include "stdlib.h"
00031 #include <iostream>
00032 #include <fstream>
00033 #include <vector>
00034 
00035 //SDL lib's
00036 #include "SDL/SDL.h"
00037 #include "SDL/SDL_loadso.h"
00038 
00039 //3th party SDL lib's
00040 #include "SDL/SDL_image.h"
00041 #include "SDL/SDL_ttf.h"
00042 
00043 //SAL headers
00044 #include "global/SAL_list.h"
00045 #include "global/SAL_console.h"
00046 
00047 
00048 //All headers that need to be used by the program
00049 #include "SAL_draw.h"
00050 
00051 using namespace std;
00052 
00053 //Defaults
00054 
00055 #include "global/SAL_dtree.h"
00056 
00057 //SAL header's
00058 // #include "SAL_button.h"
00059 // #include "SAL_input_box.h"
00060 
00061 #include "SAL_config.h"
00062 #include "SAL_eventhandler.h"
00063 #include "SAL_render.h"
00064 #include "SAL_network.h"
00065 
00066 int SAL(const char* window_name, int width, int height,int depth,int refresh_rate, bool full_screen);
00067 
00068 //Loading
00069 SDL_Surface* salLoadImage(const char* url);
00070 
00071 //Misc
00072 int SAL_computer_info(void);
00073 int SAL_load_library(const char* name, void*& lib);
00074 SDL_Color salTranslateColor(Uint32 int_color);
00075 
00076 //Quit SAL
00077 void salStop(void);
00078 void SAL_quit(void);
00079 
00080 #endif