X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=tests%2Fglinfo%2Fglinfo.c;h=186ccd7854820bf4e8d3114032797a691df9ff09;hb=5c4020c26c69f7100c4547792a951f306ff0f32a;hp=7fc3a4faf35e29aca2e99da27f035782e9433174;hpb=93b177fff142057693f0c9e917b4e18c52edeb6b;p=libgliar diff --git a/tests/glinfo/glinfo.c b/tests/glinfo/glinfo.c index 7fc3a4f..186ccd7 100644 --- a/tests/glinfo/glinfo.c +++ b/tests/glinfo/glinfo.c @@ -1,3 +1,25 @@ +/* +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 +*/ + #include #include @@ -14,8 +36,20 @@ int main(int argc, char **argv) printf("renderer: %s\n", glGetString(GL_RENDERER)); printf("version: %s\n", glGetString(GL_VERSION)); printf("shading language version: %s\n", glGetString(GL_SHADING_LANGUAGE_VERSION)); - - printf("texture units: %d\n", GET_INTEGER(GL_MAX_TEXTURE_UNITS)); + printf("major version: %d\n", GET_INTEGER(GL_MAJOR_VERSION)); + printf("minor version: %d\n", GET_INTEGER(GL_MINOR_VERSION)); + printf("max texture units: %d\n", GET_INTEGER(GL_MAX_TEXTURE_UNITS)); + printf("max texture image units: %d\n", GET_INTEGER(GL_MAX_TEXTURE_IMAGE_UNITS)); + printf("max combined texture image units: %d\n", GET_INTEGER(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS)); + printf("max vertex texture image units: %d\n", GET_INTEGER(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS)); printf("max texture size: %d\n", GET_INTEGER(GL_MAX_TEXTURE_SIZE)); + printf("max cube map texture size: %d\n", GET_INTEGER(GL_MAX_CUBE_MAP_TEXTURE_SIZE)); + printf("max texture coordinates: %d\n", GET_INTEGER(GL_MAX_TEXTURE_COORDS)); + printf("max vertex attributes: %d\n", GET_INTEGER(GL_MAX_VERTEX_ATTRIBS)); + printf("max vertex uniform vectors: %d\n", GET_INTEGER(GL_MAX_VERTEX_UNIFORM_VECTORS)); + printf("max fragment uniform vectors: %d\n", GET_INTEGER(GL_MAX_FRAGMENT_UNIFORM_VECTORS)); + printf("max varying vectors: %d\n", GET_INTEGER(GL_MAX_VARYING_VECTORS)); + printf("max color attachments: %d\n", GET_INTEGER(GL_MAX_COLOR_ATTACHMENTS_EXT)); + printf("max renderbuffer size: %d\n", GET_INTEGER(GL_MAX_RENDERBUFFER_SIZE_EXT)); return 0; }