Adapting for web

This commit is contained in:
Vladislav Khorev committed 2026-02-08 22:38:24 +03:00
1 parent cf1ec1e76f
commit a59bcc0c4b
42 files changed
+843 -294

No files matched your search

+10 -13
View File
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "render/OpenGlExtensions.h"
#include "utils/Utils.h"
@@ -15,23 +15,20 @@ namespace ZL
size_t height;
std::vector<char> data;
enum BitSize {
BS_24BIT,
BS_32BIT
enum Format {
R8, // Для шрифтов (GL_RED)
RGB, // BS_24BIT
RGBA // BS_32BIT
};
// ����� ������������ ��� ���������� ���-���������
enum MipmapType {
NONE, // ��� ���-����� (GL_LINEAR)
GENERATE // �������������� ��������� (GL_LINEAR_MIPMAP_LINEAR)
NONE,
GENERATE
};
BitSize bitSize;
/*#ifdef SIMPLIFIED
MipmapType mipmap = NONE; // �� ��������� ��������
#else*/
MipmapType mipmap = GENERATE; // �� ��������� ��������
//#endif
Format format = RGBA;
MipmapType mipmap = GENERATE;
};
class Texture
{