Results 1 to 2 of 2

Thread: Using Scale2xSDL

  1. #1

    Default Using Scale2xSDL

    Hi, I am working on a new type of emulator as it emulates
    Basic on old consoles like Apple, C64, Atari800 .. etc..

    I have it in a 320-200 mode, as that is the screen resolution
    of the actual hardware.

    I have read about and tried to use the scale2xSDL functions and
    cannot seem to use then correctly.

    If anyone has used then, please give me some help in getting them
    to work.

    Thanks.

  2. #2
    The New Kid pix07's Avatar
    Join Date
    Jul 2016
    Location
    Poland
    Age
    26
    Posts
    17

    Default Re: Using Scale2xSDL

    do you know algorithms ?
    here https://github.com/vext01/dgen-sdl/tree/master/scale2x
    and there http://www.scale2x.it/http://www.scale2x.it/algorithm
    and we read : with these rules (in C language) :

    E0 = D == B && B != F && D != H ? D : E;
    /* if cell E0 is assigned to D equal to B and B is not equal to F and D not equal to h question mark is sign of condition(if)(we can read it as if H if D division by E) of course its can also mean decimal place but no numbers here ) later division by E*/
    later code is the same
    you dont know C ?
    if
    (condition)
    else
    (condition)
    thats a loop
    you welcome
    https://github.com/vext01/dgen-sdl
    /* info aboust signs */
    != not equal
    = assigned
    ==equal
    && and
    || or
    ?:: sign with code scope (if)
    : division but also decimal place and sign of type
    function(int 4: int 2: int 5);
    something like that
    im rookie so i dont know its sounds well you need C/C++ course
    compile SDL make a function with loop then write C code its can be written as C wrapper to C++
    http://stackoverflow.com/questions/2...riented-c-code
    then you just paste code why you need write that if you just can paste
    and https://www.teddy.ch/c++_library_in_c/
    Last edited by pix07; March 10th, 2017 at 07:40. Reason: info
    https://github.com/pix07
    "God made the integers, all else is the work of man "- Leopold Kronecker

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •