eglfunc.c
Go to the documentation of this file.
1 /* $Header$ */
2 
3 #include "eus.h"
4 
5 #include <GL/gl.h>
6 
7 #pragma init (init_object_module)
8 
9 pointer EGLGETSTRING(ctx, n, argv)
10  register context *ctx;
11  int n;
12  pointer *argv;
13 {
14  char *str;
15  eusinteger_t i;
16  ckarg(1);
17  i = ckintval(argv[0]);
18  str = (char *) glGetString(i);
19  if (str)
20  return(makestring(str, strlen(str)));
21  else
22  return(NIL);
23 }
24 
25 pointer eglfunc(ctx, n, argv)
26  register context *ctx;
27  int n;
28  pointer argv[];
29 {
30  defun(ctx, "EGLGETSTRING", argv[0], EGLGETSTRING,NULL);
31 }
32 
33 static void init_object_module()
34 {
35  add_module_initializer("eglfunc", eglfunc);
36 }
static void init_object_module()
Definition: eglfunc.c:33
Definition: eus.h:522
pointer eglfunc(context *ctx, int n, argv)
Definition: eglfunc.c:25
GLfloat n[6][3]
Definition: cube.c:15
defun("ADR_TO_STRING", mod, ADR_TO_STRING)
ckarg(2)
void add_module_initializer(char *, pointer(*)())
Definition: loadelf.c:86
Definition: eus.h:379
long eusinteger_t
Definition: eus.h:19
pointer makestring(char *, int)
Definition: makes.c:147
#define NULL
Definition: transargv.c:8
pointer EGLGETSTRING(context *ctx, int n, pointer *argv)
Definition: eglfunc.c:9
pointer NIL
Definition: eus.c:110


euslisp
Author(s): Toshihiro Matsui
autogenerated on Fri Feb 21 2020 03:20:54