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

Table Vectors #789

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from
Open

Table Vectors #789

wants to merge 28 commits into from

Commits on Jun 25, 2024

  1. WIP;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    57b43f8 View commit details
    Browse the repository at this point in the history
  2. vec2;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    e5cb811 View commit details
    Browse the repository at this point in the history
  3. vec4;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    70f80b9 View commit details
    Browse the repository at this point in the history
  4. vec3;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    da2818d View commit details
    Browse the repository at this point in the history
  5. quat;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    40e2d2b View commit details
    Browse the repository at this point in the history
  6. Mat4;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    cdf6063 View commit details
    Browse the repository at this point in the history
  7. Fix newMaterial;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c6971ee View commit details
    Browse the repository at this point in the history
  8. Fix luax_readmat4;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a85936b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bef9ea3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4a249b8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d709e85 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d941e55 View commit details
    Browse the repository at this point in the history
  13. Fix -2 scale components;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    bcf0421 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d1ea3d7 View commit details
    Browse the repository at this point in the history
  15. Details;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6ef4e26 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3fcccd3 View commit details
    Browse the repository at this point in the history
  17. Fix Buffer:setData error messages;

    Prevents "expected number, got number" type error messages for vectors.
    
    Had to add an unfortunate flag for whether checkbufferdata accepts
    numbers or not...
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    39b4b81 View commit details
    Browse the repository at this point in the history
  18. Make readscale consume 1 arg when nil;

    That way all the math stuff consumes the same number of arguments when
    nil.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    326b0d2 View commit details
    Browse the repository at this point in the history
  19. luax_readmat4 uses mat4_fromPose;

    No need for a matrix multiplication here.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    19bb936 View commit details
    Browse the repository at this point in the history
  20. rm some unused maf methods;

    They are in math.lua now.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    2af1b07 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    dc508c4 View commit details
    Browse the repository at this point in the history
  22. Mat4 is a plain userdata instead of a refcounted object;

    This is a lot faster, since it doesn't have to do all the registry
    bookkeeping that the other objects do.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5eafd30 View commit details
    Browse the repository at this point in the history
  23. Details;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    f4bb0c4 View commit details
    Browse the repository at this point in the history
  24. Details;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    3fb293d View commit details
    Browse the repository at this point in the history
  25. quat:direction returns vec3;

    For backwards compatibility.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    98f4c24 View commit details
    Browse the repository at this point in the history
  26. Add vec3:transform/rotate;

    For compatibility.
    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    73025ca View commit details
    Browse the repository at this point in the history
  27. Adjust __index/__newindex;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    9da77e9 View commit details
    Browse the repository at this point in the history
  28. Add limited swizzling;

    bjornbytes committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ce14955 View commit details
    Browse the repository at this point in the history