mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-09 08:33:50 +00:00
Ported over the Java Edition's title screen panorama.
This commit is contained in:
@@ -471,10 +471,10 @@ void Texture::blit(int x, int y, Texture* source, bool rotated) {
|
||||
}
|
||||
|
||||
void Texture::transferFromBuffer(intArray buffer) {
|
||||
//if (depth == 1) {
|
||||
// return;
|
||||
//}
|
||||
// 4jcraft - move pos out of loops
|
||||
// if (depth == 1) {
|
||||
// return;
|
||||
// }
|
||||
// 4jcraft - move pos out of loops
|
||||
data[0]->clear();
|
||||
// #ifdef __PS3__
|
||||
// int byteRemapRGBA[] = { 3, 0, 1, 2 };
|
||||
@@ -487,7 +487,7 @@ void Texture::transferFromBuffer(intArray buffer) {
|
||||
|
||||
int totalPixels = width * height * depth;
|
||||
|
||||
for (int i = 0; i < totalPixels; i++){
|
||||
for (int i = 0; i < totalPixels; i++) {
|
||||
int pixel = buffer[i];
|
||||
int offset = i * 4;
|
||||
|
||||
@@ -501,7 +501,7 @@ void Texture::transferFromBuffer(intArray buffer) {
|
||||
|
||||
updateOnGPU();
|
||||
}
|
||||
|
||||
|
||||
/* for (int z = 0; z < depth; z++) {
|
||||
int plane = z * height * width * 4;
|
||||
for (int y = 0; y < height; y++) {
|
||||
|
||||
Reference in New Issue
Block a user