Skip to content

Commit

Permalink
issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
NevilClavain committed Aug 10, 2023
1 parent 3fc84c1 commit d5dff97
Show file tree
Hide file tree
Showing 31 changed files with 224 additions and 234 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,8 @@ void PlanetsRenderingAspectImpl::draw_sub_passes(void)
}
}

task->SetTargetDescr(sequence_id);
task->SetActionDescr("UPDATE_SINGLESHOT_SUBPASS_QUEUES");
task->setTargetDescr(sequence_id);
task->setActionDescr("UPDATE_SINGLESHOT_SUBPASS_QUEUES");
task->SetRenderingQueue(queues);
task->DisableOpt(true);

Expand Down
4 changes: 2 additions & 2 deletions src/buildemeshetask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ DrawSpace::Logger::Sink bmt_logger("BuildeMesheTask", DrawSpace::Logger::Configu
using namespace DrawSpace;
using namespace DrawSpace::Systems;

BuildMesheTask::BuildMesheTask() : ITask("BUILDMESHE", "")
BuildMesheTask::BuildMesheTask() : Task("BUILDMESHE", "")
{
}

void BuildMesheTask::Execute(void)
void BuildMesheTask::execute(void)
{
build_meshe(m_entity, m_meshe_node, m_meshes, m_target_meshe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/buildemeshetask.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ namespace DrawSpace
{
namespace Systems
{
struct BuildMesheTask : public Interface::ITask
struct BuildMesheTask : public Task
{
public:

BuildMesheTask();

void Execute(void);
void execute(void);
void SetEntity(Core::Entity* p_entity);
void SetMeshesIOInfos(aiMesh** m_source_meshes, Core::Meshe* p_target_meshe, aiNode* p_meshe_node);

Expand Down
4 changes: 2 additions & 2 deletions src/compileshadertask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ using namespace DrawSpace::Utils;
using namespace DrawSpace::Interface;
using namespace DrawSpace::Systems;

CompileShaderTask::CompileShaderTask() : ITask("COMPILESHADER", "")
CompileShaderTask::CompileShaderTask() : Task("COMPILESHADER", "")
{
}

void CompileShaderTask::Execute(void)
void CompileShaderTask::execute(void)
{
m_failure = false;

Expand Down
6 changes: 3 additions & 3 deletions src/compileshadertask.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Renderer;

namespace Systems
{
struct CompileShaderTask : public Interface::ITask
struct CompileShaderTask : public Task
{
private:

Expand All @@ -54,13 +54,13 @@ struct CompileShaderTask : public Interface::ITask

// shader bytecode buffer infos...
long m_bc_length;
void* m_bc{ nullptr };
void* m_bc{ nullptr };

public:

CompileShaderTask();

void Execute(void);
void execute(void);
void SetShaderText(void* p_text, long p_text_size, int p_shadertype);
void SetShaderDirs(const dsstring& p_final_asset_dir, const dsstring& p_asset_path);
void SetRenderer(DrawSpace::Interface::Renderer* p_renderer);
Expand Down
4 changes: 2 additions & 2 deletions src/createdirectorytask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ using namespace DrawSpace::Systems;

const dsstring CreateDirectoryTask::bcCacheName{ "bc_cache" };

CreateDirectoryTask::CreateDirectoryTask() : ITask("CREATEDIRECTORY", "")
CreateDirectoryTask::CreateDirectoryTask() : Task("CREATEDIRECTORY", "")
{
}

void CreateDirectoryTask::Execute(void)
void CreateDirectoryTask::execute(void)
{
dsstring path{ bcCacheName + dsstring("\\") + m_shader_id.c_str() };
DrawSpace::FileSystem::createDirectory(path);
Expand Down
4 changes: 2 additions & 2 deletions src/createdirectorytask.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DrawSpace
{
namespace Systems
{
struct CreateDirectoryTask : public Interface::ITask
struct CreateDirectoryTask : public Task
{
private:

Expand All @@ -44,7 +44,7 @@ struct CreateDirectoryTask : public Interface::ITask

CreateDirectoryTask();

void Execute(void);
void execute(void);
void SetShaderId(const dsstring& p_shader_id);
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/fillmeshesownernamestask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
using namespace DrawSpace;
using namespace DrawSpace::Systems;

FillMeshesOwnerNamesTask::FillMeshesOwnerNamesTask() : ITask("FILLMESHESOWNERNAMES", "")
FillMeshesOwnerNamesTask::FillMeshesOwnerNamesTask() : Task("FILLMESHESOWNERNAMES", "")
{
}

void FillMeshesOwnerNamesTask::Execute(void)
void FillMeshesOwnerNamesTask::execute(void)
{
m_meshes_node_owner_names.resize(m_nb_meshes);
fill_scene_node(m_root);
Expand Down
4 changes: 2 additions & 2 deletions src/fillmeshesownernamestask.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DrawSpace
{
namespace Systems
{
struct FillMeshesOwnerNamesTask : public Interface::ITask
struct FillMeshesOwnerNamesTask : public Task
{
private:

Expand All @@ -46,7 +46,7 @@ struct FillMeshesOwnerNamesTask : public Interface::ITask

FillMeshesOwnerNamesTask();

void Execute(void);
void execute(void);
void SetNbMeshes(int p_nb_meshes);
void SetRoot(aiNode* p_root);
std::vector<dsstring> GetNodesNamesList(void) const;
Expand Down
4 changes: 2 additions & 2 deletions src/loadanimationstask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ using namespace DrawSpace;
using namespace DrawSpace::Systems;


LoadAnimationsTask::LoadAnimationsTask() : ITask("LOADANIMATIONS", "")
LoadAnimationsTask::LoadAnimationsTask() : Task("LOADANIMATIONS", "")
{
}

void LoadAnimationsTask::Execute(void)
void LoadAnimationsTask::execute(void)
{
std::map<dsstring, Aspect::AnimationsAspect::Node> scene_nodes;
aiNode* root{ m_scene->mRootNode };
Expand Down
4 changes: 2 additions & 2 deletions src/loadanimationstask.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DrawSpace
{
namespace Systems
{
struct LoadAnimationsTask : public Interface::ITask
struct LoadAnimationsTask : public Task
{
private:

Expand All @@ -46,7 +46,7 @@ struct LoadAnimationsTask : public Interface::ITask

LoadAnimationsTask();

void Execute(void);
void execute(void);
void SetScene(const aiScene* p_scene);
void SetAnimAspect(Aspect::AnimationsAspect* p_aspect);
};
Expand Down
5 changes: 2 additions & 3 deletions src/loadfiletask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@
#include "loadfiletask.h"

using namespace DrawSpace;
using namespace DrawSpace::Interface;
using namespace DrawSpace::Systems;

LoadFileTask::LoadFileTask() : ITask("", "")
LoadFileTask::LoadFileTask() : Task("", "")
{
}

void LoadFileTask::Execute(void)
void LoadFileTask::execute(void)
{
long size;
void* data = File::loadAndAllocBinaryFile(m_final_asset_path, &size);
Expand Down
4 changes: 2 additions & 2 deletions src/loadfiletask.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DrawSpace
{
namespace Systems
{
struct LoadFileTask : public Interface::ITask
struct LoadFileTask : public Task
{
private:
// execution data
Expand All @@ -46,7 +46,7 @@ struct LoadFileTask : public Interface::ITask

LoadFileTask();

void Execute(void);
void execute(void);

void SetFinalAssetPath(const dsstring& p_final_asset_path);
bool Failed(void) const;
Expand Down
6 changes: 2 additions & 4 deletions src/loadfiletoassimptask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
#include "memalloc.h"

using namespace DrawSpace;
using namespace DrawSpace::Utils;
using namespace DrawSpace::Interface;
using namespace DrawSpace::Systems;

LoadFileToAssimpTask::LoadFileToAssimpTask() : ITask("LOADFILETOASSIMP", "")
LoadFileToAssimpTask::LoadFileToAssimpTask() : Task("LOADFILETOASSIMP", "")
{
}

void LoadFileToAssimpTask::Execute(void)
void LoadFileToAssimpTask::execute(void)
{
long size;

Expand Down
4 changes: 2 additions & 2 deletions src/loadfiletoassimptask.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ namespace Core
}
namespace Systems
{
struct LoadFileToAssimpTask : public Interface::ITask
struct LoadFileToAssimpTask : public Task
{
public:

LoadFileToAssimpTask();

void Execute(void);
void execute(void);
void SetFinalAssetPath(const dsstring& p_final_asset_path);

void SetTargetMeshe(DrawSpace::Core::Meshe* p_meshe);
Expand Down
5 changes: 2 additions & 3 deletions src/loadshaderfiletask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@

using namespace DrawSpace;
using namespace DrawSpace::Utils;
using namespace DrawSpace::Interface;
using namespace DrawSpace::Systems;

LoadShaderFileTask::LoadShaderFileTask() : ITask("", "")
LoadShaderFileTask::LoadShaderFileTask() : Task("", "")
{
}

Expand All @@ -43,7 +42,7 @@ LoadShaderFileTask::~LoadShaderFileTask()
release_blocs();
}

void LoadShaderFileTask::Execute(void)
void LoadShaderFileTask::execute(void)
{
dsstring shader_source;
recurs_browse_shader_source(m_final_asset_path, shader_source);
Expand Down
4 changes: 2 additions & 2 deletions src/loadshaderfiletask.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace DrawSpace
{
namespace Systems
{
struct LoadShaderFileTask : public Interface::ITask
struct LoadShaderFileTask : public Task
{
private:

Expand All @@ -57,7 +57,7 @@ struct LoadShaderFileTask : public Interface::ITask
LoadShaderFileTask();
~LoadShaderFileTask();

void Execute(void);
void execute(void);

void SetFinalAssetPath(const dsstring& p_final_asset_path);
void SetFinalAssetDir(const dsstring& p_final_asset_dir);
Expand Down
Loading

0 comments on commit d5dff97

Please sign in to comment.