Scroll to navigation

GLXGETCONFIG() GLXGETCONFIG()

̾??

glXGetConfig - GLX ?Υӥ??奢???˴ؤ??????????֤?

????

int glXGetConfig( Display *dpy,

	XVisualInfo *vis,
	int attrib,
	int *value )

??????

X ?????Фؤ???³?????ꤹ?롣
?䤤???碌???Ԥ??ӥ??奢???????ꤹ?롣 ?????? XVisualInfo ??¤?ΤؤΥݥ??󥿤Ǥ??ꡢVisual ?ؤ? ?ݥ??󥿤??ӥ??奢?? ID ?ǤϤʤ???
?ӥ??奢???˴ؤ??Ƽ???????°???????ꤹ?롣
?׵ᤷ???ͤ??֤????롣

????

glXGetConfig ?? value ?˥??????ɥ??? attrib ?ͤ????? ???뤫??vis ?ˤĤ??????????줿 GLX ?ԥå????ޥåפ????ꤹ?롣 ???餫????ͳ???????˼??Ԥ????ȡ?glXGetConfig ?ϥ??顼?????ɤ??? ???? ?????????? 0 ???֤???

attrib ?ϰʲ??Τ????줫?Ǥ???:

???ꤷ???ӥ??奢???? OpenGL ?Υ????????󥰤????ݡ??Ȥ????Ƥ????? True ?Ȥʤꡢ???ݡ??Ȥ????Ƥ??ʤ????? False ?Ȥʤ롣
???顼?Хåե????ȤΥӥåȿ??? RGBA ?ӥ??奢???ξ????ˤϡ?GLX_BUFFER_SIZE ?? GLX_RED_SIZE, GLX_GREEN_SIZE, GLX_BLUE_SIZE, GLX_ALPHA_SIZE ???¤Ȥʤ롣 ???顼?????ǥå????Υӥ??奢???ξ????ˤϡ?GLX_BUFFER_SIZE ?ϥ??顼 ?????ǥå??????礭???Ȥʤ롣
?ӥ??奢???Υե졼???Хåե????٥롣 ???٥? 0 ?ϥǥե????ȤΥե졼???Хåե??Ǥ??롣 ?????ͤǤ??????٥??ϥǥե????ȤΥХåե??˥????С??쥤?????Хåե????? ???????????ͤǤ??????٥??ϥǥե????ȤΥХåե??˥????????쥤?????Хåե? ???б????롣
???顼?Хåե??? Red, Green, Blue, ?????ե??ͤ????ľ????? True ?Ȥʤ롣 ???顼?Хåե??????顼?????ǥå????????ľ????? False ?Ȥʤ롣
???顼?Хåե????򴹲?ǽ??????/???̤Υڥ??ǹ????????Ƥ????????? True ?Ȥʤꡢ?????Ǥʤ????? False ?Ȥʤ롣
???顼?Хåե?????/???Υڥ????鹽???????Ƥ????????? True ?Ȥʤꡢ ?????Ǥʤ????? False ?Ȥʤ롣
???Ѳ?ǽ?????????顼?Хåե??ο??? 0 ?ξ????ϡ????????顼?Хåե???¸?ߤ??ʤ????Ȥ򼨤???
?ƥ??顼?Хåե??˳?Ǽ?????? Red ?ͤΥӥåȿ??? GLX_RGBA ?? False ?ξ?????̤?????Ǥ??롣
?ƥ??顼?Хåե??˳?Ǽ?????? Green ?ͤΥӥåȿ??? GLX_RGBA ?? False ?ξ?????̤?????Ǥ??롣
?ƥ??顼?Хåե??˳?Ǽ?????? Blue ?ͤΥӥåȿ??? GLX_RGBA ?? False ?ξ?????̤?????Ǥ??롣
?ƥ??顼?Хåե??˳?Ǽ?????륢???ե??ͤΥӥåȿ??? GLX_RGBA ?? False ?ξ?????̤?????Ǥ??롣
?ǥץ??Хåե??Υӥåȿ???
???ƥ󥷥??Хåե??Υӥåȿ???
?????塼???졼???????Хåե??˳?Ǽ?????? Red ?ͤΥӥåȿ???
?????塼???졼???????Хåե??˳?Ǽ?????? Green ?ͤΥӥåȿ???
?????塼???졼???????Хåե??˳?Ǽ?????? Blue ?ͤΥӥåȿ???
?????塼???졼???????Хåե??˳?Ǽ?????륢???ե??ͤΥӥåȿ???

