laanwj / sundog

A port of the Atari ST game SunDog: Frozen Legacy (1984) by FTL software
MIT License
76 stars 13 forks source link

Competely Different Graphics Layer #11

Open tpitman opened 3 years ago

tpitman commented 3 years ago

I would like to port this to an entirely different graphics system if that is possible. Can you give me some tips on where I can insert my own graphics later? I notice in the code it seems to get to the pixel rendering layer and I can do that in the system I want to port to. The question is can I completely remove SDL2 and EGL? If so, where is that "seem" or Interface best replaced?

laanwj commented 1 year ago

It shouldn't be terribly difficult. Basically all the screen handling renders to a pixel buffer, which is in turn copied to a texture and rendered using GLES 2. The latter part can be replaced with any backend,, it doesn't do anything special like fancy shaders. All the implementation is in game/game_screen.c.

tpitman commented 1 year ago

I will look into it. Thanks.

laanwj commented 1 year ago

Although the response is still valid for the current version, a lot of this code changed to deal with multiple upscalers, sound as well as the windows build.

I'd strongly recommend porting SDL to whatever platform you're using.