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 | |
---|---|
File size: 261 bytes |
Line | |
---|---|
1 | #include <SDL.h> |
2 | #include "anugavis.h" |
3 | |
4 | int 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 | |
12 | void AnugaVis_DeInit(void){ |
13 | SDL_Quit(); |
14 | } |
Note: See TracBrowser
for help on using the repository browser.