namespaces are bloat

This commit is contained in:
benkyd
2022-10-24 15:47:12 +01:00
parent dd6ab9be0d
commit fd864d8fc0
12 changed files with 38 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
{
"files.associations": {
"string": "cpp"
"string": "cpp",
"vector": "cpp"
},
"cmake.configureOnOpen": false
}

View File

@@ -2,14 +2,14 @@
#include <iostream>
using namespace core::HART;
using namespace inferno;
extern "C" core::HART::Accelerator* get()
extern "C" Accelerator* get()
{
return new core::HART::Accelerator;
return new Accelerator;
}
extern "C" void destroy(core::HART::Accelerator* inst)
extern "C" void destroy(Accelerator* inst)
{
delete inst;
}

View File

@@ -2,14 +2,14 @@
#include <iostream>
using namespace core::HART;
using namespace inferno;
extern "C" core::HART::Accelerator* get()
extern "C" ::Accelerator* get()
{
return new core::HART::Accelerator;
return new ::Accelerator;
}
extern "C" void destroy(core::HART::Accelerator* inst)
extern "C" void destroy(::Accelerator* inst)
{
delete inst;
}

View File

@@ -1,6 +1,6 @@
#pragma once
namespace core::HART {
namespace inferno {
enum ACCEL_TYPE
{

View File

@@ -2,7 +2,7 @@
#include "common_hardware_accelerator.hpp"
namespace core::HART {
namespace inferno {

20
libhart/scene/mesh.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <vector>
namespace inferno {
class Mesh
{
public:
Mesh();
~Mesh();
private:
};
}

View File

@@ -2,7 +2,7 @@
#include <vector>
namespace core::rendering {
namespace inferno {
class Mesh;

View File

@@ -2,7 +2,7 @@
#include <vector>
namespace core::rendering {
namespace inferno {
class SceneObject;

View File

@@ -1,6 +1,6 @@
#pragma once
namespace core::GUI {
namespace inferno {
class Layout
{

View File

@@ -9,7 +9,7 @@ static std::unordered_map<GLuint, int> Shader2Index = {
{GL_FRAGMENT_SHADER, 2}
};
using namespace core::rendering;
using namespace inferno;
std::string textFromFile(const std::filesystem::path& path) {
std::ifstream input(path);

View File

@@ -8,7 +8,7 @@
#include <filesystem>
#include <unordered_map>
namespace core::rendering {
namespace inferno {
class _Shader : public std::enable_shared_from_this<_Shader> {
public:

View File

@@ -2,7 +2,7 @@
#include <scene/object.hpp>
using namespace core::rendering;
using namespace inferno;
Scene::Scene()
{