source: anuga_work/development/anugavis/src/init.c @ 5215

Last change on this file since 5215 was 5215, checked in by jack, 16 years ago

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

File size: 261 bytes
Line 
1#include <SDL.h>
2#include "anugavis.h"
3
4int AnugaVis_Init(void){
5  if(SDL_Init(SDL_INIT_VIDEO) == -1){
6    AnugaVis_SetError("SDL Error: %s", SDL_GetError());
7    SDL_ClearError();
8    return -1;
9  }
10}
11
12void AnugaVis_DeInit(void){
13  SDL_Quit();
14}
Note: See TracBrowser for help on using the repository browser.