16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +02:00

linux support

This commit is contained in:
milek7
2017-07-31 00:25:19 +02:00
parent e7623fa18f
commit f7459f3434
64 changed files with 967 additions and 602 deletions

View File

@@ -25,6 +25,10 @@ ui_layer::~ui_layer() {
bool
ui_layer::init( GLFWwindow *Window ) {
#ifndef _WIN32
Global::bGlutFont = true;
#endif
if (Global::bGlutFont)
{
int zi = 0;
@@ -36,6 +40,7 @@ ui_layer::init( GLFWwindow *Window ) {
return true;
}
#ifdef _WIN32
HFONT font; // Windows Font ID
m_fontbase = ::glGenLists(96); // storage for 96 characters
HDC hDC = ::GetDC( glfwGetWin32Window( Window ) );
@@ -63,11 +68,10 @@ ui_layer::init( GLFWwindow *Window ) {
}
else {
ErrorLog( "Font init failed" );
// return false;
// NOTE: we report success anyway, given some cards can't produce fonts in this manner
Global::DLFont = false;
return true;
}
#endif
}
void