mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-16 01:43:04 +00:00
chore: use templating for t6 techset compilation
This commit is contained in:
41
src/ObjCompiling/Techset/VertexDeclCompiler.h.template
Normal file
41
src/ObjCompiling/Techset/VertexDeclCompiler.h.template
Normal file
@@ -0,0 +1,41 @@
|
||||
#options GAME(T6)
|
||||
|
||||
#filename "Game/" + GAME + "/Techset/VertexDeclCompiler" + GAME + ".h"
|
||||
|
||||
#set GAME_HEADER "\"Game/" + GAME + "/" + GAME + ".h\""
|
||||
|
||||
#if GAME == "IW3"
|
||||
#define FEATURE_IW3
|
||||
#elif GAME == "IW4"
|
||||
#define FEATURE_IW4
|
||||
#elif GAME == "IW5"
|
||||
#define FEATURE_IW5
|
||||
#elif GAME == "T5"
|
||||
#define FEATURE_T5
|
||||
#elif GAME == "T6"
|
||||
#define FEATURE_T6
|
||||
#endif
|
||||
|
||||
// This file was templated.
|
||||
// See VertexDeclCompiler.h.template.
|
||||
// Do not modify, changes will be lost.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Asset/IAssetCreator.h"
|
||||
#include "Utils/MemoryManager.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#set CREATE_COMPILER_METHOD "CreateVertexDeclCompiler" + GAME
|
||||
|
||||
#if defined(FEATURE_T6)
|
||||
#define INTERFACE_NAME ISubAssetCreator
|
||||
#else
|
||||
#define INTERFACE_NAME IAssetCreator
|
||||
#endif
|
||||
|
||||
namespace techset
|
||||
{
|
||||
std::unique_ptr<INTERFACE_NAME> CREATE_COMPILER_METHOD(MemoryManager& memory);
|
||||
}
|
||||
Reference in New Issue
Block a user