src = $(wildcard src/*.c) $(wildcard src/modern/*.c) $(gawsrc_$(build_gfx))
obj = $(src:.c=.o)
dep = $(src:.c=.d)
-bin = retrorend
+bin = retroray
warn = -pedantic -Wall
dbg = -g
dtx_target_user(txdraw, 0);
uifont = malloc_nf(sizeof *uifont);
- if(load_font(uifont, "data/uifont.gmp") == -1) {
+ if(load_font(uifont, "data/uifont12.gmp") == -1) {
free(uifont);
return -1;
}
int main(int argc, char **argv)
{
glutInit(&argc, argv);
- glutInitWindowSize(1024, 768);
+ glutInitWindowSize(640, 480);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
glutCreateWindow("RetroRay");
#define DEF_XRES 640
#define DEF_YRES 480
#define DEF_VSYNC 1
-#define DEF_FULLSCR 1
+#define DEF_FULLSCR 0
#define DEF_MOUSE_SPEED 50
#define DEF_SBALL_SPEED 50
--- /dev/null
+#ifndef RTK_H_
+#define RTK_H_
+
+enum { RTK_ANY, RTK_WIN, RTK_BUTTON, RTK_LABEL, RTK_CHECKBOX, RTK_SLIDER };
+
+typedef struct rtk_any {
+ int type;
+ int x, y, width, height;
+ char *text;
+} rtk_any, rtk_label;
+
+typedef union rtk_widget {
+ int type;
+ rtk_any any;
+ rtk_window win;
+ rtk_button bn;
+ rtk_label lb;
+ rtk_checkbox chk;
+} rtk_widget;
+
+rtk_widget *rtk_create_window(rtk_widget *par, int x, int y, int w, int h);
+
+#endif /* RTK_H_ */
--- /dev/null
+#!/bin/sh
+
+genglyphmap()
+{
+ echo "generate glyphmap: $1 -> $2"
+ font2glyphmap -size $3 -padding 5 -range $4 -o $2 $1
+}
+
+genglyphmap data/src/sans.ttf data/uifont12.gmp 12 32-128
+
+exit 0