45 lines
1.7 KiB
C
45 lines
1.7 KiB
C
#define use_fatal_failure
|
|
#define use_png_library
|
|
#define use_raptor_renderer
|
|
//~#define use_common_renderer
|
|
//~#define use_opengl_renderer
|
|
//~#define use_vulkan_renderer
|
|
|
|
#include <xolatile/xtandard.h>
|
|
#include <xolatile/xormat.h>
|
|
#include <xolatile/xross.h>
|
|
#include <xolatile/xui.h>
|
|
|
|
int main (void) {
|
|
cross_structure * cross = cross_initialize (30, 3);
|
|
ui_structure * ui = ui_initialize (cross);
|
|
|
|
cross_configure (cross, 640, 480, "Xaptor - File Manager");
|
|
|
|
while (cross->active == true) {
|
|
uint offset = 48;
|
|
|
|
cross_synchronize (cross, 0x00000000);
|
|
|
|
ui_render_window (cross, ui, 0, 0, cross->window_width, cross->window_height);
|
|
|
|
ui_render_status (cross, ui, offset, offset, cross->window_width - 2 * offset, cross->window_height - 2 * offset);
|
|
|
|
cross_render_string (cross, "Xaptors are coming!", 0, 2 * offset, 2 * offset, 1.5f, 0x4488ccff);
|
|
|
|
cross_render_string (cross, format ("%i", cross->framerate), 0, 2 * offset, 3 * offset, 1.0f, 0x4488ccff);
|
|
cross_render_string (cross, format ("%i", cross->global_tick), 0, 2 * offset, 4 * offset, 1.0f, 0x4488ccff);
|
|
cross_render_string (cross, format ("%i", cross->gameplay_tick), 0, 2 * offset, 5 * offset, 1.0f, 0x4488ccff);
|
|
cross_render_string (cross, format ("%i", cross->animation_tick), 0, 2 * offset, 6 * offset, 1.0f, 0x4488ccff);
|
|
cross_render_string (cross, format ("%i", cross->cursor_x), 0, 2 * offset, 7 * offset, 1.0f, 0x4488ccff);
|
|
cross_render_string (cross, format ("%i", cross->cursor_y), 0, 2 * offset, 8 * offset, 1.0f, 0x4488ccff);
|
|
|
|
if (cross->signal [signal_q] == true) break;
|
|
}
|
|
|
|
cross = cross_deinitialize (cross);
|
|
ui = ui_deinitialize (ui);
|
|
|
|
return (log_success);
|
|
}
|