sundog icon indicating copy to clipboard operation
sundog copied to clipboard

Competely Different Graphics Layer

Open tpitman opened this issue 2 years ago • 3 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?

tpitman avatar Oct 15 '21 14:10 tpitman

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.

laanwj avatar Dec 30 '22 20:12 laanwj

I will look into it. Thanks.

tpitman avatar Dec 30 '22 20:12 tpitman

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.

laanwj avatar Jan 29 '23 11:01 laanwj