Should now build under Linux.
This commit is contained in:
parent
bfd4597afa
commit
ff80e60879
@ -9,7 +9,9 @@
|
|||||||
# $HeadURL$
|
# $HeadURL$
|
||||||
# $Revision$
|
# $Revision$
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.6)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
|
|
||||||
|
project (TINES)
|
||||||
|
|
||||||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
|
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
|
||||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||||
@ -19,6 +21,4 @@ find_package(OpenGL REQUIRED)
|
|||||||
|
|
||||||
include_directories(${OPENGL_INCLUDE_DIR})
|
include_directories(${OPENGL_INCLUDE_DIR})
|
||||||
|
|
||||||
project (TINES)
|
|
||||||
|
|
||||||
add_subdirectory (src)
|
add_subdirectory (src)
|
||||||
|
|||||||
@ -11,4 +11,4 @@
|
|||||||
|
|
||||||
add_library(oslib loadfile.c graphics.c sound.c io.c)
|
add_library(oslib loadfile.c graphics.c sound.c io.c)
|
||||||
|
|
||||||
target_link_libraries(oslib glfw ${OPENGL_glu_LIBRARY})
|
target_link_libraries(oslib glfw ${OPENGL_glu_LIBRARY} ${OPENGL_gl_LIBRARY})
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#include <os_dependent.h>
|
#include <os_dependent.h>
|
||||||
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <OpenGL/glext.h>
|
//#include <OpenGL/glext.h>
|
||||||
|
|
||||||
#include <palette.h>
|
#include <palette.h>
|
||||||
|
|
||||||
@ -433,4 +433,4 @@ int graphics_blit(long x, long y, long w, long h)
|
|||||||
int getKeyStatus(int key)
|
int getKeyStatus(int key)
|
||||||
{
|
{
|
||||||
return mainWindow.keyArray[key].curState;
|
return mainWindow.keyArray[key].curState;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Allegro includes */
|
/* Allegro includes */
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#define USE_CONSOLE
|
#define USE_CONSOLE
|
||||||
@ -367,3 +368,4 @@ void ppu_dumpPalette(int x, int y)
|
|||||||
rectfill(Buffer, x + 91 + (i % 4) * 20, y + 21 +(i / 4) * 20, x + 91 + (i % 4) * 20 + 20, y + 21 +(i / 4) * 20 + 20, ppu_readMemory(0x3F, i+0x10));
|
rectfill(Buffer, x + 91 + (i % 4) * 20, y + 21 +(i / 4) * 20, x + 91 + (i % 4) * 20 + 20, y + 21 +(i / 4) * 20 + 20, ppu_readMemory(0x3F, i+0x10));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user