Mercurial > MadButterfly
comparison src/graph_engine_openvg.c @ 1114:7451af5d63ec
Make tank and calculator works for console backend
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 08 Dec 2010 22:39:12 +0800 |
parents | 851a062368bd |
children | 20e15872f3df |
comparison
equal
deleted
inserted
replaced
1113:572277fcec0d | 1114:7451af5d63ec |
---|---|
673 | 673 |
674 display = _VG_DISPLAY(); | 674 display = _VG_DISPLAY(); |
675 eglSwapBuffers(display, VG_MBE_SURFACE(dst_canvas)); | 675 eglSwapBuffers(display, VG_MBE_SURFACE(dst_canvas)); |
676 } | 676 } |
677 | 677 |
678 void | |
679 mbe_flush(mbe_t *canvas) { | |
680 EGLDisplay display; | |
681 mbe_surface_t *surface; | |
682 | |
683 _MK_CURRENT_CTX(canvas); | |
684 display = _VG_DISPLAY(); | |
685 surface = VG_MBE_SURFACE(canvas); | |
686 eglSwapBuffers(display, surface); | |
687 } | |
688 | |
678 mbe_t * | 689 mbe_t * |
679 mbe_create(mbe_surface_t *surface) { | 690 mbe_create(mbe_surface_t *surface) { |
680 EGLDisplay display; | 691 EGLDisplay display; |
681 EGLConfig config; | 692 EGLConfig config; |
682 EGLContext ctx, shared; | 693 EGLContext ctx, shared; |