Esempio n. 1
0
static void Key(unsigned char key, int x, int y)
{
    switch (key) {
      case 27:
	exit(1);
      case 'Z':
	zoom /= 0.75;
	break;
      case 'z':
	zoom *= 0.75;
	break;
      case 'f':
	DoFeedback();
	break;
      case 'd':
	DrawZoom(x, y);
	break;
      case 'l':
	linePoly = !linePoly;
	if (linePoly) {
	    glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
	} else {
	    glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
	}
	break;
      default:
	return;
    }

    glutPostRedisplay();
}
Esempio n. 2
0
/*!	\brief Sets the zoom button's value.

	Note that this does not update the button's look - it just updates the
	internal button value

	\param is_down Whether the button is down or not
*/
void
Decorator::SetZoom(bool pressed)
{
	if (pressed != fZoomPressed) {
		fZoomPressed = pressed;
		DrawZoom();
	}
}
void DrawZoomAlpha(const CharParamPtrX& char_param)
{
	char_param->AddAlpha(0);
	kvarco::SetDrawBlendModeLight(DX_BLENDMODE_ALPHA,char_param->alpha_);
	DrawZoom(char_param,char_param->trans_,true);
}