mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 22:48:54 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -53,7 +53,7 @@
|
||||
#include "TexturePackRepository.h"
|
||||
#include "TexturePack.h"
|
||||
#include "TextureAtlas.h"
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
#include "Common/PostProcesser.h"
|
||||
#include "DynamicLighting.h"
|
||||
#endif
|
||||
@@ -465,7 +465,7 @@ float GameRenderer::getFov(float a, bool applyEffects)
|
||||
int playerIdx = player ? player->GetXboxPad() : 0;
|
||||
float fov = m_fov;//70;
|
||||
if (fov < 1) fov = 1; // Crash fix
|
||||
|
||||
|
||||
if (applyEffects)
|
||||
{
|
||||
fov += mc->options->fov * 40;
|
||||
@@ -554,7 +554,7 @@ void GameRenderer::moveCameraToPlayer(float a)
|
||||
y += m_elytaCamShift[camIdx()];
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (localplayer != nullptr && !player->isSleeping())
|
||||
{
|
||||
float roll = cameraRollO[camIdx()] + (cameraRoll[camIdx()] - cameraRollO[camIdx()]) * a;
|
||||
@@ -1071,7 +1071,7 @@ void GameRenderer::CachePlayerGammas()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
void GameRenderer::RunWorldPostProcess() const
|
||||
{
|
||||
const int iPad = mc->player->GetXboxPad();
|
||||
@@ -1239,7 +1239,7 @@ int GameRenderer::getLightTexture(int iPad, Level *level)
|
||||
|
||||
void GameRenderer::render(float a, bool bFirst)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
DynamicLighting::updateAll(this);
|
||||
#endif
|
||||
if (mc->player == nullptr)
|
||||
@@ -1491,7 +1491,7 @@ void GameRenderer::DisableUpdateThread()
|
||||
void GameRenderer::renderLevel(float a, int64_t until)
|
||||
{
|
||||
// if (updateLightTexture) updateLightTexture(); // 4J - TODO - Java 1.0.1 has this line enabled, should check why - don't want to put it in now in case it breaks split-screen
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
const int iPad = mc->player->GetXboxPad();
|
||||
RenderManager.TextureSetMipMapOptions(
|
||||
app.GetGameSettings(iPad, eGameSetting_MipMap_Strength),
|
||||
@@ -1776,14 +1776,14 @@ void GameRenderer::renderLevel(float a, int64_t until)
|
||||
|
||||
if (!mc->options->anaglyph3d)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
RunWorldPostProcess();
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
}
|
||||
glColorMask(true, true, true, false);
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
RunWorldPostProcess();
|
||||
#endif
|
||||
}
|
||||
@@ -2024,7 +2024,7 @@ void GameRenderer::renderSnowAndRain(float a)
|
||||
#else
|
||||
//t->tex2(level->getLightColor(x, yl, z, 0));
|
||||
int rainLight = level->getLightColor(x, yl, z, 0);
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
rainLight = DynamicLighting::getLightmapWithDynamicLight(x, yl, z, rainLight);
|
||||
#endif
|
||||
t->tex2(rainLight);
|
||||
@@ -2066,7 +2066,7 @@ void GameRenderer::renderSnowAndRain(float a)
|
||||
br, br, br, Alpha, br, br, br, Alpha, tex2);
|
||||
#else
|
||||
int snowLight = level->getLightColor(x, yl, z, 0);
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
snowLight = DynamicLighting::getLightmapWithDynamicLight(x, yl, z, snowLight);
|
||||
#endif
|
||||
t->tex2((snowLight * 3 + 0xf000f0) / 4);
|
||||
|
||||
Reference in new issue
Block a user