4 SDL_Window* sdl_getwindow();
6 void sdl_close(int sig);
9 char * sdl_pixels_lock();
10 void sdl_pixels_unlock();
23 frame(size_t height_, size_t width_){
24 framebuffer = (rgb*)sdl_pixels_lock();
31 rgb* operator[](const size_t h) {return framebuffer+h*width; }
32 const rgb* operator[](const size_t h) const {return framebuffer+h*width; }
34 void sdl_text(char * str);
35 #endif //__SDL_FUNC_H__