laanwj / sundog

A port of the Atari ST game SunDog: Frozen Legacy (1984) by FTL software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Competely Different Graphics Layer

tpitman opened this issue · comments

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?

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.

I will look into it. Thanks.

commented

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.