mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
rename ImageFormat enum items
This commit is contained in:
parent
1940fa7fa4
commit
163a0a8c93
18 changed files with 58 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue