SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
CohTextureConverter.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 #include "Common/Runtime/Model.h"
10 
11 #include <Lutefisk3D/Container/Ptr.h>
12 #include <Lutefisk3D/Graphics/Texture.h>
13 #include <Lutefisk3D/Math/Vector2.h>
14 #include <glm/vec2.hpp>
15 #include <QHash>
16 #include <vector>
17 #include <unordered_map>
18 
19 class QString;
20 
21 namespace Urho3D
22 {
23  class Texture;
24  class Context;
25 }
26 
27 extern std::unordered_map<uint32_t,Urho3D::SharedPtr<Urho3D::Texture>> g_converted_textures;
28 
29 SEGS::HTexture tryLoadTexture(Urho3D::Context *ctx, const QString &fname);
30 std::vector<SEGS::HTexture> getModelTextures(Urho3D::Context *ctx,std::vector<QString> &a1);
Definition: CohModelConverter.h:20
uint8_t SingularStoreHandleT< 20, 12, struct TextureWrapper > HTexture
Definition: Model.h:30
std::vector< SEGS::HTexture > getModelTextures(Urho3D::Context *ctx, std::vector< QString > &a1)
Definition: CohTextureConverter.cpp:125
SEGS::HTexture tryLoadTexture(Urho3D::Context *ctx, const QString &fname)
Definition: CohTextureConverter.cpp:54
std::unordered_map< uint32_t, Urho3D::SharedPtr< Urho3D::Texture > > g_converted_textures
Definition: CohTextureConverter.cpp:34