13h mode ?

C

Comp Asdfg

Stéphane Wirtel said:
Comp Asdfg a écrit :
why not ruby sdl ?

jep if i would do a game i`ll choose SDL or something else but it`s only
a theoretical question, is it possible to run 13h mode using ruby and if
it is for example how would you draw a pixel becouse i have no idea how
to do it :( ?
thx
 
M

Marcin Raczkowski

Comp said:
jep if i would do a game i`ll choose SDL or something else but it`s only
a theoretical question, is it possible to run 13h mode using ruby and if
it is for example how would you draw a pixel becouse i have no idea how
to do it :( ?
thx
well ruby doesn't allow direct system calls or interupts so you'll have
to write c extension, theoretically it's possible.

try reading some assembler faq, then c faq for how to inline assembler
in c (there's no standard, every compiler have it's own macro) then read
how to include c in ruby (i suggest rubyinline)
 
S

Stéphane Wirtel

Comp Asdfg a écrit :
jep if i would do a game i`ll choose SDL or something else but it`s only
a theoretical question, is it possible to run 13h mode using ruby and if
it is for example how would you draw a pixel becouse i have no idea how
to do it :( ?
thx
You can develop your own library to draw a pixel with C, and after
create a binding "your lib C" <=> Ruby with the Ruby's API .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top