Changeset 840
- Timestamp:
- Aug 20, 2011, 11:28:53 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r802 r840 70 70 fi 71 71 72 dnl No exceptions 73 CXXFLAGS="${CXXFLAGS} -fno-exceptions" 72 74 dnl Optimizations 73 75 CXXFLAGS="${CXXFLAGS} ${REL} ${OPT}" … … 76 78 77 79 AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm") 80 81 82 dnl Are we on the PS3? 83 AC_CHECK_LIB(sysmodule_stub, cellSysmoduleLoadModule, 84 [LOL_LIBS="${LOL_LIBS} -lsysmodule_stub -lsysutil_stub -lresc_stub" 85 dnl For PSGL 86 AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available) # FIXME: hack 87 GL_LIBS="${GL_LIBS} -lPSGL -lgcm_cmd -lgcm_sys_stub" 88 if test "x${enable_debug}" = xyes; then 89 GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/debug" 90 elif test "x${enable_release}" = xyes; then 91 GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/ultra-opt" 92 else 93 GL_LIBS="${GL_LIBS} -L${CELL_SDK}/target/ppu/lib/PSGL/RSX/opt" 94 fi 95 dnl For the runtime Cg compiler 96 GL_LIBS="${GL_LIBS} -lcgc -lPSGLcgc" 97 dnl For the PNG decoder 98 LOL_LIBS="${LOL_LIBS} -lpngdec_stub" 99 dnl For the pad library 100 LOL_LIBS="${LOL_LIBS} -lio_stub -lusbd_stub -lpadfilter" 101 AC_PATH_PROG(MAKE_FSELF, make_fself, no) 102 AM_CONDITIONAL(USE_MAKE_FSELF, test "${MAKE_FSELF}" != "no")]) 103 78 104 79 105 dnl Which version of OpenGL to use? … … 96 122 [glLoadIdentity();], 97 123 [ac_cv_my_have_gl="yes" 98 AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available) # FIXME: hack y124 AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available) # FIXME: hack 99 125 AC_MSG_RESULT(yes) 100 126 GL_LIBS="-lopengl32"], 101 127 [AC_MSG_RESULT(no)]) 102 128 LIBS="$LIBS_save"]) 129 AC_CHECK_HEADER(PSGL/psgl.h, 130 [ac_cv_my_have_gl="yes"]) 103 131 if test "${ac_cv_my_have_gl}" = "no"; then 104 132 AC_MSG_ERROR([[No OpenGL or OpenGL ES implementation found]]) … … 136 164 LIBS="${save_LIBS}" 137 165 138 dnl Use SDL? (always required )166 dnl Use SDL? (always required on Linux or Win32) 139 167 ac_cv_my_have_sdl="yes" 140 168 AC_PATH_PROG(SDL_CONFIG, sdl-config, no) 141 if test "${SDL_CONFIG}" != "no" ; then169 if test "${SDL_CONFIG}" != "no" -a "x$cross_compiling" != xyes; then 142 170 SDL_CFLAGS="${SDL_CFLAGS} `sdl-config --cflags`" 143 171 SDL_LIBS="${SDL_LIBS} `sdl-config --libs`" … … 160 188 CPPFLAGS="${save_CPPFLAGS}" 161 189 if test "${ac_cv_my_have_sdl}" = "no"; then 162 AC_MSG_ ERROR([[One of SDL, SDL_Image or SDL_Mixer not found]])190 AC_MSG_WARN([[One of SDL, SDL_Image or SDL_Mixer not found]]) 163 191 else 164 192 AC_DEFINE(USE_SDL, 1, Define to 1 to use SDL) -
trunk/deushax/Makefile.am
r785 r840 10 10 deushax_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ 11 11 deushax_DEPENDENCIES = $(top_builddir)/src/liblol.a 12 13 if USE_MAKE_FSELF 14 all-local: deushax$(EXEEXT) 15 make_fself deushax$(EXEEXT) deushax.self 16 clean-local: 17 rm -f deushax.self 18 endif 12 19 13 20 if USE_GTKGL -
trunk/deushax/debugsprite.cpp
r792 r840 12 12 #include "core.h" 13 13 14 using namespace std; 14 15 using namespace lol; 15 16 -
trunk/monsterz/Makefile.am
r754 r840 10 10 monsterz_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ 11 11 monsterz_DEPENDENCIES = $(top_builddir)/src/liblol.a 12 13 if USE_MAKE_FSELF 14 all-local: monsterz$(EXEEXT) 15 make_fself monsterz$(EXEEXT) monsterz.self 16 clean-local: 17 rm -f monsterz.self 18 endif 12 19 13 20 EXTRA_DIST = $(PNG) $(WAV) -
trunk/src/ps3app.cpp
r820 r840 95 95 PSGLcontext *ctx = psglCreateContext(); 96 96 psglMakeCurrent(ctx, psgl); 97 psglLoadShaderLibrary(REMOTE_PATH "/shaders.bin"); 97 /* TODO: load our shaders when we actually ship them */ 98 //psglLoadShaderLibrary("/shaders.bin"); 98 99 psglResetCurrentContext(); 99 100 -
trunk/src/sdlinput.cpp
r781 r840 13 13 #endif 14 14 15 #include <SDL.h> 15 #if defined USE_SDL 16 # include <SDL.h> 17 #endif 16 18 17 19 #include "core.h" … … 40 42 : data(new SdlInputData()) 41 43 { 44 #if defined USE_SDL 42 45 SDL_Init(SDL_INIT_TIMER); 43 46 44 47 gamegroup = GAMEGROUP_BEFORE; 48 #endif 45 49 } 46 50 47 51 void SdlInput::TickGame(float deltams) 48 52 { 53 #if defined USE_SDL 49 54 Entity::TickGame(deltams); 50 55 … … 89 94 Input::KeyPressed(i, deltams); 90 95 #endif 96 #endif 91 97 } 92 98 … … 100 106 vec2i ret(-1, -1); 101 107 108 #if defined USE_SDL 102 109 if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) 103 110 { … … 105 112 ret.y = Video::GetSize().y - 1 - ret.y; 106 113 } 114 #endif 107 115 return ret; 108 116 }
Note: See TracChangeset
for help on using the changeset viewer.