tyra icon indicating copy to clipboard operation
tyra copied to clipboard

Cross platform with x86 architecture

Open h4570 opened this issue 3 years ago • 3 comments

I'm wondering about splitting strict PS2 code with shared (multiplatform) code. This way, we can add automatical unit tests to shared code.

h4570 avatar Sep 02 '22 15:09 h4570

I'm wondering about splitting strict PS2 code with shared (multiplatform) code. This way, we can add automatical unit tests to shared code.

You mean this Engine will be multiplataform?

Wolf3s avatar Sep 02 '22 17:09 Wolf3s

Hmm, only "partially".

I want to create 3 folders in engine/src:

engine/src/shared/
engine/src/x86/
engine/src/ps2/

And split existing code, so it will be compilable on windows/linux, but not runnable. For example: x86 implementation for renderer will be totally empty.

Of course it will open possibility to add easily real multiplatform in future, but I'm not planning it at this moment. I want to just add possibilty to run unit tests, and add a lot of unit tests.

h4570 avatar Sep 02 '22 17:09 h4570

Cool! I just recommend if you wanna do the Linux or other os, like instead of creating x86, you could create engine/src/pc/x86 or engine/src/some os/some stuff/

Wolf3s avatar Sep 02 '22 18:09 Wolf3s