# libgliar - a library that can fake the OpenGL context info returned by # the glGet OpenGL calls # # Copyright (C) 2013 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Author: Eleni Maria Stea For instructions on how to build the code, see the INSTALL file. Usage: ------ LD_PRELOAD=./libgliar.so The library will read the gliar.conf file in the user's library directory or the .gliar.conf file in the user's home directory. Example gliar.conf: ------------------- [key1] value1 value2 . . . valueN [key2] value1 . . . valueN [keyN] value1 . . . valueN Currently supported keys: "vendor" (the vendor string), "extensions" (the extensions string), "version" (the opengl version string) Example: --------- gliar.conf: [vendor] Mutant Stargoat [extensions] GL_MSG_hikiko_ext GL_MSG_test $ LD_PRELOAD=./libgliar glxinfo | grep -A2 "OpenGL extensions" OpenGL extensions: GL_MSG_hikiko_ext, GL_MSG_test