cppcheck is useless
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -70,7 +70,8 @@
|
||||
"valarray": "cpp",
|
||||
"variant": "cpp",
|
||||
"complex": "cpp",
|
||||
"hash_map": "cpp"
|
||||
"hash_map": "cpp",
|
||||
"filesystem": "cpp"
|
||||
},
|
||||
"cmake.configureOnOpen": false
|
||||
}
|
||||
@@ -18,3 +18,9 @@ extern "C"
|
||||
// glm
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
|
||||
#include <vector>
|
||||
namespace inferno {
|
||||
class Ray;
|
||||
using RayField = std::vector<Ray*>;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "hart_directory.hpp"
|
||||
|
||||
#include "inferno_hart.hpp"
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -6,13 +6,31 @@
|
||||
// _CREDIT returns ModuleCredit
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "inferno_hart.hpp"
|
||||
|
||||
namespace inferno {
|
||||
|
||||
class HARTModule;
|
||||
struct ModuleCredit;
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#define HART_EXTENSION ".dll"
|
||||
#define HART_INTERFACE extern "C" __declspec(dllexport)
|
||||
#else // UNIX-Like
|
||||
#include <dlfcn.h>
|
||||
#define HART_EXTENSION ".so"
|
||||
#define HART_INTERFACE extern "C"
|
||||
#endif
|
||||
|
||||
HART_INTERFACE typedef void* (*HART_INIT_F)(void);
|
||||
HART_INTERFACE typedef void (*HART_DESTROY_F)(void*);
|
||||
HART_INTERFACE typedef void* (*HART_CREDIT_F)(void);
|
||||
|
||||
typedef void (*HART_HIT_CALLBACK)(HitInfo* hit);
|
||||
|
||||
class HARTModuleDirectory
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <graphics.hpp>
|
||||
#include "hart_directory.hpp"
|
||||
|
||||
namespace inferno {
|
||||
@@ -14,8 +15,6 @@ class Ray;
|
||||
class HitInfo;
|
||||
class HARTModule;
|
||||
|
||||
using RayField = std::vector<Ray*>;
|
||||
|
||||
class HHM
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,45 +1,43 @@
|
||||
#include "dispatcher.hpp"
|
||||
// #include "dispatcher.hpp"
|
||||
|
||||
#include <graphics.hpp>
|
||||
// #include "hart_module.hpp"
|
||||
// #include "renderer.hpp"
|
||||
|
||||
#include "renderer.hpp"
|
||||
|
||||
#include "hart_module.hpp"
|
||||
// using namespace inferno;
|
||||
|
||||
using namespace inferno;
|
||||
// RenderDispatcher::RenderDispatcher()
|
||||
// {
|
||||
// // mHHM = new HHM();
|
||||
// // mRenderer = new RayRenderer(mHHM);
|
||||
// }
|
||||
|
||||
RenderDispatcher::RenderDispatcher()
|
||||
{
|
||||
mHHM = new HHM();
|
||||
mRenderer = new RayRenderer(mHHM);
|
||||
}
|
||||
// RenderDispatcher::~RenderDispatcher()
|
||||
// {
|
||||
|
||||
RenderDispatcher::~RenderDispatcher()
|
||||
{
|
||||
// }
|
||||
|
||||
}
|
||||
// RayRenderer* RenderDispatcher::getRenderer()
|
||||
// {
|
||||
// return mRenderer;
|
||||
// }
|
||||
|
||||
RayRenderer* RenderDispatcher::getRenderer()
|
||||
{
|
||||
return mRenderer;
|
||||
}
|
||||
// HHM* RenderDispatcher::getTopModule()
|
||||
// {
|
||||
// return mHHM;
|
||||
// }
|
||||
|
||||
HHM* RenderDispatcher::getTopModule()
|
||||
{
|
||||
return mHHM;
|
||||
}
|
||||
// void RenderDispatcher::startProgression()
|
||||
// {
|
||||
|
||||
void RenderDispatcher::startProgression()
|
||||
{
|
||||
// }
|
||||
|
||||
}
|
||||
// void RenderDispatcher::stopProgression()
|
||||
// {
|
||||
|
||||
void RenderDispatcher::stopProgression()
|
||||
{
|
||||
// }
|
||||
|
||||
}
|
||||
// GLuint RenderDispatcher::getLatestTexture()
|
||||
// {
|
||||
|
||||
GLuint RenderDispatcher::getLatestTexture()
|
||||
{
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
@@ -57,4 +57,4 @@ RayField RaySource::getInitialRays(bool MSAA)
|
||||
}
|
||||
|
||||
return field;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
|
||||
namespace inferno {
|
||||
|
||||
using RayField = std::vector<Ray*>;
|
||||
|
||||
class Camera;
|
||||
|
||||
class RaySource
|
||||
|
||||
1
suppressions.txt
Normal file
1
suppressions.txt
Normal file
@@ -0,0 +1 @@
|
||||
*:*/thirdparty/*
|
||||
Reference in New Issue
Block a user