diff options
Diffstat (limited to 'tools/platform/model.h')
| -rw-r--r-- | tools/platform/model.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/tools/platform/model.h b/tools/platform/model.h index b4aff9273..b0c625ec9 100644 --- a/tools/platform/model.h +++ b/tools/platform/model.h @@ -1,25 +1,26 @@ // model.h #pragma once +#include "platform-api.h" +#include "slang-com-ptr.h" #include "slang-gfx.h" #include "vector-math.h" -#include "slang-com-ptr.h" -#include <vector> -#include <string> -#include "platform-api.h" +#include <string> +#include <vector> -namespace platform { +namespace platform +{ struct ModelLoader { struct MaterialData { - glm::vec3 diffuseColor; - glm::vec3 specularColor; - float specularity; + glm::vec3 diffuseColor; + glm::vec3 specularColor; + float specularity; - Slang::ComPtr<gfx::ITextureResource> diffuseMap; + Slang::ComPtr<gfx::ITextureResource> diffuseMap; }; struct Vertex @@ -36,18 +37,18 @@ struct ModelLoader int firstIndex; int indexCount; - void* material; + void* material; }; struct ModelData { Slang::ComPtr<gfx::IBufferResource> vertexBuffer; Slang::ComPtr<gfx::IBufferResource> indexBuffer; - gfx::PrimitiveTopology primitiveTopology; - int vertexCount; - int indexCount; - int meshCount; - void* const* meshes; + gfx::PrimitiveTopology primitiveTopology; + int vertexCount; + int indexCount; + int meshCount; + void* const* meshes; }; struct ICallbacks @@ -76,4 +77,4 @@ struct ModelLoader }; -} // gfx +} // namespace platform |
