/* glcommon GL code & font stuff Copyright (c)2011 Mark Watkins License: GPL */ #include #include #include #include #include #include "glcommon.h" #include "SleepLib/profiles.h" #include bool _graph_init=false; QFont * defaultfont=NULL; QFont * mediumfont=NULL; QFont * bigfont=NULL; GLshort * vertex_array[num_vert_arrays]={0}; bool evil_intel_graphics_chip=false; // Must be called from a thread inside the application. void InitGraphs() { if (!_graph_init) { defaultfont=new QFont("Sans Serif",10); mediumfont=new QFont("Sans Serif",11); bigfont=new QFont("Serif",35); defaultfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible); mediumfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible); bigfont->setStyleHint(QFont::Serif ,QFont::OpenGLCompatible); for (int i=0;i TextQue; QVector TextQueRot; void DrawTextQueue(gGraphWindow & wid) { //glFlush(); for (int i=0;i