File: glgdMatrix.h

package info (click to toggle)
gauche-gtk 0.4.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,520 kB
  • ctags: 3,230
  • sloc: ansic: 6,655; lisp: 4,159; sh: 2,707; makefile: 344
file content (38 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * gldgMatrix.h
 *
 * OpenGL Graph Display matrix utility module header file
 *
 * Written by: Shawn Taras
 */
#ifndef __GLGDMATRIX_H__
#define __GLGDMATRIX_H__

SCM_DECL_BEGIN

/*
 * Type Definitions
 */
typedef GLdouble        glgdMatrix[16];

/*
 * Module API
 */
GLboolean   glgdMatrixIdentity(glgdMatrix mtx);
GLboolean   glgdMatrixDump(glgdMatrix mtx, int indent);
GLboolean   glgdMatrixSetByQuat(glgdMatrix mtx, glgdQuat q);
GLboolean   glgdMatrixPerspective(glgdMatrix mtx,
                                  GLdouble fovy, GLdouble aspect,
                                  GLdouble zNear, GLdouble zFar);
GLboolean   glgdMatrixFrustum(glgdMatrix mtx,
                              GLdouble left, GLdouble right,
                              GLdouble bottom, GLdouble top,
                              GLdouble zNear, GLdouble zFar);
GLboolean   glgdMatrixOrtho(glgdMatrix mtx,
                            GLdouble left, GLdouble right,
                            GLdouble bottom, GLdouble top,
                            GLdouble zNear, GLdouble zFar);

SCM_DECL_END

#endif  /* __GLGDMATRIX_H__ */