rename ImageFormat enum items

This commit is contained in:
MihailRis 2025-12-21 19:05:14 +03:00
parent 1940fa7fa4
commit 163a0a8c93
18 changed files with 58 additions and 58 deletions

View file

@ -1,10 +1,7 @@
#pragma once
#include <memory>
#include <glm/glm.hpp>
#include "voxels/voxel.hpp"
#include "typedefs.hpp"
#include "voxels/voxel.hpp"
#include "voxels/Block.hpp"
#include "voxels/Chunk.hpp"
#include "voxels/VoxelsVolume.hpp"
@ -12,6 +9,9 @@
#include "commons.hpp"
#include "settings.hpp"
#include <memory>
#include <glm/glm.hpp>
template<typename VertexStructure> class Mesh;
class Content;
class Block;

View file

@ -16,7 +16,7 @@ MainBatch::MainBatch(size_t capacity)
const ubyte pixels[] = {
255, 255, 255, 255,
};
ImageData image(ImageFormat::rgba8888, 1, 1, pixels);
ImageData image(ImageFormat::RGBA8888, 1, 1, pixels);
blank = Texture::from(&image);
}

View file

@ -28,7 +28,7 @@ Skybox::Skybox(uint size, Shader& shader)
shader(shader),
batch3d(std::make_unique<Batch3D>(4096))
{
auto cubemap = std::make_unique<Cubemap>(size, size, ImageFormat::rgb888);
auto cubemap = std::make_unique<Cubemap>(size, size, ImageFormat::RGB888);
uint fboid;
glGenFramebuffers(1, &fboid);