Skip to content
Snippets Groups Projects
Commit 8d3c1b26 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Optimization of glClearColor... :-)

Rev: src/post_modules/GL/auto.c.in:1.4
parent f6342250
No related branches found
No related tags found
No related merge requests found
/*
* $Id: auto.c.in,v 1.3 1998/11/03 00:29:43 marcus Exp $
* $Id: auto.c.in,v 1.4 1998/11/03 01:08:18 marcus Exp $
*
*/
#include "global.h"
RCSID("$Id: auto.c.in,v 1.3 1998/11/03 00:29:43 marcus Exp $");
RCSID("$Id: auto.c.in,v 1.4 1998/11/03 01:08:18 marcus Exp $");
#include "stralloc.h"
#include "pike_macros.h"
#include "object.h"
......@@ -161,15 +161,9 @@ static int check_1n_args(char *func, INT32 args, int ty, int rty,
return tt|(arr?ZT_ARRAY:0);
}
static void glClearColor3v(GLfloat *f)
{
glClearColor(f[0], f[1], f[2], 0.0);
}
#define glClearColor3v(f) glClearColor((f)[0], (f)[1], (f)[2], 0.0)
#define glClearColor4v(f) glClearColor((f)[0], (f)[1], (f)[2], (f)[3])
static void glClearColor4v(GLfloat *f)
{
glClearColor(f[0], f[1], f[2], f[3]);
}
@@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment