Updated for recent back-end changes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "TestLevel.h"
|
||||
|
||||
#include <ehs/GarbageCollector.h>
|
||||
#include <ehs/GC.h>
|
||||
#include <ehs/io/Console.h>
|
||||
#include <ehs/io/File.h>
|
||||
#include <ehs/io/socket/DNS.h>
|
||||
@@ -87,6 +87,7 @@ void TestLevel::SetupResources(lwe::GpuInterface* inf)
|
||||
|
||||
lwe::GpuModel* vampire = new lwe::GpuModel("resources/models/Vampire.ehm", inf);
|
||||
AddResource(vampire);
|
||||
|
||||
AddResource(new lwe::GpuImg("resources/textures/Character_Diffuse.png", inf, lwe::IMG_ASPECT_COLOR));
|
||||
AddResource(new lwe::GpuImg("resources/textures/Character_Normal.png", inf, lwe::IMG_ASPECT_COLOR));
|
||||
AddResource(new lwe::GpuImg("resources/textures/Character_Specular.png", inf, lwe::IMG_ASPECT_COLOR));
|
||||
@@ -100,7 +101,6 @@ void TestLevel::SetupResources(lwe::GpuInterface* inf)
|
||||
|
||||
AddResource(new lwe::GpuModel("resources/models/Cube.ehm", inf));
|
||||
AddResource(new lwe::GpuModel("resources/models/Sphere.ehm", inf));
|
||||
AddResource(new lwe::GpuModel("resources/models/PointLight.ehm", inf));
|
||||
|
||||
lwe::GpuCubeMap* cm = new lwe::GpuCubeMap(inf, "resources/textures/skybox", "Skybox");
|
||||
AddResource(cm);
|
||||
@@ -285,7 +285,7 @@ void TestLevel::Setup(lwe::GpuInterface* inf)
|
||||
deltaTime->SetText("Delta Time: " + ehs::Str_8::FromNum(gl->GetRawDeltaTime()));
|
||||
|
||||
lwe::LabelGui* gbg = (lwe::LabelGui*)stats->GetChild("Garbage");
|
||||
gbg->SetText("Garbage: " + ehs::Str_8::FromNum(ehs::GarbageCollector::Size()));
|
||||
gbg->SetText("Garbage: " + ehs::Str_8::FromNum(ehs::GC::Size()));
|
||||
}});
|
||||
|
||||
/*
|
||||
@@ -486,7 +486,7 @@ void TestLevel::OnUpdate(lwe::RenderWindow* win, ehs::Input* input, const float
|
||||
if (!ent)
|
||||
return;
|
||||
|
||||
ent->SetRot(ent->GetRot() + ehs::Vec3_f(50.0f) * delta);
|
||||
//ent->SetRot(ent->GetRot() + ehs::Vec3_f(50.0f) * delta);
|
||||
|
||||
lwe::Entity* ply = GetEntity("Player");
|
||||
if (ply && win->IsCursorConstrained() && !win->IsCursorVisible())
|
||||
|
Reference in New Issue
Block a user