[nostalgia/sample_project] Update integer type descriptor names

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

View File

@ -1,5 +1,5 @@
O1;net.drinkingtea.ox.DescriptorType;2;{ O1;net.drinkingtea.ox.DescriptorType;2;{
"length" : 4, "length" : 4,
"primitiveType" : 1, "primitiveType" : 1,
"typeName" : "B.int32_t" "typeName" : "B.int32"
} }

View File

@ -1,5 +1,5 @@
O1;net.drinkingtea.ox.DescriptorType;2;{ O1;net.drinkingtea.ox.DescriptorType;2;{
"length" : 1, "length" : 1,
"primitiveType" : 1, "primitiveType" : 1,
"typeName" : "B.int8_t" "typeName" : "B.int8"
} }

View File

@ -1,4 +1,4 @@
O1;net.drinkingtea.ox.DescriptorType;2;{ O1;net.drinkingtea.ox.DescriptorType;2;{
"length" : 2, "length" : 2,
"typeName" : "B.uint16_t" "typeName" : "B.uint16"
} }

View File

@ -1,4 +1,4 @@
O1;net.drinkingtea.ox.DescriptorType;2;{ O1;net.drinkingtea.ox.DescriptorType;2;{
"length" : 8, "length" : 8,
"typeName" : "B.uint64_t" "typeName" : "B.uint64"
} }

View File

@ -1,4 +1,4 @@
O1;net.drinkingtea.ox.DescriptorType;2;{ O1;net.drinkingtea.ox.DescriptorType;2;{
"length" : 1, "length" : 1,
"typeName" : "B.uint8_t" "typeName" : "B.uint8"
} }

View File

@ -4,7 +4,7 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
{ {
"fieldName" : "colors", "fieldName" : "colors",
"subscriptLevels" : 1, "subscriptLevels" : 1,
"typeName" : "B.uint16_t" "typeName" : "B.uint16"
} }
], ],
"primitiveType" : 5, "primitiveType" : 5,

View File

@ -7,11 +7,11 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
}, },
{ {
"fieldName" : "rows", "fieldName" : "rows",
"typeName" : "B.int32_t" "typeName" : "B.int32"
}, },
{ {
"fieldName" : "columns", "fieldName" : "columns",
"typeName" : "B.int32_t" "typeName" : "B.int32"
}, },
{ {
"fieldName" : "subsheets", "fieldName" : "subsheets",
@ -21,7 +21,7 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
{ {
"fieldName" : "pixels", "fieldName" : "pixels",
"subscriptLevels" : 1, "subscriptLevels" : 1,
"typeName" : "B.uint8_t" "typeName" : "B.uint8"
} }
], ],
"primitiveType" : 5, "primitiveType" : 5,

View File

@ -3,7 +3,7 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
[ [
{ {
"fieldName" : "bpp", "fieldName" : "bpp",
"typeName" : "B.int8_t" "typeName" : "B.int8"
}, },
{ {
"fieldName" : "defaultPalette", "fieldName" : "defaultPalette",

View File

@ -11,7 +11,7 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
}, },
{ {
"fieldName" : "inode", "fieldName" : "inode",
"typeName" : "B.uint64_t" "typeName" : "B.uint64"
} }
], ],
"primitiveType" : 6, "primitiveType" : 6,

View File

@ -3,7 +3,7 @@ O1;net.drinkingtea.ox.DescriptorType;2;{
[ [
{ {
"fieldName" : "type", "fieldName" : "type",
"typeName" : "B.int8_t" "typeName" : "B.int8"
}, },
{ {
"fieldName" : "data", "fieldName" : "data",

View File

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