X ?ץ??ȥ????Ǥϡ?ñ???Υӥ??奢?? ID ???ۤʤ? bpp ?ͤǥ??󥹥??󥹲? ?????뤳?Ȥ??Ǥ??롣 ????????OpenGL ?ǥ????????󥰤????륦?????ɥ??? GLX ?ԥå????ޥåפϡ? ???顼?Хåե??ο????? GLX_BUFFER_SIZE ?Ȥ??ƥ??󥹥??󥹲????? ?????Фʤ??ʤ???

GLX ?μ????Ǥ? GL ?????????󥰤򥵥ݡ??Ȥ????ӥ??奢???򤿤????󥨥??? ?ݡ??Ȥ??뤳?Ȥ??Ǥ??뤬?????ʤ??Ȥ? 1 ?Ĥ? RGBA ?ӥ??奢???򥵥ݡ??? ???Ƥ??ʤ????Фʤ??ʤ??????Υӥ??奢???Ͼ??ʤ??Ȥ? 1 ?ĤΥ??顼?Хåե??? ???ʤ??Ȥ? 1 ?ӥåȤǤ??륹?ƥ󥷥??Хåե??? ???ʤ??Ȥ? 12 ?ӥåȤǤ????ǥץ??Хåե??? 1 ?ĤΥ????塼???졼???????Хåե????????ʤ????Фʤ??ʤ??? ???Υӥ??奢???ˤϡ??????ե??ӥåȥץ졼???Ϥʤ??Ƥ⹽???ʤ??? ???????????顼?Хåե??Υ??????ϡ????٥? 0 ?ǥ??ݡ??Ȥ????Ƥ??? TrueColor, DirectColor, PseudoColor, or StaticColor ?ӥ??奢???Τ????Ǥ⿼?????礭?????Τ?Ʊ???礭???Ǥ? ?????Фʤ餺?????٥? 0 ?Ǽ?ʬ???Ȥ????Ѳ?ǽ?ˤǤ??ʤ????Фʤ??ʤ???

?????ˡ?X ?????Ф? PseudoColor ?ӥ??奢?뤫 StaticColor ?ӥ??奢?????ե졼???Хåե? 0 ?ǥ??????ݡ??Ȥ??Ƥ??????硢 ???顼?????ǥå??????Υӥ??奢???⤳?Υ??٥???ɬ?פȤ????롣 ???Υӥ??奢???? ???ʤ??Ȥ? 1 ?ĤΥ??顼?Хåե??? ???ʤ??Ȥ? 1 ?ӥåȤǤ??륹?ƥ󥷥??Хåե??? ???ʤ??Ȥ? 12 ?ӥåȤǤ????ǥץ??Хåե????????ʤ????Фʤ??ʤ??? ???Υӥ??奢???ϡ????٥? 0 ?ǥ??ݡ??Ȥ????Ƥ??? PseudoColor ?ӥ??奢???? StaticColor ?ӥ??奢???Τ??????? ???礭??????Ʊ???????Υ??顼?ӥåȥץ졼???????äƤ??ʤ????Фʤ??ʤ???

???ץꥱ?????????ϡ????????ξ????˺Ǥ??ᤤ?ӥ??奢???????򤹤??褦?˽? ???Τ????ޤ????? ???פʥХåե????Ȥäƥ??????ɥ??? GLX ?ԥå????ޥåפ??????????ȡ? ??????????????ǽ???Фʤ??ä??ꡢ???????Ƥ??????꥽??????˳?????ʤä??? ???롣

????

XVisualInfo ?? Xutil.h ?ˤ??????????????Ƥ??롣 ?????? visual, visualID, screen, depth ???Ǥ? ???Ĺ?¤?ΤǤ??롣

???顼

dpy ?? GLX ??ǽ??ĥ?򥵥ݡ??Ȥ??Ƥ??ʤ????С? GLX_NO_EXTENSION ???֤????롣

vis ?Υ????꡼?󤬼ºݤΥ????꡼?????б????Ƥ??ʤ????С? GLX_BAD_SCREEN ???֤????롣

attrib ??ͭ???? GLX °???Ǥʤ????С?GLX_BAD_ATTRIBUTE ???? ?????롣

vis ?? GLX ?򥵥ݡ??Ȥ??Ƥ??餺?????? GLX_USE_GL ?ʳ???° ?????ꥯ?????Ȥ??줿?????ˤϡ?GLX_BAD_VISUAL ???֤????롣

??Ϣ????

glXChooseVisual, glXCreateContext