Scroll to navigation

GLXCREATECONTEXT() GLXCREATECONTEXT()

̾??

glXCreateContext - GLX ?????????󥰥????ƥ????Ȥ򿷤???????

????

GLXContext glXCreateContext( Display *dpy,

	XVisualInfo *vis,
	GLXContext shareList,
	Bool direct )

??????

X ?????Фؤ???³?????ꤹ?롣
?????????󥰥????ƥ????Ȥ????Ѳ?ǽ?ʥե졼???Хåե??꥽?????????????? ?ӥ??奢???????ꤹ?롣 ?????? XVisualInfo ??¤?ΤؤΥݥ??󥿤Ǥ??ꡢ?ӥ??奢???? ID ?? Visual ?ؤΥݥ??󥿤ǤϤʤ???
?ǥ????ץ쥤?ꥹ?Ȥ???ͭ???륳???ƥ????Ȥ????ꤹ?롣 NULL ?ϡ???????ͭ???Ԥ??ʤ????Ȥ򼨤???
?????????󥰤򥰥??ե??å????????ƥ??Ȥ?ľ????³?ǹԤ?(True)???? ???뤤?? X ?????з?ͳ?ǹԤ???(False)?????ꤹ?롣

????

glXCreateContext ?? GLX ?Υ????????󥰥????ƥ????Ȥ????????????? ?ϥ??ɥ????֤??? ???Υ????ƥ????Ȥ??Ѥ??ơ????????ɥ??? GLX ?ԥå????ޥåפ?ξ???????? ???Ԥ????Ȥ??Ǥ??롣 glXCreateContext ???????????󥰥????ƥ????Ȥ??????˼??Ԥ????ȡ? NULL ???֤????롣

direct ?? True ?ξ??硢??????ľ?ܥ????????󥰤򥵥ݡ??Ȥ? ?Ƥ??ꡢX ?????Фؤ???³???????????Ǥ??ꡢľ?ܥ????????󥰥????ƥ????? ?????Ѳ?ǽ?Ǥ????С?ľ?ܥ????????󥰥????ƥ????Ȥ??????????? (direct ?? True ?λ??⡢?????ϴ??ܥ????ƥ????Ȥ??֤????⤷ ???ʤ?)?? direct ?? False ?ʤ???ɬ????X ?????з?ͳ?ǥ????????󥰤??? ???????ƥ????Ȥ??????????롣 ?????ˤ??äƤϡ?ľ?ܥ????????󥰤?????????ǽ?Ǥ??롣 ????????ľ?ܥ????????󥰥????ƥ????Ȥ?ʣ???ץ??????Ƕ?ͭ?Ǥ??ʤ????ޤ??? GLX ?ԥå????ޥåפ??????????󥰤Ǥ??ʤ????Ȥ????롣

shareList ?? NULL ?Ǥʤ????С????ƤΥǥ????ץ쥤?ꥹ?ȤΥ? ???ǥå??????????ϡ?shareList ?Υ????ƥ????Ȥȿ??????????????륳 ???ƥ????Ȥˤ??äƶ?ͭ?????롣 1 ?ĤΥǥ????ץ쥤?ꥹ?ȶ??֤ǡ?Ǥ?դο??Υ????ƥ????Ȥ???ͭ???뤳?Ȥ? ?Ǥ??롣 ????????1 ?ĤΥǥ????ץ쥤?ꥹ?ȶ??֤???ͭ???????ƤΥ????????󥰥????? ?????Ȥϡ?Ʊ?????ɥ쥹????????¸?ߤ??ʤ????Фʤ??ʤ??? 2 ?ĤΥ????????󥰥????ƥ????Ȥ????ɥ쥹???֤???ͭ?????Τϡ? ξ????Ʊ???????Ф??Ȥ????ܥ????ƥ????ȤǤ??????礫?? ξ????ľ?ܥ????ƥ????ȤǤ??ꡢñ???Υץ??????˽?ͭ?????Ƥ????????Ǥ??롣 ???ܥ????ƥ????Ȥξ????ˤϡ??ƤӽФ????Ԥ??????åɤ????ɥ쥹???֤???ͭ ????ɬ?פϤʤ???ɬ?פʤΤϡ??????????б??????????????󥰥????ƥ????Ȥ? ???ɥ쥹???֤???ͭ???뤳?Ȥ????Ǥ??롣

GL ?ΥС????????? 1.1 ?ʹߤʤ??С????֥??????? 0 ?????????ƤΥƥ??????? ???֥??????Ȥϡ??ǥ????ץ쥤?ꥹ?Ȥ???ͭ????Ǥ?դΥ????ƥ????Ȥˤ??ä? ??ͭ?????롣

????

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

?ץ????? ??ñ???μ¹ԴĶ??Ǥ??롣??????ñ???Υ??ɥ쥹???????ˤ? ???Ƽ¹Ԥ??졢1 ?İʾ??Υ????åɤǹ????????롣

?????å??ϡ?1 ?ĤΥ??ɥ쥹???֤???ͭ???Ƥ??륵?֥ץ??????ν????? 1 ?ĤǤ??뤬???̡??Υץ??????५???󥿡??????å????֡?????¾?? ??Ϣ???????Х??ǡ????????????롣 ?????????å??????֥ץ????????롼?פ?ͣ???Υ????С??ʤ??С??????? ?ץ????????????Ǥ??롣

ľ?ܥ????????󥰥????ƥ????Ȥ????? GLX ?ԥå????ޥåפ??????????󥰤? ?뤳?ȤϤǤ??ʤ????⤷???ʤ???

???顼

???饤??????¦?Ǽ¹Ԥ????Ԥ????? NULL ???֤????롣

?????????륳???ƥ????Ȥ???shareList ?ˤ??äƻ??ꤵ?줿?????ƥ??? ?Ȥȥ??ɥ쥹???֤䥹???꡼??????ͭ???Ƥ??ʤ????硢BadMatch ???? ???????롣

vis ??ͭ???ʥӥ??奢???Ǥʤ??????ˤϡ?BadValue ?????????? ??(?㤨?С??????? GLX ?μ????Ϥ????򥵥ݡ??Ȥ??Ƥ??ʤ?)??

shareList ?? GLX ?????ƥ????ȤǤʤ???NULL ?Ǥ??ʤ??????ˤϡ? GLXBadContext ???????????롣

?????Ф????????????ƥ????Ȥ????????Ƥ뤿???˽?ʬ?ʥ꥽?????????äƤ??? ?????硢BadAlloc ???????????롣

??Ϣ????

glXDestroyContext, glXGetConfig, glXIsDirect, glXMakeCurrent