Commit e958cca2 by wester

testing exposed Loader

parent ea7c4262
Subproject commit 110727d81d3f44dc58f8b2c09c8c27e4c1b6a3dd Subproject commit 6cdeb206bf470f82109e4569d2d1b0f1015b9f19
...@@ -5,17 +5,23 @@ using UnrealBuildTool; ...@@ -5,17 +5,23 @@ using UnrealBuildTool;
public class MasterTestProject : ModuleRules public class MasterTestProject : ModuleRules
{ {
public MasterTestProject(TargetInfo Target) public MasterTestProject(TargetInfo Target)
{ {
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PrivateDependencyModuleNames.AddRange(new string[] { }); PublicIncludePaths.AddRange(new string[] { "GLTFLoader/Public", "GLTFLoader/Classes" });
// Uncomment if you are using Slate UI PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "GLTFLoader" });
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
} PrivateDependencyModuleNames.AddRange(new string[] { });
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
} }
// Fill out your copyright notice in the Description page of Project Settings. // Fill out your copyright notice in the Description page of Project Settings.
#include "MasterTestProject.h" #include "MasterTestProject.h"
#include "GLTFMeshBuilder.h"
#include "GLTFLoader/Public/GLTFMeshBuilder.h"
//#include "GLTF/GLTFMeshBuilder.h"
#include "StaticGLTFComponent.h" #include "StaticGLTFComponent.h"
UStaticGLTFComponent::UStaticGLTFComponent() UStaticGLTFComponent::UStaticGLTFComponent()
{ {
GLTFPath = TEXT("H:/Repositories/MasterArbeit/glTF-Sample-Models/1.0/Duck/glTF/Duck.gltf"); 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() 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: ...@@ -25,6 +25,8 @@ public:
virtual void OnRegister() override; 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