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

(WIP) First, bad, groundwork implementation of OpenGL backend #183

Merged
merged 5 commits into from
Jan 11, 2025

Conversation

JaceCear
Copy link
Collaborator

No description provided.

@@ -88,6 +88,11 @@ NONMATCH("asm/non_matching/engine/sub_8002B20.inc", bool32 sub_8002B20(void))
s32 j;
u16 k;

#if (RENDERER == RENDERER_OPENGL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well be consistent and do if (RENDERER == RENDERER_SOFTWARE) around the whole thing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For such a big function? I'd rather keep it with a short #ifdef.

src/core.c Outdated
@@ -720,7 +720,9 @@ static bool32 ProcessVramGraphicsCopyQueue(void)
if ((graphics->src != 0) && (graphics->dest != 0))
#endif
{
#if (RENDERER != RENDERER_OPENGL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renderer == software for these too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I'd like to keep everything except the memcpy intact, because I don't yet know if it breaks something if the size isn't reduced correctly. As well as INC_GRAPHICS_QUEUE_CURSOR() not being called otherwise.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's fine, I guess I just meant you could use RENDER == software instead of RENDERER != OPEN_GL?

@JaceCear JaceCear merged commit 2a0cb85 into main Jan 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants