[nostalgia/sample_project] Update integer type descriptor names

This commit is contained in:
2022-07-21 02:14:40 -05:00
parent 3a2995a67b
commit d2d9aae9d5
11 changed files with 16 additions and 17 deletions

View File

@ -4,16 +4,15 @@
#include <imgui_impl_opengl3.h>
#include <nostalgia/glutils/glutils.hpp>
#include <ox/std/array.hpp>
#include <ox/std/fmt.hpp>
#include <nostalgia/glutils/glutils.hpp>
#include <nostalgia/core/config.hpp>
#include <nostalgia/core/gfx.hpp>
#include "nostalgia/core/context.hpp"
namespace nostalgia::core {
void ImGui_Impl_NewFrame() noexcept;
@ -99,8 +98,8 @@ static void initBackgroundBufferObjects(Context *ctx, glutils::BufferSet *bg) no
for (auto x = 0u; x < TileColumns; ++x) {
for (auto y = 0u; y < TileRows; ++y) {
const auto i = bgVertexRow(x, y);
auto vbo = &bg->vertices[i * BgVertexVboLength];
auto ebo = &bg->elements[i * BgVertexEboLength];
auto vbo = &bg->vertices[i * static_cast<std::size_t>(BgVertexVboLength)];
auto ebo = &bg->elements[i * static_cast<std::size_t>(BgVertexEboLength)];
setTileBufferObject(ctx, i * BgVertexVboRows, static_cast<float>(x), static_cast<float>(y), 0, vbo, ebo);
}
}