mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
progs/glsl: tweaks to shtest.c
1. Larger sphere to match cube size 2. Allow -geometry option to override window size 3. Cube samplers
This commit is contained in:
parent
d7c55555ac
commit
174054c973
1 changed files with 3 additions and 2 deletions
|
|
@ -257,7 +257,7 @@ Redisplay(void)
|
|||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
if (Object == SPHERE) {
|
||||
Sphere(2.0, 20, 10);
|
||||
Sphere(2.5, 20, 10);
|
||||
}
|
||||
else if (Object == CUBE) {
|
||||
Cube(2.0);
|
||||
|
|
@ -426,6 +426,7 @@ TypeFromName(const char *n)
|
|||
{ "GL_INT_VEC3", GL_INT_VEC3 },
|
||||
{ "GL_INT_VEC4", GL_INT_VEC4 },
|
||||
{ "GL_SAMPLER_2D", GL_SAMPLER_2D },
|
||||
{ "GL_SAMPLER_CUBE", GL_SAMPLER_CUBE },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
GLuint i;
|
||||
|
|
@ -613,8 +614,8 @@ ParseOptions(int argc, char *argv[])
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
glutInit(&argc, argv);
|
||||
glutInitWindowSize(400, 400);
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
|
||||
win = glutCreateWindow(argv[0]);
|
||||
glewInit();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue