зеркало из https://github.com/microsoft/DirectXTK.git
36 строки
950 B
C++
36 строки
950 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.
|
|
// 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");
|