Home
last modified time | relevance | path

Searched refs:apple_cgl (Results 1 – 8 of 8) sorted by relevance

/external/mesa3d/src/glx/apple/
Dapple_cgl.c44 struct apple_cgl_api apple_cgl; variable
88 apple_cgl.get_version = sym(h, "CGLGetVersion"); in apple_cgl_init()
90 apple_cgl.get_version(&apple_cgl.version_major, &apple_cgl.version_minor); in apple_cgl_init()
92 … apple_glx_diagnostic("CGL major %d minor %d\n", apple_cgl.version_major, apple_cgl.version_minor); in apple_cgl_init()
94 if (1 != apple_cgl.version_major) { in apple_cgl_init()
99 apple_cgl.choose_pixel_format = sym(h, "CGLChoosePixelFormat"); in apple_cgl_init()
100 apple_cgl.destroy_pixel_format = sym(h, "CGLDestroyPixelFormat"); in apple_cgl_init()
102 apple_cgl.clear_drawable = sym(h, "CGLClearDrawable"); in apple_cgl_init()
103 apple_cgl.flush_drawable = sym(h, "CGLFlushDrawable"); in apple_cgl_init()
105 apple_cgl.create_context = sym(h, "CGLCreateContext"); in apple_cgl_init()
[all …]
Dapple_glx_pbuffer.c81 cglerr = apple_cgl.set_pbuffer(ac->context_obj, pbuf->buffer_obj, 0, 0, 0); in pbuffer_make_current()
84 fprintf(stderr, "set_pbuffer: %s\n", apple_cgl.error_string(cglerr)); in pbuffer_make_current()
108 apple_cgl.destroy_pbuffer(pbuf->buffer_obj); in pbuffer_destroy()
162 err = apple_cgl.create_pbuffer(width, height, GL_TEXTURE_RECTANGLE_EXT, in apple_glx_pbuffer_create()
193 oldcontext = apple_cgl.get_current_context(); in get_max_size()
211 err = apple_cgl.choose_pixel_format(attr, &pfobj, &vsref); in get_max_size()
215 apple_cgl.error_string(err)); in get_max_size()
222 err = apple_cgl.create_context(pfobj, NULL, &newcontext); in get_max_size()
227 apple_cgl.error_string(err)); in get_max_size()
230 apple_cgl.destroy_pixel_format(pfobj); in get_max_size()
[all …]
Dapple_glx_context.c167 error = apple_cgl.create_context(ac->pixel_format_obj, in apple_glx_create_context()
173 (void) apple_cgl.destroy_pixel_format(ac->pixel_format_obj); in apple_glx_create_context()
187 fprintf(stderr, "error: %s\n", apple_cgl.error_string(error)); in apple_glx_create_context()
223 if (apple_cgl.get_current_context() == ac->context_obj) { in apple_glx_destroy_context()
227 if (apple_cgl.set_current_context(NULL)) { in apple_glx_destroy_context()
249 if (apple_cgl.clear_drawable(ac->context_obj)) { in apple_glx_destroy_context()
265 if (apple_cgl.destroy_pixel_format(ac->pixel_format_obj)) { in apple_glx_destroy_context()
270 if (apple_cgl.destroy_context(ac->context_obj)) { in apple_glx_destroy_context()
318 apple_cgl.set_current_context(NULL); in apple_glx_make_current_context()
340 if (apple_cgl.set_current_context(ac->context_obj)) in apple_glx_make_current_context()
[all …]
Dapple_glx_pixmap.c65 cglerr = apple_cgl.set_current_context(p->context_obj); in pixmap_make_current()
69 apple_cgl.error_string(cglerr)); in pixmap_make_current()
73 cglerr = apple_cgl.set_off_screen(p->context_obj, p->width, p->height, in pixmap_make_current()
77 fprintf(stderr, "set off screen: %s\n", apple_cgl.error_string(cglerr)); in pixmap_make_current()
96 (void) apple_cgl.destroy_pixel_format(p->pixel_format_obj); in pixmap_destroy()
99 (void) apple_cgl.destroy_context(p->context_obj); in pixmap_destroy()
169 error = apple_cgl.create_context(p->pixel_format_obj, NULL, in apple_glx_pixmap_create()
Dapple_visual.c170 error = apple_cgl.choose_pixel_format(attr, pfobj, &vsref); in apple_visual_create_pfobj()
174 … ("Trying again without CoreProfile: error=%s, vsref=%d\n", apple_cgl.error_string(error), vsref); in apple_visual_create_pfobj()
177 apple_cgl.destroy_pixel_format(*pfobj); in apple_visual_create_pfobj()
182 error = apple_cgl.choose_pixel_format(attr, pfobj, &vsref); in apple_visual_create_pfobj()
187 "CGLChoosePixelFormat error: %s\n", apple_cgl.error_string(error)); in apple_visual_create_pfobj()
Dmeson.build23 'apple_cgl.c',
24 'apple_cgl.h',
Dapple_glx.c133 apple_cgl.flush_drawable(ac->context_obj); in apple_glx_swap_buffers()
Dapple_cgl.h81 extern struct apple_cgl_api apple_cgl;