handle OpenGL-callbacks for tst_gui2.c
More...
#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include "../ut/ut_umem.h"
#include "../ut/ckit_ut.h"
#include "../gui/gui__.h"
#include "tst_gui_gl2.h"
#include "tst_geo.h"
#include "trackball.h"
handle OpenGL-callbacks for tst_gui2.c
=====================================================
List_functions_start:
gl_config
List_functions_end:
=====================================================
void gl_init_trackball |
( |
int |
mode | ) |
|
int gl_move |
( |
MemObj * |
mo, |
|
|
void ** |
data |
|
) |
| |
callback from mouse-move. if mousbuttons down: rotate|zoom|pan.
int gl_button |
( |
MemObj * |
mo, |
|
|
void ** |
data |
|
) |
| |
mousebuttons changed: save state.
int gl_key |
( |
MemObj * |
mo, |
|
|
void ** |
data |
|
) |
| |
keyboard-event. Key 'B': block input.
int gl_draw |
( |
MemObj * |
mo, |
|
|
void ** |
data |
|
) |
| |
Redraw necessary. Redraw whole scene. GUI_DATA_EVENT =*(int*)data[0]=TYP_EventConfig|TYP_EventDraw GUI_DATA_DEVICE=*(int*)data[1]=TYP_DeviceScreen0 GUI_DATA_I1 =*(int*)data[2]=window-width (for event=TYP_EventConfig) GUI_DATA_I2 =*(int*)data[3]=window-height (for event=TYP_EventConfig)
Pointf mdlMax = {30.0, 30.0, 30.0} |
Pointf mdlMin = {-30.0, -30.0, -30.0} |