[nostalgia/sample_project] Update integer type descriptor names
This commit is contained in:
parent
3a2995a67b
commit
d2d9aae9d5
@ -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"
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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",
|
||||||
|
@ -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,
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user