Using Scale2xSDL

robert8192

New member
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.
 

pix07

Member
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
:happy: 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/2045774/developing-c-wrapper-api-for-object-oriented-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:
Top