Re: Help wrapping SDL2.0

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

That would be great. I have wrapped several of the functions, but I do not know if they will work or not, because I can't test until most of the functions are wrapped. This is definitely a great learning experience for me. I have even used struct.e by ghaberek (Greg) to recreate the structures. On that note, I was wondering if you can explain what this line means to me in C header file:

typedef struct SDL_RWops 
{ 
    Sint64 (SDLCALL * size) (struct SDL_RWops * context); 
. 
. 
. 
} 

I can see that there is a structure being declared there with the type of SDL_RWops, but not sure how to call a struct within a struct. Or even exactly what this line is saying.

I had forgot about Greg's struct.e I could have used that to wrap the Rect functions in SDL. It would come in handy for when you need to declare Rect variables in SDL. Since Euphoria has no native support for structs at this time, hopefully with the next release, struct support will be added.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu