Tizen 2.4.0 rev3 SDK Public Release
[framework/system/swap-probe.git] / probe_graphics / da_gles20_tizen.cpp
1 /*
2  *  DA probe
3  *
4  * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Vitaliy Cherepanov <v.cherepanov@samsung.com>
9  *
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  * Contributors:
25  * - Samsung RnD Institute Russia
26  *
27  */
28
29 //disable tizen redefines
30 #define _GL2_MACRO_H_
31 #define _GL_MACRO_H_
32
33 #include "common_probe_init.h"
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 #include "da_gles20.h"
39
40 #define DECLARE(TYPE, FUNCNAME, ...)   TYPE REAL_NAME(FUNCNAME)(__VA_ARGS__)
41 #define DECLARE_NOARGS(TYPE, FUNCNAME)   TYPE REAL_NAME(FUNCNAME)()
42
43 #define REAL_NAME(func) __local_##func
44 #define BEFORE BEFORE_GL2_API
45 #define CALL_ORIG(func, ...) __gl_api->func(__VA_ARGS__)
46 #define TYPEDEF(type)
47
48 #ifdef WRITE_MSG_CALLER_ADDR
49 #undef WRITE_MSG_CALLER_ADDR
50 #endif
51
52 #define WRITE_MSG_CALLER_ADDR __builtin_return_address(0)
53
54
55 /*
56  * this include to make tizen open gl api functions
57  * probe prototypes
58  *
59  */
60 #include "da_gles20.inc"
61
62 #ifdef __cplusplus
63 } /* extern C */
64 #endif
65
66 #undef WRITE_MSG_CALLER_ADDR
67
68 #undef _GL2_MACRO_H_
69 #undef _GL_MACRO_H_
70