Annotation of previous/src/dimension/nd_sdl.h, revision 1.1.1.1

1.1       root        1: #include <SDL.h>
                      2: #include <SDL_thread.h>
                      3: 
                      4: #pragma once
                      5: 
                      6: #ifndef __ND_SDL_H__
                      7: #define __ND_SDL_H__
                      8: 
                      9: #ifdef __cplusplus
                     10: extern "C" {
                     11: #endif
                     12: 
                     13:     extern const int DISPLAY_VBL_MS;
                     14:     extern const int VIDEO_VBL_MS;
                     15:     extern const int BLANK_MS;
                     16: 
                     17:     typedef SDL_SpinLock       lock_t;
                     18:     typedef SDL_Thread         thread_t;
                     19:     typedef SDL_ThreadFunction thread_func_t;
                     20: 
                     21:     void      nd_sdl_init();
                     22:     void      nd_sdl_uninit();
                     23:     void      nd_sdl_destroy();
                     24: 
                     25:     void      lock(lock_t* lock);
                     26:     void      unlock(lock_t* lock);
                     27:     void      checklock(lock_t* lock);
                     28:     int       trylock(lock_t* lock);
                     29:     Uint32    time_ms();
                     30:     void      sleep_ms(Uint32 ms);
                     31:     thread_t* thread_create(thread_func_t, void* data);
                     32:     int       thread_wait(thread_t* thread);
                     33:     
                     34: #ifdef __cplusplus
                     35: }
                     36: #endif
                     37:     
                     38: #endif /* __ND_SDL_H__ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.