mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
38 lines
864 B
C++
38 lines
864 B
C++
/********************************************************************
|
|
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 <stdint.h>
|
|
#include "common/Utils.hpp"
|
|
|
|
struct Texture
|
|
{
|
|
int m_width;
|
|
int m_height;
|
|
uint32_t* m_pixels;
|
|
uint8_t field_C;
|
|
uint8_t field_D;
|
|
|
|
Texture()
|
|
{
|
|
m_width = 0;
|
|
m_height = 0;
|
|
m_pixels = nullptr;
|
|
field_C = false;
|
|
field_D = false;
|
|
}
|
|
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;
|
|
};
|