[nostalgia/core/opengl] Cleanup

This commit is contained in:
Gary Talent 2025-01-14 21:18:22 -06:00
parent 8764444758
commit ceb54b3f1b

View File

@ -111,15 +111,15 @@ static constexpr auto bgVertexRow(uint_t x, uint_t y) noexcept {
}
static void setSpriteBufferObject(
uint_t vi,
float enabled,
uint_t const vi,
float const enabled,
float x,
float y,
uint_t textureRow,
uint_t flipX,
uint_t priority,
ox::Span<float> vbo,
ox::Span<GLuint> ebo) noexcept {
uint_t const textureRow,
uint_t const flipX,
uint_t const priority,
ox::Span<float> const vbo,
ox::Span<GLuint> const ebo) noexcept {
// don't worry, this memcpy gets optimized to something much more ideal
constexpr float xmod = 0.1f;
constexpr float ymod = 0.1f;
@ -147,16 +147,16 @@ static void setSpriteBufferObject(
}
static void setTileBufferObject(
uint_t vi,
uint_t const vi,
float x,
float y,
float textureTileIdx,
float priority,
float palOffset,
bool flipX,
bool flipY,
ox::Span<float> vbo,
ox::Span<GLuint> ebo) noexcept {
float const textureTileIdx,
float const priority,
float const palOffset,
bool const flipX,
bool const flipY,
ox::Span<float> const vbo,
ox::Span<GLuint> const ebo) noexcept {
// don't worry, this memcpy gets optimized to something much more ideal
constexpr float ymod = 0.1f;
constexpr float xmod = 0.1f;