Re: Equivelant C routines

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

>From: stewartml89 at msn.com
>Subject: Re: Equivelant C routines
>
>
>Can any one tell me the c routines for these euphoria routines:
>
>          graphics_mode()

void textmode(int newmode);

   but i think this only sets text modes, maybe not graphics modes, although 
some of the following constants seem to be for colour graphics modes. Im' 
going by Borland docs for this, so a DOS compiler may have more graphics 
modes.

    /* DOS-compatible modes */

    LASTMODE = -1,
    BW40     = 0,
    C40,
    BW80,
    C80,
    MONO     = 7,
    C4350    = 64,

    /* New Color modes */

    C40X14   = 8,
    C40X21,
    C40X28,
    C40X43,
    C40X50,
    C40X60,

    C80X14,
    C80X21,
    C80X28,
    C80X43,
    C80X50,
    C80X60,

    /* New Black & White modes */

    BW40X14,
    BW40X21,
    BW40X28,
    BW40X43,
    BW40X50,
    BW40X60,

    BW80X14,
    BW80X21,
    BW80X28,
    BW80X43,
    BW80X50,
    BW80X60,

    /* New Monochrome modes */

    MONO14,             /* Invalid VGA mode */
    MONO21,
    MONO28,
    MONO43,
    MONO50,
    MONO60,

    _ORIGMODE = 65      /* original mode at program startup */


>          pixel()
short setpixel(short x, short y);

   could be _setpixel. Sets pixel to current colour.

>          display_image()

  You'll probably have to write this yourself, as display_image() isn't 
built-in either.

>          polygon()           <-- do i have to write my own for this one?
something polygon(int screen, int arraylen, int *xyarray, int colour);

I'm not sure about this one. I've only seen it in some code.

>
>
>I would also like to know if there is an easy way to implement sequences in 
>C.
>

  The closest you can get is an array. You need to malloc() it and realloc() 
it when needed.

>Thanks in advance.
>sml.
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu