Scroll to navigation

GLXUSEXFONT() GLXUSEXFONT()

̾Á°

glXUseXFont - X ¤Î¥Õ¥©¥ó¥È¤«¤é¡¢¥Ó¥Ã¥È¥Þ¥Ã¥×¤Î¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤òÀ¸À®¤¹¤ë

½ñ¼°

void glXUseXFont( Font font,

	int first,
	int count,
	int listBase )

°ú¤­¿ô

ʸ»ú¥°¥ê¥Õ¤ò¼èÆÀ¤¹¤ë¥Õ¥©¥ó¥È¤ò»ØÄꤹ¤ë¡£
¼èÆÀ¤¹¤ëºÇ½é¤Î¥°¥ê¥Õ¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò»ØÄꤹ¤ë¡£
¼èÆÀ¤¹¤ë¥°¥ê¥Õ¤Î¿ô¤ò»ØÄꤹ¤ë¡£
À¸À®¤¹¤ëºÇ½é¤Î¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò»ØÄꤹ¤ë¡£

ÀâÌÀ

glXUseXFont ¤Ï¡¢listBase ¤«¤é listBase+count-1 ¤Ç¼¨¤µ¤ì¤ë count ¸Ä¤Î ¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤òÀ¸À®¤¹¤ë¡£¤½¤ì¤¾¤ì¤Î¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤Ï glBitmap ¥³¥Þ¥ó¥É¤ò 1 ¤Ä´Þ¤ó¤Ç¤¤¤ë¡£ ¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È listBase+i ¤Î glBitmap ¥³¥Þ¥ó¥É ¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥°¥ê¥Õ first+i ¤«¤éÆÀ¤é¤ì¤ë¡£ ¥Ó¥Ã¥È¥Þ¥Ã¥×¤Î¥Ñ¥é¥á¡¼¥¿ xorig, yorig, width, height ¤Ï¤½¤ì¤¾¤ì¡¢ ¥Õ¥©¥ó¥È¤ÎÀ£Ë¡ descent-1, -lbearing, rbearing-lbearing, ascent+descent ¤«¤é»»½Ð¤µ¤ì¤ë¡£ xmove ¤Ï¥°¥ê¥Õ¤Î width À£Ë¡¤«¤éµá¤á¤é¤ì¡¢ymove ¤Ï 0 ¤ËÀßÄꤵ¤ì¤ë¡£ ºÇ¸å¤Ë¡¢¥°¥ê¥Õ¤Î¥¤¥á¡¼¥¸¤Ï glBitmap ¤¬»È¤¨¤ëŬÀڤʷÁ¼°¤ËÊÑ´¹¤µ¤ì ¤ë¡£

glXUseXFont ¤òÍѤ¤¤ë¤Î¤Ï¡¢ÌÀ¼¨Åª¤Ë X ¤Î¥Õ¥©¥ó¥È¤Ë¥¢¥¯¥»¥¹¤·¤Æ ¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤òÀ¸À®¤¹¤ë¤Î¤ËÈæ¤Ù¤Æ¸úΨŪ¤Ç¤¢¤ë¡£¤Ê¤¼¤Ê¤é¡¢ ¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤Ï¥°¥ê¥Õ¥Ç¡¼¥¿¤Î¤ä¤ê¤È¤ê¤òɬÍפȤ·¤Ê¤¤¤Ç¥µ¡¼¥Ð¾å¤ÇÀ¸ À®¤µ¤ì¤ë¤«¤é¤Ç¤¢¤ê¡¢¥µ¡¼¥Ð¤Ï¤½¤ì¤¾¤ì¤Î¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ø¤Î¥¢¥¯¥»¥¹¤¬À¸¤¸¤ë ¤Þ¤Ç¥Ó¥Ã¥È¥Þ¥Ã¥×¤ÎÀ¸À®¤òÃ٤餻¤ë¤³¤È¤â¤Ç¤­¤ë¤«¤é¤Ç¤¢¤ë¡£

¥ê¥¯¥¨¥¹¥È¤µ¤ì¤¿¤±¤ì¤É font ¤Ç¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤Á´¤Æ¤Î¥°¥ê¥Õ¤ËÂÐ ¤·¤Æ¤Ï¡¢¶õ¤Î¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¤¬À¸À®¤µ¤ì¤ë ¸½ºß¤Î GLX ¥³¥ó¥Æ¥¯¥¹¥È¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢glXUseXFont ¤Ï̵»ë¤µ¤ì ¤ë¡£

¥¨¥é¡¼

font ¤¬Í­¸ú¤Ê¥Õ¥©¥ó¥È¤Ç¤Ê¤±¤ì¤Ð BadFont ¤¬À¸À®¤µ¤ì¤ë¡£

¸½ºß¤Î GLX ¥³¥ó¥Æ¥¯¥¹¥È¤¬¥Ç¥£¥¹¥×¥ì¥¤¥ê¥¹¥È¹½Ãۥ⡼¥É¤Ç¤¢¤ì¤Ð¡¢ GLXBadContextState ¤¬À¸À®¤µ¤ì¤ë¡£

¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¥¹¥ì¥Ã¥É¤Î¸½ºß¤Î¥³¥ó¥Æ¥¯¥¹¥È¤ËÂбþ¤¹¤ë¥É¥í¥¦¥¢¥Ö¥ë¤¬¥¦¥£ ¥ó¥É¥¦¤Ç¤¢¤ê¡¢¤«¤Ä¤½¤Î¥¦¥£¥ó¥É¥¦¤¬¤â¤Ï¤äÍ­¸ú¤Ç¤Ê¤±¤ì¤Ð¡¢ GLXBadCurrentWindow ¤¬À¸À®¤µ¤ì¤ë¡£

´ØÏ¢¹àÌÜ

glBitmap, glXMakeCurrent