mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 10:37:21 +00:00
chore: format everything
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include "TextureManager.h"
|
||||
#include "Texture.h"
|
||||
|
||||
|
||||
#define MAX_MIP_LEVELS 5
|
||||
|
||||
Texture::Texture(const std::wstring& name, int mode, int width, int height,
|
||||
@@ -65,7 +64,6 @@ void Texture::_init(const std::wstring& name, int mode, int width, int height,
|
||||
if (m_iMipLevels > MAX_MIP_LEVELS) m_iMipLevels = MAX_MIP_LEVELS;
|
||||
}
|
||||
|
||||
|
||||
if (mode != TM_CONTAINER) {
|
||||
glId = glGenTextures();
|
||||
|
||||
@@ -232,7 +230,6 @@ void Texture::blit(int x, int y, Texture* source, bool rotated) {
|
||||
data[level]->position(0);
|
||||
srcBuffer->position(0);
|
||||
|
||||
|
||||
for (int srcY = 0; srcY < shh; srcY++) {
|
||||
int dstY = yy + srcY;
|
||||
int srcLine = srcY * sww * 4;
|
||||
@@ -347,10 +344,10 @@ void Texture::transferFromImage(BufferedImage* image) {
|
||||
return;
|
||||
}
|
||||
|
||||
// #if 0
|
||||
// int byteRemapRGBA[] = { 0, 1, 2, 3 };
|
||||
// int byteRemapBGRA[] = { 2, 1, 0, 3 };
|
||||
// #else
|
||||
// #if 0
|
||||
// int byteRemapRGBA[] = { 0, 1, 2, 3 };
|
||||
// int byteRemapBGRA[] = { 2, 1, 0, 3 };
|
||||
// #else
|
||||
int byteRemapRGBA[] = {3, 0, 1, 2};
|
||||
int byteRemapBGRA[] = {3, 2, 1, 0};
|
||||
// #endif
|
||||
|
||||
Reference in New Issue
Block a user