ShaderTool  0.1
Live tool for developing OpenGL shaders interactively
io.h
Go to the documentation of this file.
1 #ifndef IO_H
2 #define IO_H
3 
4 #include "renderer.h"
5 
6 char *basename_without_suffix(const char *filename);
7 void capture_screenshot(struct renderer_state *state);
8 void process_input(struct renderer_state *state);
9 
10 #endif /* IO_H */
process_input
void process_input(struct renderer_state *state)
Ensure the window is closed when the user presses the escape key.
Definition: io.c:86
renderer_state
Definition: renderer.h:19
basename_without_suffix
char * basename_without_suffix(const char *filename)
Return the file name without the leading directories and without the extension.
Definition: io.c:24
capture_screenshot
void capture_screenshot(struct renderer_state *state)
Capture a screenshot of the current window.
Definition: io.c:47
renderer.h