[nostalgia/core/opengl] Cleanup
This commit is contained in:
parent
8764444758
commit
ceb54b3f1b
@ -111,15 +111,15 @@ static constexpr auto bgVertexRow(uint_t x, uint_t y) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void setSpriteBufferObject(
|
static void setSpriteBufferObject(
|
||||||
uint_t vi,
|
uint_t const vi,
|
||||||
float enabled,
|
float const enabled,
|
||||||
float x,
|
float x,
|
||||||
float y,
|
float y,
|
||||||
uint_t textureRow,
|
uint_t const textureRow,
|
||||||
uint_t flipX,
|
uint_t const flipX,
|
||||||
uint_t priority,
|
uint_t const priority,
|
||||||
ox::Span<float> vbo,
|
ox::Span<float> const vbo,
|
||||||
ox::Span<GLuint> ebo) noexcept {
|
ox::Span<GLuint> const ebo) noexcept {
|
||||||
// don't worry, this memcpy gets optimized to something much more ideal
|
// don't worry, this memcpy gets optimized to something much more ideal
|
||||||
constexpr float xmod = 0.1f;
|
constexpr float xmod = 0.1f;
|
||||||
constexpr float ymod = 0.1f;
|
constexpr float ymod = 0.1f;
|
||||||
@ -147,16 +147,16 @@ static void setSpriteBufferObject(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void setTileBufferObject(
|
static void setTileBufferObject(
|
||||||
uint_t vi,
|
uint_t const vi,
|
||||||
float x,
|
float x,
|
||||||
float y,
|
float y,
|
||||||
float textureTileIdx,
|
float const textureTileIdx,
|
||||||
float priority,
|
float const priority,
|
||||||
float palOffset,
|
float const palOffset,
|
||||||
bool flipX,
|
bool const flipX,
|
||||||
bool flipY,
|
bool const flipY,
|
||||||
ox::Span<float> vbo,
|
ox::Span<float> const vbo,
|
||||||
ox::Span<GLuint> ebo) noexcept {
|
ox::Span<GLuint> const ebo) noexcept {
|
||||||
// don't worry, this memcpy gets optimized to something much more ideal
|
// don't worry, this memcpy gets optimized to something much more ideal
|
||||||
constexpr float ymod = 0.1f;
|
constexpr float ymod = 0.1f;
|
||||||
constexpr float xmod = 0.1f;
|
constexpr float xmod = 0.1f;
|
||||||
|
Loading…
Reference in New Issue
Block a user