-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphp_raylib.h
116 lines (99 loc) · 3.73 KB
/
php_raylib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2018 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Joseph Montanez |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef PHP_RAYLIB_H
#define PHP_RAYLIB_H
#undef LOG_INFO
#undef LOG_WARNING
#undef LOG_DEBUG
#include "raylib.h"
//#include "rlgl.h"
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "texture.h"
extern zend_module_entry raylib_module_entry;
#define phpext_raylib_ptr &raylib_module_entry
#define PHP_RAYLIB_VERSION "2.0.0"
zend_class_entry *php_raylib_vector2_ce;
zend_class_entry *php_raylib_vector3_ce;
zend_class_entry *php_raylib_vector4_ce;
zend_class_entry *php_raylib_matrix_ce;
zend_class_entry *php_raylib_color_ce;
zend_class_entry *php_raylib_rectangle_ce;
zend_class_entry *php_raylib_image_ce;
zend_class_entry *php_raylib_texture_ce;
zend_class_entry *php_raylib_rendertexture_ce;
zend_class_entry *php_raylib_npatchinfo_ce;
zend_class_entry *php_raylib_glyphinfo_ce;
zend_class_entry *php_raylib_font_ce;
zend_class_entry *php_raylib_camera3d_ce;
zend_class_entry *php_raylib_camera2d_ce;
zend_class_entry *php_raylib_mesh_ce;
zend_class_entry *php_raylib_shader_ce;
zend_class_entry *php_raylib_materialmap_ce;
zend_class_entry *php_raylib_material_ce;
zend_class_entry *php_raylib_transform_ce;
zend_class_entry *php_raylib_boneinfo_ce;
zend_class_entry *php_raylib_model_ce;
zend_class_entry *php_raylib_modelanimation_ce;
zend_class_entry *php_raylib_ray_ce;
zend_class_entry *php_raylib_raycollision_ce;
zend_class_entry *php_raylib_boundingbox_ce;
zend_class_entry *php_raylib_wave_ce;
zend_class_entry *php_raylib_audiostream_ce;
zend_class_entry *php_raylib_sound_ce;
zend_class_entry *php_raylib_music_ce;
zend_class_entry *php_raylib_vrdeviceinfo_ce;
zend_class_entry *php_raylib_vrstereoconfig_ce;
zend_class_entry *php_raylib_filepathlist_ce;
#ifdef PHP_WIN32
# define PHP_RAYLIB_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_RAYLIB_API __attribute__ ((visibility("default")))
#else
# define PHP_RAYLIB_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
/*
Declare any global variables you may need between the BEGIN
and END macros here:
ZEND_BEGIN_MODULE_GLOBALS(raylib)
zend_long global_value;
char *global_string;
ZEND_END_MODULE_GLOBALS(raylib)
*/
/* Always refer to the globals in your function as RAYLIB_G(variable).
You are encouraged to rename these macros something shorter, see
examples in any other php module directory.
*/
#define RAYLIB_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(raylib, v)
#if defined(ZTS) && defined(COMPILE_DL_RAYLIB)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif /* PHP_RAYLIB_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/