OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
glfft_interface.hpp
Go to the documentation of this file.
1 /* Copyright (C) 2015 Hans-Kristian Arntzen <maister@archlinux.us>
2  *
3  * Permission is hereby granted, free of charge,
4  * to any person obtaining a copy of this software and associated documentation files (the "Software"),
5  * to deal in the Software without restriction, including without limitation the rights to
6  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7  * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8  *
9  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
12  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
14  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
15  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17  */
18 
19 #ifndef GLFFT_INTERFACE_HPP__
20 #define GLFFT_INTERFACE_HPP__
21 
22 // Implement this header somewhere in your include path and include relevant GL/GLES API headers.
23 #include "glfft_api_headers.hpp"
24 
25 #ifndef GLFFT_GLSL_LANG_STRING
26 #error GLFFT_GLSL_LANG_STRING must be defined to e.g. "#version 310 es\n" or "#version 430 core\n".
27 #endif
28 
29 #ifndef GLFFT_LOG_OVERRIDE
30 // Implement this.
31 void glfft_log(const char *fmt, ...);
32 #else
33 #define glfft_log GLFFT_LOG_OVERRIDE
34 #endif
35 
36 #ifndef GLFFT_TIME_OVERRIDE
37 // Implement this.
38 void glfft_time();
39 #else
40 #define glfft_time GLFFT_TIME_OVERRIDE
41 #endif
42 
43 #ifndef GLFFT_READ_FILE_STRING_OVERRIDE
44 // Implement this.
45 bool glfft_read_file_string(const char *path, char **out_buf);
46 #else
47 #define glfft_read_file_string GLFFT_READ_FILE_STRING_OVERRIDE
48 #endif
49 
50 #endif
void glfft_log(const char *fmt,...)
bool glfft_read_file_string(const char *path, char **out_buf)
void glfft_time()