| | |
| | | humble_demo_ended(); |
| | | } |
| | | |
| | | void setPlayerVolume(float volume, void* data) |
| | | { |
| | | std::cout << "Adjusting volume to " << volume << "\n"; |
| | | } |
| | | |
| | | void setPlayerFullscreen(int fullscreen, void* data) |
| | | { |
| | | std::cout << "Adjusting display to " << (fullscreen ? "fullscreen" : "windowed") << "\n"; |
| | | } |
| | | |
| | | int main(int argc, char * argv[]) |
| | | { |
| | | std::cout << "Welcome Main\n"; |
| | | // call dummy function to init cloud |
| | | humble_init(); |
| | | humble_set_callback(HUMBLE_API_CALLBACK_SET_PLAYER_VOLUME, (void*)&setPlayerVolume, NULL); |
| | | humble_set_callback(HUMBLE_API_CALLBACK_SET_PLAYER_FULLSCREEN, (void*)&setPlayerFullscreen, NULL); |
| | | |
| | | int w, h; |
| | | int ret = humble_get_player_size(&w, &h); |