good progress today
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
#include <bx/string.h>
|
||||
#include <cstdint>
|
||||
|
||||
#include "../Global.h"
|
||||
#include "imgui.h"
|
||||
|
||||
union SDL_Event;
|
||||
|
||||
namespace Game
|
||||
@@ -62,6 +65,21 @@ namespace Game
|
||||
Debug,
|
||||
};
|
||||
|
||||
struct DitherData
|
||||
{
|
||||
static constexpr uint32_t BrightnessBucketCount = 256;
|
||||
Vec2 Points[1024];
|
||||
uint32_t PointCount = 0;
|
||||
Vec4 DitherTex[64 * 64 * 16];
|
||||
uint32_t DitherTexWH = 0;
|
||||
uint32_t DitherTexDepth = 0;
|
||||
int32_t BrightnessBuckets[BrightnessBucketCount];
|
||||
bgfx::TextureHandle PreviewTex = BGFX_INVALID_HANDLE;
|
||||
bgfx::TextureHandle FinalTex = BGFX_INVALID_HANDLE;
|
||||
bgfx::UniformHandle Sampler = BGFX_INVALID_HANDLE;
|
||||
ImTextureID PreviewID = 0;
|
||||
};
|
||||
|
||||
class GameRendering
|
||||
{
|
||||
public:
|
||||
@@ -70,6 +88,7 @@ namespace Game
|
||||
|
||||
public:
|
||||
UIVisibilityState UIVisible = UIVisibilityState::Game;
|
||||
DitherData DitherTextures;
|
||||
|
||||
private:
|
||||
bgfx::UniformHandle DefaultSampler;
|
||||
@@ -81,6 +100,7 @@ namespace Game
|
||||
int32_t LastHeight = 0;
|
||||
uint32_t ResetFlags = BGFX_RESET_VSYNC;
|
||||
uint16_t MainViewID = 10;
|
||||
float LastShaderLoadTime = 0.0f;
|
||||
|
||||
public:
|
||||
void Setup();
|
||||
|
||||
Reference in New Issue
Block a user