Changeset 5215


Ignore:
Timestamp:
Apr 17, 2008, 1:16:56 PM (15 years ago)
Author:
jack
Message:

Removed ax_check_glut.m4 as we use SDL and not GLUT.
Added basic initialisation funcs.

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  
    1010# Checks for programs.
    1111AC_PROG_CC
     12AC_PROG_RANLIB
     13AC_LIBTOOL_WIN32_DLL
     14AC_PROG_LIBTOOL
    1215
    1316# Checks for libraries.
    14 AX_CHECK_GLUT
     17AX_CHECK_GL
     18AC_SEARCH_LIBS([SDL_Init], [SDL], [],
     19               [AC_MSG_ERROR([Can't link against the SDL library. (LDFLAGS?)])])
    1520
    1621# Checks for header files.
     22AC_CHECK_HEADER([SDL.h], [],
     23                [AC_MSG_ERROR([Can't find the SDL header. (Check CPPFLAGS?)])])
    1724
    1825# Checks for typedefs, structures, and compiler characteristics.
     26AC_C_CONST
    1927
    2028# Checks for library functions.
  • anuga_work/development/anugavis/src/Makefile.am

    r5200 r5215  
     1include_HEADERS = anugavis.h
     2
     3lib_LTLIBRARIES = libanugavis.la
     4libanugavis_la_SOURCES = anugavis.h error.c init.c
     5libanugavis_la_LDFLAGS = -no-undefined -version-info 1:0:0
  • anuga_work/development/anugavis/src/anugavis.h

    r5200 r5215  
    22#define ANUGAVIS_H
    33
     4extern int AnugaVis_Init(void);
     5extern void AnugaVis_DeInit(void);
     6
     7extern char* AnugaVis_GetError(void);
     8extern void AnugaVis_SetError(const char *format, ...);
     9
    410#endif
  • anuga_work/development/anugavis/src/init.c

    r5214 r5215  
    33
    44int 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  }
    610}
    711
Note: See TracChangeset for help on using the changeset viewer.