45 lines
887 B
Objective-C
45 lines
887 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#include <kinc/display.h>
|
|
#include <kinc/log.h>
|
|
|
|
void kinc_display_init(void) {}
|
|
|
|
kinc_display_mode_t kinc_display_available_mode(int display, int mode) {
|
|
kinc_display_mode_t dm;
|
|
dm.width = kinc_window_width(0);
|
|
dm.height = kinc_window_height(0);
|
|
dm.frequency = 60;
|
|
dm.bits_per_pixel = 32;
|
|
return dm;
|
|
}
|
|
|
|
int kinc_display_count_available_modes(int display) {
|
|
return 1;
|
|
}
|
|
|
|
bool kinc_display_available(int display) {
|
|
return true;
|
|
}
|
|
|
|
const char *kinc_display_name(int display) {
|
|
return "Display";
|
|
}
|
|
|
|
kinc_display_mode_t kinc_display_current_mode(int display) {
|
|
kinc_display_mode_t dm;
|
|
dm.width = kinc_window_width(0);
|
|
dm.height = kinc_window_height(0);
|
|
dm.frequency = (int)[[UIScreen mainScreen] maximumFramesPerSecond];
|
|
dm.bits_per_pixel = 32;
|
|
return dm;
|
|
}
|
|
|
|
int kinc_count_displays(void) {
|
|
return 1;
|
|
}
|
|
|
|
int kinc_primary_display(void) {
|
|
return 0;
|
|
}
|