1 /** 2 * @file liblegacy.c 3 * Main interface. 4 * 5 * @authors Copyright (c) 2012-2017 Jaakko Keränen <jaakko.keranen@iki.fi> 6 * 7 * @par License 8 * GPL: http://www.gnu.org/licenses/gpl.html 9 * 10 * <small>This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by the 12 * Free Software Foundation; either version 2 of the License, or (at your 13 * option) any later version. This program is distributed in the hope that it 14 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 16 * Public License for more details. You should have received a copy of the GNU 17 * General Public License along with this program; if not, write to the Free 18 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19 * 02110-1301 USA</small> 20 */ 21 22 #include "de/liblegacy.h" 23 #include "de/binangle.h" 24 #include "de/concurrency.h" 25 #include "de/timer.h" 26 #include "de/texgamma.h" 27 #include "memoryzone_private.h" 28 29 #include <stdlib.h> 30 #include <de/Garbage> 31 Libdeng_Init(void)32void Libdeng_Init(void) 33 { 34 R_BuildTexGammaLut(0.f); 35 bamsInit(); 36 Timer_Init(); 37 Z_Init(); 38 } 39 Libdeng_Shutdown(void)40void Libdeng_Shutdown(void) 41 { 42 Z_Shutdown(); 43 Timer_Shutdown(); 44 } 45 Libdeng_BadAlloc(void)46void Libdeng_BadAlloc(void) 47 { 48 exit(-1); 49 } 50