Commit e958cca2 by wester

testing exposed Loader

parent ea7c4262
Subproject commit 110727d81d3f44dc58f8b2c09c8c27e4c1b6a3dd
Subproject commit 6cdeb206bf470f82109e4569d2d1b0f1015b9f19
......@@ -6,10 +6,16 @@ public class MasterTestProject : ModuleRules
{
public MasterTestProject(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PublicIncludePaths.AddRange(new string[] { "GLTFLoader/Public", "GLTFLoader/Classes" });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "GLTFLoader" });
PrivateDependencyModuleNames.AddRange(new string[] { });
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
......
// Fill out your copyright notice in the Description page of Project Settings.
#include "MasterTestProject.h"
#include "GLTFMeshBuilder.h"
#include "GLTFLoader/Public/GLTFMeshBuilder.h"
//#include "GLTF/GLTFMeshBuilder.h"
#include "StaticGLTFComponent.h"
UStaticGLTFComponent::UStaticGLTFComponent()
{
GLTFPath = TEXT("H:/Repositories/MasterArbeit/glTF-Sample-Models/1.0/Duck/glTF/Duck.gltf");
//Loader = new tinygltf::TinyGLTFLoader;
//Scene = new tinygltf::Scene;
}
void UStaticGLTFComponent::OnRegister()
{
GLTFMeshBuilder Builder(*GLTFPath);
UGLTFMeshBuilder Builder();
//std::string TempError;
//LoadSuccess = Loader->LoadFromFile((*Scene), TempError, ToStdString(FilePath));
//Error = ToFString(TempError);
//GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Yellow, TEXT("Hello World, this is FPSGameMode!"));
}
......@@ -25,6 +25,8 @@ public:
virtual void OnRegister() override;
private:
//tinygltf::TinyGLTFLoader* Loader;
//tinygltf::Scene* Scene;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment