]> git.tdb.fi Git - gldbg.git/blob - flavors/gles2/source/grabber_flavor.cpp
Describe some texture parameters when printing
[gldbg.git] / flavors / gles2 / source / grabber_flavor.cpp
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2011  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #include "functions.h"
9 #include "grabber.h"
10
11 namespace {
12
13 template<void (Grabber::*next_frame)()>
14 void eglSwapBuffers(void *user_data, unsigned, void *, void *)
15 {
16         (reinterpret_cast<Grabber *>(user_data)->*next_frame)();
17 }
18
19 }
20
21 unsigned short Grabber::break_funcs[] =
22 {
23         FUNC_EGLSWAPBUFFERS,
24         FUNC_GLDRAWARRAYS,
25         FUNC_GLDRAWELEMENTS,
26         0
27 };
28
29 void Grabber::flavor_init()
30 {
31         decoder->eglSwapBuffers = eglSwapBuffers<&Grabber::next_frame>;
32 }