FO_EX(arginfo_vector3__construct, 0, 0, 0)
ZEND_ARG_TYPE_MASK(0, x, MAY_BE_DOUBLE|MAY_BE_NULL, "0")
ZEND_ARG_TYPE_MASK(0, y, MAY_BE_DOUBLE|MAY_BE_NULL, "0")
ZEND_ARG_TYPE_MASK(0, z, MAY_BE_DOUBLE|MAY_BE_NULL, "0")
ZEND_END_ARG_INFO()
Thanks,
Joseph Montanez
On Mon, Jul 31,
so it works better
with PHP's built-in reflection, so is this not possible? I've seen
similar uses with Tidy and Soap extensions so I'm a little baffled on
why it's an issue here. I think the only difference is that where the
ARG_INFO is, is in the header files versus the C fil
prop_handler(&php_raylib_camera3d_prop_handlers,
"position", php_raylib_camera3d_get_position,
php_raylib_camera3d_set_position, NULL, NULL, NULL, NULL);
I also tried switching to tracking zend_object as well but it's the
same problem. Should I be tracking other php objects as a zval
instead?
Thanks,
ke LibXML as it has a similar concept
but it's manually tracked references. SQLite3 also does something
similar but only calls efree() when the root object is freed.
I have the code available for how it's constructed.
https://github.com/joseph-montanez/raylib-php/blob/develop/camera3d.c
is accessed 3 times. Thats 3 additional reference counts. If
I unset($camera), do I now need to manage those references and
explicitly call GC_DELREF/GC_SET_REFCOUNT in my `free_obj` function?
Thanks,
Joseph Montanez
On Tue, Mar 9, 2021 at 10:09 PM Joseph Montanez wrote:
> Michael,
>
>
will run into this and
assume it's a bug. On my end, I've written my own (incomplete) bindings
https://github.com/joseph-montanez/raylib-php |
https://joseph-montanez.github.io/raylib-php-docs/ I am working towards
those issues, this is just a stumbling block.
The more I think about thi
)
Vector3 direction; // Ray direction
} Ray;
I've gone ahead and made a test extension here:
https://github.com/joseph-montanez/php-ext-reference-issue . I've made each
struct a PHP object. allowing me to do this:
position->z, PHP_EOL; // Outputs: 3
$position->z = 9;
o I use the struct defined for
texture?
zend_object std;
} php_raylib_font_object;
For reference here is the Texture header:
https://github.com/joseph-montanez/raylib-php/blob/master/raylib-texture.h
Thanks,
Joseph Montanez