Changeset 5215
- Timestamp:
- Apr 17, 2008, 1:16:56 PM (17 years ago)
- Location:
- anuga_work/development/anugavis
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anugavis/configure.ac
r5200 r5215 10 10 # Checks for programs. 11 11 AC_PROG_CC 12 AC_PROG_RANLIB 13 AC_LIBTOOL_WIN32_DLL 14 AC_PROG_LIBTOOL 12 15 13 16 # Checks for libraries. 14 AX_CHECK_GLUT 17 AX_CHECK_GL 18 AC_SEARCH_LIBS([SDL_Init], [SDL], [], 19 [AC_MSG_ERROR([Can't link against the SDL library. (LDFLAGS?)])]) 15 20 16 21 # Checks for header files. 22 AC_CHECK_HEADER([SDL.h], [], 23 [AC_MSG_ERROR([Can't find the SDL header. (Check CPPFLAGS?)])]) 17 24 18 25 # Checks for typedefs, structures, and compiler characteristics. 26 AC_C_CONST 19 27 20 28 # Checks for library functions. -
anuga_work/development/anugavis/src/Makefile.am
r5200 r5215 1 include_HEADERS = anugavis.h 2 3 lib_LTLIBRARIES = libanugavis.la 4 libanugavis_la_SOURCES = anugavis.h error.c init.c 5 libanugavis_la_LDFLAGS = -no-undefined -version-info 1:0:0 -
anuga_work/development/anugavis/src/anugavis.h
r5200 r5215 2 2 #define ANUGAVIS_H 3 3 4 extern int AnugaVis_Init(void); 5 extern void AnugaVis_DeInit(void); 6 7 extern char* AnugaVis_GetError(void); 8 extern void AnugaVis_SetError(const char *format, ...); 9 4 10 #endif -
anuga_work/development/anugavis/src/init.c
r5214 r5215 3 3 4 4 int AnugaVis_Init(void){ 5 if(SDL_Init(SDL_INIT_VIDEO) == -1) return -1; 5 if(SDL_Init(SDL_INIT_VIDEO) == -1){ 6 AnugaVis_SetError("SDL Error: %s", SDL_GetError()); 7 SDL_ClearError(); 8 return -1; 9 } 6 10 } 7 11
Note: See TracChangeset
for help on using the changeset viewer.