Fixed font atlas, feature completed garbage collection, and fix math.
This commit is contained in:
@@ -43,6 +43,7 @@ namespace ehs
|
||||
atlas = new Byte[resolution.x * resolution.y];
|
||||
size = 0;
|
||||
fData.ReadArray(atlas, &size);
|
||||
fData.ReadArray(atlas, &size);
|
||||
}
|
||||
|
||||
FontAtlas::FontAtlas(FontAtlas&& fa) noexcept
|
||||
|
@@ -1,6 +1,7 @@
|
||||
#include "ehs/io/audio/AudioDevice_ALSA.h"
|
||||
#include "ehs/EHS.h"
|
||||
#include "ehs/Log.h"
|
||||
#include "ehs/io/Console.h"
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
@@ -366,13 +367,21 @@ namespace ehs
|
||||
}
|
||||
else
|
||||
{
|
||||
EHS_LOG_INT(LogType::ERR, 0, "Wrong value for the audio device type.");
|
||||
EHS_LOG_INT(LogType::ERR, 1, "Wrong value for the audio device type.");
|
||||
return {};
|
||||
}
|
||||
|
||||
int err = snd_pcm_open(&result.hdl, "default", rType, SND_PCM_NONBLOCK);
|
||||
if (err < 0)
|
||||
{
|
||||
EHS_LOG_INT(LogType::ERR, 2, "Failed to retrieve default audio device with error #" + Str_8::FromNum(err) + ".");
|
||||
return {};
|
||||
}
|
||||
|
||||
snd_pcm_open(&result.hdl, "default", rType, SND_PCM_NONBLOCK);
|
||||
result.type = AudioDeviceType::OUTPUT;
|
||||
|
||||
EHS_LOG_SUCCESS();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -380,4 +389,4 @@ namespace ehs
|
||||
{
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -275,7 +275,6 @@ namespace ehs
|
||||
|
||||
meshes[i].SetIndices(data.ReadArray<UInt_32, UInt_64>());
|
||||
|
||||
/*
|
||||
Bone& skeleton = mdl->GetSkeleton();
|
||||
UInt_8 boneCount = data.Read<UInt_8>();
|
||||
for (UInt_8 b = 0; b < boneCount; ++b)
|
||||
@@ -329,7 +328,6 @@ namespace ehs
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@@ -29,7 +29,7 @@ namespace ehs
|
||||
}
|
||||
|
||||
Mesh::Mesh(const Mesh& mesh)
|
||||
: BaseObj((BaseObj&&)mesh), hashId(mesh.hashId), id(mesh.id), vertices(mesh.vertices), indices(mesh.indices)
|
||||
: BaseObj(mesh), hashId(mesh.hashId), id(mesh.id), vertices(mesh.vertices), indices(mesh.indices)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user