GLXMAKECURRENT() | GLXMAKECURRENT() |
̾??¶
glXMakeCurrent GLX ?????ƥ????Ȥ????ɥ??ޤ??? GLX ?ԥå????ޥåפ˳??????Ƥ?
????¶
Bool glXMakeCurrent( Display *dpy,
GLXDrawable drawable, GLXContext ctx )
??????¶
????¶
glXMakeCurrent ?? 2 ?Ĥν??????Ԥ?: ???δؿ??ϡ??ƤӽФ????Ԥä??????åɤθ??ߤ? GLX ?????ƥ????Ȥ? ctx ?ˤ?(???ߤΥ????ƥ????Ȥ????ˤ????С????????֤???????)?? ctx ?? GLX ?ɥ??????֥??˳??????Ƥ롣 ?????ϥ??????ɥ??ޤ??? GLX ?ԥå????ޥåפǤ??롣 ???? 2 ?Ĥ?ư???η??̤Ȥ??ơ??????ʹߤ? GL ?Υ????????ؿ??ϥ????? ???????ƥ????? ctx ???Ѥ??? GLX ?ɥ??????֥? drawable ???????롣 glXMakeCurrent ?ϸ??ߤΥ????????????ƥ????Ȥ? ctx ??ɬ ???֤????????Τǡ????ߤΥ????ƥ????Ȥϥ????åɤ??Ȥ? 1 ?Ĥ??Ĥ???¸?? ?Ǥ??ʤ???
???Υ????ƥ????Ȥ?¸?ߤ??????硢???????Ф??ƥڥ??ǥ??????Ƥ??륳?? ???ɤϡ??????ƥ????Ȥ??????????????˥ե??å??夵???롣
?????? ctx ?餫?Υ????åɤθ??ߤΥ????ƥ????Ȥˤ????ȡ????? ?ӥ塼?ݡ??Ȥ? drawable ?κ??????礭???????ꤵ???롣 ?????ʹߤϡ????餫?Υ????åɤ? ctx ???Ȥä? glXMakeCurrent ???ƤӽФ??Ƥ⡢?ӥ塼?ݡ??Ȥˤ??????ƶ???Ϳ???ʤ???
???????????ƥ????Ȥ????????Ƥ뤳?Ȥʤ????ߤΥ????ƥ????Ȥ??????????ˤϡ? drawable ?? None ????ctx ?? NULL ?????ꤷ?? glXMakeCurrent ???ƤӽФ????ȡ?
glXMakeCurrent ???????????? True ???֤??????Ԥ????? False ???֤??? False ???֤??????ȡ??????Υ????????????ƥ????Ȥȥɥ??????֥? ??(?⤷¸?ߤ?????)?Ѥ??餺?˻Ĥ롣
????¶
?ץ????? ??ñ???μ¹ԴĶ??Ǥ??롣??????ñ???Υ??ɥ쥹???????ˤ? ???Ƽ¹Ԥ??졢1 ?İʾ??Υ????åɤǹ????????롣
?????å??ϡ?1 ?ĤΥ??ɥ쥹???֤???ͭ???Ƥ??륵?֥ץ??????ν????? 1 ?ĤǤ??뤬???̡??Υץ??????५?????????å????֡?????¾?? ??Ϣ???????Х??ǡ????????????롣 ?????????å??????֥ץ????????롼?פ?ͣ???Υ????С??ʤ??С??????? ?ץ????????????Ǥ??롣
???顼¶
drawable ?? ctx ??Ʊ??????????ӥӥ??奢?????Ȥä??? ???????Ƥ??ʤ????С?BadMatch ???????????롣 ???Υ??顼?ϡ?drawable ?? None ?ʤΤ? ctx ?? NULL ?Ǥʤ??????ˤ??????????롣
glXMakeCurrent ???ƤӽФ??줿?????? ctx ???̤Υ????åɤ? ???ߤΥ????ƥ????Ȥʤ??С?BadAccess ???????????롣
drawable ??ͭ???? GLX ?Υɥ??????֥??Ǥʤ????С? GLXBadDrawable ???????????롣
ctx ??ͭ???? GLX ?????ƥ????ȤǤʤ????С?GLXBadContext ?? ?????????롣
glBegin ?Ȥ??????б????? glEnd ???¹Ԥ??????֤? glXMakeCurrent ???¹Ԥ??????ȡ?GLXBadContextState ???????? ???롣
?ƤӽФ????Ԥä??????åɤθ??ߤΥ????????????ƥ????Ȥ???GL ?Υ??? ???????֤Ȥ??? GL_FEEDBACK ?ޤ??? GL_SELECT ?????äƤ????? ???ˤ⡢GLXBadContextState ???????????롣
???Υ????ƥ????Ȥ??Ф??ƥڥ??ǥ??????Ƥ??? GL ???ޥ??ɤ????ꡢ???? ???ߤΥɥ??????֥뤬????ͭ???ʥ??????ɥ??Ǥʤ??ʤäƤ????????ˤϡ? GLXBadCurrentWindow ???????????롣
glXMakeCurrent ???ƤӽФ??????ޤǤ˥????Ф? ?????Хåե??????????Ƥ????ʤ??ä????硢BadAlloc ???????????뤳 ?Ȥ????뤬?????????Ƥ??Ԥ??ˤϥ????????ʬ?Ǥʤ??ä????Ȥ????狼???? ?????⤷???ʤ???
??Ϣ????¶
glXCreateContext, glXCreateGLXPixmap