common improvements (#366)
- std container replacements for vector, unordered_map, unordered_set - unordered_map and unordered_set replaced with ska::flat_hash_map - vector replacement is still std:: - unordered_map performance test (std:: vs ska::) - backlog improvements - wiArchive improvements - editor: added option to dump scene to C++ header file - common improvements, refactors
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include "PaintToolWindow.h"
|
||||
#include "shaders/ShaderInterop_Renderer.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <cmath>
|
||||
|
||||
using namespace wiECS;
|
||||
@@ -179,7 +178,7 @@ void PaintToolWindow::Create(EditorComponent* editor)
|
||||
|
||||
uint64_t sel = textureSlotComboBox.GetItemUserData(textureSlotComboBox.GetSelected());
|
||||
|
||||
std::vector<uint8_t> texturefiledata;
|
||||
wi::vector<uint8_t> texturefiledata;
|
||||
if (wiHelper::saveTextureToMemoryFile(editTexture, "PNG", texturefiledata))
|
||||
{
|
||||
material->textures[sel].resource->filedata = texturefiledata;
|
||||
@@ -548,7 +547,7 @@ void PaintToolWindow::Update(float dt)
|
||||
size_t ind;
|
||||
float affection;
|
||||
};
|
||||
static std::vector<PaintVert> paintindices;
|
||||
static wi::vector<PaintVert> paintindices;
|
||||
paintindices.clear();
|
||||
paintindices.reserve(mesh->vertex_positions.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user