Skip to content

Commit

Permalink
garbblewarblrelfajustbuildjsargh
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Aug 3, 2024
1 parent 4938dc0 commit 467e936
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/stim/diagram/gltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@

namespace stim_draw_internal {

constexpr size_t GL_FLOAT = 5126;
constexpr size_t GL_ARRAY_BUFFER = 34962;
constexpr size_t GL_UNSIGNED_SHORT = 5123;
constexpr size_t GL_ELEMENT_ARRAY_BUFFER = 34963;
constexpr size_t GL_TRIANGLE_STRIP = 5;
constexpr size_t GL_TRIANGLES = 4;
constexpr size_t GL_TRIANGLE_FAN = 6;

constexpr size_t GL_LINES = 1;
constexpr size_t GL_LINE_STRIP = 3;
constexpr size_t GL_LINE_LOOP = 2;

constexpr size_t GL_REPEAT = 10497;
constexpr size_t GL_CLAMP = 10496;
constexpr size_t GL_CLAMP_TO_EDGE = 33071;
constexpr size_t GL_LINEAR = 9729;
constexpr size_t GL_LINEAR_MIPMAP_NEAREST = 9987;
constexpr size_t GL_NEAREST = 9728;
constexpr uint64_t GL_FLOAT = 5126;
constexpr uint64_t GL_ARRAY_BUFFER = 34962;
constexpr uint64_t GL_UNSIGNED_SHORT = 5123;
constexpr uint64_t GL_ELEMENT_ARRAY_BUFFER = 34963;
constexpr uint64_t GL_TRIANGLE_STRIP = 5;
constexpr uint64_t GL_TRIANGLES = 4;
constexpr uint64_t GL_TRIANGLE_FAN = 6;

constexpr uint64_t GL_LINES = 1;
constexpr uint64_t GL_LINE_STRIP = 3;
constexpr uint64_t GL_LINE_LOOP = 2;

constexpr uint64_t GL_REPEAT = 10497;
constexpr uint64_t GL_CLAMP = 10496;
constexpr uint64_t GL_CLAMP_TO_EDGE = 33071;
constexpr uint64_t GL_LINEAR = 9729;
constexpr uint64_t GL_LINEAR_MIPMAP_NEAREST = 9987;
constexpr uint64_t GL_NEAREST = 9728;

struct GltfId {
std::string name;
Expand Down Expand Up @@ -115,7 +115,7 @@ struct GltfBuffer {
{"bufferView", id.index},
{"byteOffset", 0},
{"componentType", GL_FLOAT},
{"count", vertices.size()},
{"count", (uint64_t)vertices.size()},
{"type", "VEC" + std::to_string(DIM)},
{"min", std::move(min_v)},
{"max", std::move(max_v)},
Expand Down

0 comments on commit 467e936

Please sign in to comment.