namespaces are bloat
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"string": "cpp"
|
||||
"string": "cpp",
|
||||
"vector": "cpp"
|
||||
},
|
||||
"cmake.configureOnOpen": false
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace core::HART {
|
||||
namespace inferno {
|
||||
|
||||
enum ACCEL_TYPE
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "common_hardware_accelerator.hpp"
|
||||
|
||||
namespace core::HART {
|
||||
namespace inferno {
|
||||
|
||||
|
||||
|
||||
|
||||
20
libhart/scene/mesh.hpp
Normal file
20
libhart/scene/mesh.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace inferno {
|
||||
|
||||
class Mesh
|
||||
{
|
||||
public:
|
||||
Mesh();
|
||||
~Mesh();
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace core::rendering {
|
||||
namespace inferno {
|
||||
|
||||
class Mesh;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace core::rendering {
|
||||
namespace inferno {
|
||||
|
||||
class SceneObject;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace core::GUI {
|
||||
namespace inferno {
|
||||
|
||||
class Layout
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <filesystem>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace core::rendering {
|
||||
namespace inferno {
|
||||
|
||||
class _Shader : public std::enable_shared_from_this<_Shader> {
|
||||
public:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <scene/object.hpp>
|
||||
|
||||
using namespace core::rendering;
|
||||
using namespace inferno;
|
||||
|
||||
Scene::Scene()
|
||||
{
|
||||
Reference in New Issue
Block a user