include cleanup
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#include "../Global.h"
|
||||
#include "../Log.h"
|
||||
#include "Dither.h"
|
||||
|
||||
using namespace Generated;
|
||||
using namespace Gen;
|
||||
|
||||
void DitherGen(DitherData& data, int32_t recursion)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "../Global.h"
|
||||
#include "../../gen/Generated.h"
|
||||
|
||||
#include <bgfx/bgfx.h>
|
||||
#include <imgui.h>
|
||||
@@ -7,9 +7,9 @@
|
||||
struct DitherData
|
||||
{
|
||||
static constexpr uint32_t BrightnessBucketCount = 256;
|
||||
Vec2 Points[4096];
|
||||
Gen::Vec2 Points[4096];
|
||||
uint32_t PointCount = 0;
|
||||
Vec4 DitherTex[256 * 256 * 64];
|
||||
Gen::Vec4 DitherTex[256 * 256 * 64];
|
||||
uint32_t DitherTexWH = 0;
|
||||
uint32_t DitherTexDepth = 0;
|
||||
int32_t BrightnessBuckets[BrightnessBucketCount];
|
||||
|
||||
@@ -470,7 +470,7 @@ namespace Game
|
||||
return mat;
|
||||
}
|
||||
|
||||
Generated::ModelHandle GameRendering::GetModelHandleFromPath(const char* path)
|
||||
Gen::ModelHandle GameRendering::GetModelHandleFromPath(const char* path)
|
||||
{
|
||||
uint32_t AssetHandle = CrcPath(path);
|
||||
for (int32_t i = 0; i < ModelCount; ++i)
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
#include <bx/string.h>
|
||||
#include <cstdint>
|
||||
|
||||
#include "../Gen.h" // IWYU pragma: keep
|
||||
#include "../Global.h"
|
||||
#include "../../gen/Generated.h"
|
||||
#include "Dither.h"
|
||||
|
||||
union SDL_Event;
|
||||
@@ -30,7 +29,7 @@ namespace Game
|
||||
bgfx::UniformHandle SamplerHandle = {bgfx::kInvalidHandle};
|
||||
bgfx::TextureHandle RenderHandle = {bgfx::kInvalidHandle};
|
||||
bgfx::TextureInfo Info;
|
||||
Generated::TextureHandle TexHandle;
|
||||
Gen::TextureHandle TexHandle;
|
||||
};
|
||||
|
||||
struct Model
|
||||
@@ -38,7 +37,7 @@ namespace Game
|
||||
bgfx::VertexBufferHandle VertexBuffer = {bgfx::kInvalidHandle};
|
||||
bgfx::IndexBufferHandle IndexBuffer = {bgfx::kInvalidHandle};
|
||||
bgfx::VertexLayout VertLayout;
|
||||
Generated::ModelHandle Handle;
|
||||
Gen::ModelHandle Handle;
|
||||
};
|
||||
|
||||
struct Material
|
||||
@@ -103,6 +102,6 @@ namespace Game
|
||||
void LoadTextures();
|
||||
void ReloadShaders();
|
||||
void Shutdown();
|
||||
Generated::ModelHandle GetModelHandleFromPath(const char* path);
|
||||
Gen::ModelHandle GetModelHandleFromPath(const char* path);
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
Reference in New Issue
Block a user