Re: Texture Not Showing

new topic     » goto parent     » topic index » view thread      » older message » newer message
Maccuq said...

Hi, texture is not showing, because it is not loading. C function 'LoadTexture' is returning struct, not a pointer to a struct.

https://openeuphoria.org/forum/122140.wc#122140

Euraylib.ew

public constant xLoadImage = define_c_func(ray,"+LoadImage",{C_POINTER},C_POINTER), 

Raylib.h

RLAPI Texture2D LoadTexture(const char *fileName); 
 
RLAPI ModelAnimation *LoadModelAnimations(const char *fileName, int *animsCount); 

Euphoria output

WARNING: [c_proc/c_func] Image fileformat not supported 
WARNING: [c_proc/c_func] Image could not be loaded 
WARNING: Texture could not be created 

Thanks that put it in the right direction. I changed it to the C_UINT from a C_POINTER, but still not showing. I also tried LoadImageRaw function and still nothing. Probably going to have to use poke and peek commands I assume in order to get it working.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu