51 lines
1.8 KiB
C
51 lines
1.8 KiB
C
/// _
|
|
/// __ _____ __ _ _ _ ___ ___ _ _| |_
|
|
/// \ \/ / _ \ / _` | | | |/ _ \/ _ \| | | | __|
|
|
/// > < (_) | (_| | |_| | __/ (_) | |_| | |_
|
|
/// /_/\_\___/ \__, |\__,_|\___|\___/ \__,_|\__|
|
|
/// |___/
|
|
///
|
|
/// Copyright (c) 1997 - Ognjen 'xolatile' Milan Robovic
|
|
///
|
|
/// xolatile@chud.cyou - xogueout - Unfun game created for the sole purpose of testing my libraries...
|
|
///
|
|
/// This program is free software, free as in freedom and as in free beer, you can redistribute it and/or modify it under the terms of the GNU
|
|
/// General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version if you wish...
|
|
///
|
|
/// This program is distributed in the hope that it will be useful, but it is probably not, and without any warranty, without even the implied
|
|
/// warranty of merchantability or fitness for a particular purpose, because it is pointless. Please see the GNU (Geenoo) General Public License
|
|
/// for more details, if you dare, it is a lot of text that nobody wants to read...
|
|
|
|
#include <xolatile/xtandard.h>
|
|
#include <xolatile/xormat/png.h>
|
|
#include <xolatile/xpengl.h>
|
|
|
|
integer main (none) {
|
|
opengl_structure * opengl = opengl_initialize (60, 60, false, 1024, 1024);
|
|
|
|
integer x = 0;
|
|
integer y = 0;
|
|
|
|
//~opengl_sprite_import (opengl, "");
|
|
|
|
opengl_configure (opengl, 640, 480, "Xogueout");
|
|
|
|
while (opengl->active == true) {
|
|
if (opengl->signal [signal_q] == true) break;
|
|
|
|
y = opengl->window_height - 64;
|
|
x = opengl->cursor_x;
|
|
|
|
x = maximum (x, 0);
|
|
x = minimum (x, opengl->window_width - 96);
|
|
|
|
opengl_render_rectangle (opengl, x, y, 96, 32, 0xff7700ff);
|
|
|
|
opengl_synchronize (opengl, 0x00000000);
|
|
}
|
|
|
|
opengl = opengl_deinitialize (opengl);
|
|
|
|
return (log_success);
|
|
}
|