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

Simplify draw functions #218

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Simplify draw functions #218

wants to merge 5 commits into from

Conversation

robalni
Copy link
Contributor

@robalni robalni commented Oct 11, 2020

This makes the flow of the code more direct and linear and easy to follow. The code should still do exactly the same thing as before.

Robert Alm Nilsson added 5 commits October 11, 2020 20:22
Unrolling some loops and inlining some functions to make it easier to
see the flow of the code.
Everything this function does is already done inside gl_drawframe. The
only exception is that drawnoview calls drawnoviewtype instead of
drawviewtype.
By moving the code into drawviewtype. The advantage is that now there is
only one function so we don't need the function pointer or many small if
statements, only one big if statement.
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.

1 participant