Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Competely Different Graphics Layer #11

Open
tpitman opened this issue Oct 15, 2021 · 3 comments
Open

Competely Different Graphics Layer #11

tpitman opened this issue Oct 15, 2021 · 3 comments
Labels

Comments

@tpitman
Copy link

tpitman commented Oct 15, 2021

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
Copy link
Owner

laanwj commented Dec 30, 2022

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
Copy link
Author

tpitman commented Dec 30, 2022

I will look into it. Thanks.

@laanwj laanwj added the question label Jan 1, 2023
@laanwj
Copy link
Owner

laanwj commented Jan 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants