mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 21:49:19 +02:00
poprawne ładowanie opacity z e3d, wyłączenie glfw auto iconify
This commit is contained in:
1
EU07.cpp
1
EU07.cpp
@@ -152,6 +152,7 @@ int main(int argc, char *argv[])
|
|||||||
glfwWindowHint(GLFW_BLUE_BITS, vmode->blueBits);
|
glfwWindowHint(GLFW_BLUE_BITS, vmode->blueBits);
|
||||||
glfwWindowHint(GLFW_REFRESH_RATE, vmode->refreshRate);
|
glfwWindowHint(GLFW_REFRESH_RATE, vmode->refreshRate);
|
||||||
|
|
||||||
|
glfwWindowHint(GLFW_AUTO_ICONIFY, GLFW_FALSE);
|
||||||
glfwWindowHint(GLFW_SAMPLES, Global::iMultisampling);
|
glfwWindowHint(GLFW_SAMPLES, Global::iMultisampling);
|
||||||
|
|
||||||
GLFWwindow *window =
|
GLFWwindow *window =
|
||||||
|
|||||||
11
Model3d.cpp
11
Model3d.cpp
@@ -2015,17 +2015,6 @@ void TSubModel::BinInit(TSubModel *s, float4x4 *m, float8 *v,
|
|||||||
if (pTexture.find_last_of("/\\") == std::string::npos)
|
if (pTexture.find_last_of("/\\") == std::string::npos)
|
||||||
pTexture.insert(0, Global::asCurrentTexturePath);
|
pTexture.insert(0, Global::asCurrentTexturePath);
|
||||||
TextureID = GfxRenderer.GetTextureId(pTexture, szTexturePath);
|
TextureID = GfxRenderer.GetTextureId(pTexture, szTexturePath);
|
||||||
// TexAlpha=TTexturesManager::GetAlpha(TextureID); //zmienna robocza
|
|
||||||
// ustawienie cyklu przezroczyste/nieprzezroczyste zależnie od własności
|
|
||||||
// stałej tekstury
|
|
||||||
// iFlags=(iFlags&~0x30)|(TTexturesManager::GetAlpha(TextureID)?0x20:0x10);
|
|
||||||
// //0x10-nieprzezroczysta, 0x20-przezroczysta
|
|
||||||
if (Opacity < 1.0) // przezroczystość z tekstury brana tylko dla Opacity 0!
|
|
||||||
iFlags |= GfxRenderer.Texture(TextureID).has_alpha ?
|
|
||||||
0x20 :
|
|
||||||
0x10; // 0x10-nieprzezroczysta, 0x20-przezroczysta
|
|
||||||
else
|
|
||||||
iFlags |= 0x10; // normalnie nieprzezroczyste
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
TextureID = iTexture;
|
TextureID = iTexture;
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ private:
|
|||||||
bool bWire; // nie używane, ale wczytywane
|
bool bWire; // nie używane, ale wczytywane
|
||||||
// short TexAlpha; //Ra: nie używane już
|
// short TexAlpha; //Ra: nie używane już
|
||||||
GLuint uiDisplayList; // roboczy numer listy wyświetlania
|
GLuint uiDisplayList; // roboczy numer listy wyświetlania
|
||||||
float Opacity; // nie używane, ale wczytywane
|
float Opacity; // nie używane, ale wczytywane //m7todo: wywalić to
|
||||||
// ABu: te same zmienne, ale zdublowane dla Render i RenderAlpha,
|
// ABu: te same zmienne, ale zdublowane dla Render i RenderAlpha,
|
||||||
// bo sie chrzanilo przemieszczanie obiektow.
|
// bo sie chrzanilo przemieszczanie obiektow.
|
||||||
// Ra: już się nie chrzani
|
// Ra: już się nie chrzani
|
||||||
|
|||||||
Reference in New Issue
Block a user