• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: About programming with SDL for Dingoo  (Read 5950 times)

Fernando Aires (OP)

  • Posts: 40
    • http://fernando-aires.blogspot.com/
About programming with SDL for Dingoo
« on: March 30, 2011, 11:02:27 pm »
Hello there,

I have installed the Dingoo SDK for the native OS and compiled some sample programs, and everything works right. But now I'd like to know: programming with SDL for Dingoo is the same as programming with SDL for Windows (or any other OS)?

I mean, an application written using SDL for the Dingoo OS is the same as an application written for Windows or Linux? Do you only use the same functions, such as SDL_FillRect() or SDL_MapRGB() or whatever, or do you have to use specific functions when you deal with the Dingoo OS?
My rambling (totally unrelated to Dingoo) - http://fernando-aires.blogspot.com/

flatmush

  • Posts: 288
Re: About programming with SDL for Dingoo
« Reply #1 on: March 31, 2011, 10:25:59 am »
As far as I'm aware it should be identical. You will probably come across some features that aren't available but the interface should be identical.
« Last Edit: March 31, 2011, 10:28:39 am by flatmush »

Fernando Aires (OP)

  • Posts: 40
    • http://fernando-aires.blogspot.com/
Re: About programming with SDL for Dingoo
« Reply #2 on: March 31, 2011, 12:32:42 pm »
As far as I'm aware it should be identical. You will probably come across some features that aren't available but the interface should be identical.

Thanks for your reply. Now that I've taken a good look at some samples I realize that the code looks just like my old SDL game prototypes for Windows. I'm starting to love this SDK ;D
My rambling (totally unrelated to Dingoo) - http://fernando-aires.blogspot.com/

Harteex

  • * Administrator
  • Posts: 713
    • Harteex Productions
Re: About programming with SDL for Dingoo
« Reply #3 on: March 31, 2011, 12:51:17 pm »
The SDL timer is not supported, so stick with SDL_GetTicks and that stuff.
Otherwise, just use SDL as usual.

Fernando Aires (OP)

  • Posts: 40
    • http://fernando-aires.blogspot.com/
Re: About programming with SDL for Dingoo
« Reply #4 on: March 31, 2011, 10:03:10 pm »
The SDL timer is not supported, so stick with SDL_GetTicks and that stuff.
Otherwise, just use SDL as usual.

Thanks for the advice, I'll keep that in mind.

I don't have too much experience with SDL, I only know how to handle events such as keys being pressed, and draw some rectangles on the screen. It's gonna take some time until I develop something cool for Dingoo, but since I can use SDL almost in the same way as I used to when programming for Windows, I'm halfway through it :D
My rambling (totally unrelated to Dingoo) - http://fernando-aires.blogspot.com/