Searched refs:addAttribute (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | wgl_state.cpp | 455 addAttribute(WGL_STEREO_ARB, GL_FALSE); in CreateContext() 456 addAttribute(WGL_AUX_BUFFERS_ARB, 0); in CreateContext() 458 addAttribute(WGL_DRAW_TO_WINDOW_ARB, GL_TRUE); in CreateContext() 459 addAttribute(WGL_SUPPORT_OPENGL_ARB, GL_TRUE); in CreateContext() 461 addAttribute(WGL_DOUBLE_BUFFER_ARB, GL_TRUE); in CreateContext() 462 addAttribute(WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB); in CreateContext() 463 addAttribute(WGL_RED_BITS_ARB, 8); in CreateContext() 464 addAttribute(WGL_GREEN_BITS_ARB, 8); in CreateContext() 465 addAttribute(WGL_BLUE_BITS_ARB, 8); in CreateContext() 474 addAttribute(WGL_SAMPLE_BUFFERS_ARB, 1); in CreateContext() [all …]
|
H A D | egl_state.cpp | 510 auto addAttribute = [&attributes](EGLint a, EGLint b) { in ChooseConfiguration() local 518 addAttribute(EGL_CONFORMANT, EGL_OPENGL_ES3_BIT); in ChooseConfiguration() 526 addAttribute(EGL_CONFORMANT, EGL_OPENGL_ES2_BIT); in ChooseConfiguration() 529 addAttribute(EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER); in ChooseConfiguration() 530 addAttribute(EGL_RED_SIZE, 8); in ChooseConfiguration() 531 addAttribute(EGL_GREEN_SIZE, 8); in ChooseConfiguration() 532 addAttribute(EGL_BLUE_SIZE, 8); in ChooseConfiguration() 533 addAttribute(EGL_CONFIG_CAVEAT, EGL_NONE); in ChooseConfiguration() 537 addAttribute(EGL_SAMPLE_BUFFERS, 1); in ChooseConfiguration() 545 addAttribute(EGL_NONE, EGL_NONE); // terminate list in ChooseConfiguration() [all …]
|