|
Neue Engine Features |
Top Previous Next |
|
Multi Monitor Unterstützung
Die Kommandozeilenoption "-mon" erlaubt es, den gewünschten Monitor für den Output zu wählen, falls es mehrere gibt.
main.c -mon1 -> runs the project on the first monitor main.c -mon2 -> runs the project on the second monitor
Neue Panel Events
Penel Events können nun auch mit der rechten Maustaste aktiviert werden.
BMAP* pointer_tga = "pointer.tga";
function mouse_startup() { enable_mouse = 2; // allow right click events to be triggered mouse_mode = 2; mouse_map = pointer_tga; while (1) { vec_set(mouse_pos, mouse_cursor); wait(1); } }
function click_me() { if (event_type == EVENT_CLICK) printf("Left mouse click!"); if (event_type == EVENT_RIGHTCLICK) printf("Right mouse click!"); }
PANEL* test_pan = { pos_x = 100; pos_y = 20; bmap = "mypanel.pcx"; event = click_me; flags = VISIBLE; }
draw_box3d
Zeichnet eine Wireframebox parallel zu den Koordinatenachsen, die durch zwei gegenüberliegende Eckpunkte spezifiziert ist.
function drawboxes_startup() // draw random boxes with random colors at x = -300...300, y = -300...300, z = 100...300 { VECTOR corner1, corner2; while (1) { vec_set(corner1.x, vector(300 - random(600), 300 - random(600), 100 + random(200))); vec_set(corner2.x, vector(300 - random(600), 300 - random(600), 100 + random(200))); draw_box3d(corner1, corner2, vector(random(255), random(255), random(255)), 100); wait (1); } }
|