mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-25 07:35:36 +01:00
37 lines
972 B
C
37 lines
972 B
C
|
//--------------------------------------------------------------------------------------
|
||
|
// File: vbo.h
|
||
|
//
|
||
|
// The VBO file format was introduced in the Windows 8.0 ResourceLoading sample. It's
|
||
|
// a simple binary file containing a 16-bit index buffer and a fixed-format vertex buffer.
|
||
|
//
|
||
|
// The meshconvert sample tool for DirectXMesh can produce this file type
|
||
|
// http://go.microsoft.com/fwlink/?LinkID=324981
|
||
|
//
|
||
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
// Licensed under the MIT License.
|
||
|
//
|
||
|
// http://go.microsoft.com/fwlink/?LinkId=248929
|
||
|
// http://go.microsoft.com/fwlink/?LinkID=615561
|
||
|
//--------------------------------------------------------------------------------------
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace VBO
|
||
|
{
|
||
|
#pragma pack(push,1)
|
||
|
|
||
|
struct header_t
|
||
|
{
|
||
|
uint32_t numVertices;
|
||
|
uint32_t numIndices;
|
||
|
};
|
||
|
|
||
|
#pragma pack(pop)
|
||
|
|
||
|
} // namespace
|
||
|
|
||
|
static_assert(sizeof(VBO::header_t) == 8, "VBO header size mismatch");
|
||
|
|