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

more parameters exposed to python, reworked ui screens, ui text color setting

This commit is contained in:
tmj-fstate
2017-03-19 23:58:03 +01:00
parent a5d01ef059
commit f10494fd6a
9 changed files with 243 additions and 213 deletions

View File

@@ -47,11 +47,15 @@ ui_layer::init( GLFWwindow *Window ) {
// builds 96 characters starting at character 32
WriteLog( "Display Lists font used" ); //+AnsiString(glGetError())
WriteLog( "Font init OK" ); //+AnsiString(glGetError())
Global::DLFont = true;
return true;
}
else {
ErrorLog( "Font init failed" );
return false;
// return false;
// NOTE: we report success anyway, given some cards can't produce fonts in this manner
Global::DLFont = false;
return true;
}
}
@@ -171,7 +175,8 @@ ui_layer::render_background() {
void
ui_layer::print( std::string const &Text )
{
if( true == Text.empty() )
if( (false == Global::DLFont)
|| (true == Text.empty()) )
return;
::glPushAttrib( GL_LIST_BIT );