iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/examp/exgui.c
/* This function is an ordinary GUI proc (no GL calls)
   It manages the 3 radio buttons and determine which rendering type
   has been selected */
This function is an ordinary GUI proc (no GL calls)
It manages the 3 radio buttons and determine which rendering type
has been selected
This function is an ordinary GUI proc ( no GL calls ) It manages the 3 radio buttons and determine which rendering type has been selected
int my_radio_proc(int msg, DIALOG *d, int c)
{
	int ret, i;
	ret = d_radio_proc(msg, d, c);
	for (i = 1; i < 3; i++) {
		if (my_dialog[i].flags & D_SELECTED) {
			break;
		}
	}
	switch(i) {
		case 1:
			display_info.polygon_mode = GL_POINT;
			break;
		case 2:
			display_info.polygon_mode = GL_LINE;
			break;
		case 3:
		default:
			display_info.polygon_mode = GL_FILL;
	}
	return ret;
}
int my_radio_proc ( int msg , DIALOG * d , int c ) { int ret , i ; ret = d_radio_proc ( msg , d , c ) ; for ( i = 1 ; i < 3 ; i ++ ) { if ( my_dialog [ i ] . flags & D_SELECTED ) { break ; } } switch ( i ) { case 1 : display_info . polygon_mode = GL_POINT ; break ; case 2 : display_info . polygon_mode = GL_LINE ; break ; case 3 : default : display_info . polygon_mode = GL_FILL ; } return ret ; }
This function is an ordinary GUI proc (no GL calls)
It manages the 3 radio buttons and determine which rendering type
has been selected
This function is an ordinary GUI proc ( no GL calls ) It manages the 3 radio buttons and determine which rendering type has been selected
/* Determine which one is selected... */ /* ...and change the mode accordingly */