Re: EuAllegro Help
- Posted by Icy_Viking Aug 14, 2019
- 1317 views
jmduro said...
Icy_Viking said...
Thanks Greg, simple oversight. Ok, so I did an error check and it says the function is failing to register. I checked the DLL and the al_install_system() function is inside the DLL.
public constant xal_install_system = define_c_func(al,"+al_install_system",{C_INT,C_POINTER},C_BOOL) public function al_install_system(atom ver,atom x) return c_func(xal_install_system,{ver,x}) end function if xal_install_system = -1 then puts(1,"al_install_system failed!\n") --this does come up when I run the wrapper library abort(0) end if
ver should always be set to ALLEGRO_VERSION_INT. x refers to a pointer. Is it set to NULL or allocated ?
Jean-Marc
I have it set to 0, which I believe is basiclly the same as NULL, unless I'm mistaken.
--Display a simple window without warning include std/machine.e include EuAllegro.ew atom ret = al_install_system(ALLEGRO_VERSION_INT,0) atom dis = al_create_display(800,600) al_set_new_window_title("Simple Window") al_flip_display() al_rest(5.0) al_destroy_display(dis)