Issues

Issue #285 resolved

Quad coordinates with floats instead of integers

Boolsheet
created an issue

Quads save their viewport coordinates currently as integers.\ Making them floats instead can help the user avoid border interpolation issues.

Comments (3)

  1. Boolsheet reporter
    • changed status to open

    Commit e297c316e8f8 had a minor impact. There are still functions that convert the lua_Number back to int.

    w_newQuad - opengl/wrap_Graphics.cpp:227
    Gets lua_Numbers from the Lua stack and assigns them to integers.

    Graphics::newQuad - opengl/Graphics.cpp:495
    Function arguments are integers.

    The compiler won't shut up about precision loss (opengl/Font.cpp uses Quad::Viewport too). Can you make him happy with explicit lua_Number -> float casts?

  2. Log in to comment