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

Commits on Oct 11, 2020

  1. Simplify gl_drawframe

    Unrolling some loops and inlining some functions to make it easier to
    see the flow of the code.
    Robert Alm Nilsson committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    385bcd7 View commit details
    Browse the repository at this point in the history
  2. Remove drawnoview

    Everything this function does is already done inside gl_drawframe. The
    only exception is that drawnoview calls drawnoviewtype instead of
    drawviewtype.
    Robert Alm Nilsson committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    472b3e5 View commit details
    Browse the repository at this point in the history
  3. Remove drawnoviewtype

    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.
    Robert Alm Nilsson committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    3dc7d12 View commit details
    Browse the repository at this point in the history
  4. Reset curtime after the switch statement

    Robert Alm Nilsson committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    ad0ced8 View commit details
    Browse the repository at this point in the history
  5. Remove declaration of removed function

    Robert Alm Nilsson committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    ba3a0cc View commit details
    Browse the repository at this point in the history