mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
migrate ALMOST everything from source tree into client
This commit is contained in:
29
source/client/renderer/Texture.hpp
Normal file
29
source/client/renderer/Texture.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
struct Texture
|
||||
{
|
||||
int m_width = 0;
|
||||
int m_height = 0;
|
||||
uint32_t* m_pixels = nullptr;
|
||||
uint8_t field_C = false;
|
||||
uint8_t field_D = false;
|
||||
|
||||
Texture() {}
|
||||
Texture(int width, int height, void* pixels, uint8_t a1, uint8_t a2) : m_width(width), m_height(height), m_pixels((uint32_t*)pixels), field_C(a1), field_D(a2) {}
|
||||
};
|
||||
|
||||
struct GLTexture
|
||||
{
|
||||
unsigned m_textureID; // GL texture ID
|
||||
Texture m_textureData;
|
||||
};
|
||||
Reference in New Issue
Block a user