Ignore:
Timestamp:
May 23, 2000, 10:35:01 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/matrix.h

    r2938 r3597  
    1 /* $Id: matrix.h,v 1.1 2000-02-29 00:48:33 sandervl Exp $ */
     1/* $Id: matrix.h,v 1.2 2000-05-23 20:34:52 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
     5 * Version:  3.3
    66 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
     
    3333
    3434
    35 #include "gl.h"
    3635#include "config.h"
    3736
    3837typedef struct {
    3938   GLfloat m[16];
    40    GLfloat *inv;                /* optional */
     39   GLfloat *inv;                                                /* optional*/
    4140   GLuint flags;
    4241   GLuint type;
    4342} GLmatrix;
     43
    4444
    4545#ifdef VMS
     
    4848
    4949
     50extern void gl_matrix_transposef( GLfloat to[16], const GLfloat from[16] );
     51
     52extern void gl_matrix_transposed( GLdouble to[16], const GLdouble from[16] );
     53
     54
    5055extern void gl_rotation_matrix( GLfloat angle, GLfloat x, GLfloat y, GLfloat z,
    5156                                GLfloat m[] );
    5257
    5358
     59extern void gl_mat_mul_floats( GLmatrix *mat, const GLfloat *m, GLuint flags );
    5460
    55 extern void gl_Frustum( GLcontext *ctx,
    56                         GLdouble left, GLdouble right,
    57                         GLdouble bottom, GLdouble top,
    58                         GLdouble nearval, GLdouble farval );
    59 
    60 extern void gl_Ortho( GLcontext *ctx,
    61                       GLdouble left, GLdouble right,
    62                       GLdouble bottom, GLdouble top,
    63                       GLdouble nearval, GLdouble farval );
    64 
    65 extern void gl_PushMatrix( GLcontext *ctx );
    66 
    67 extern void gl_PopMatrix( GLcontext *ctx );
    68 
    69 extern void gl_LoadIdentity( GLcontext *ctx );
    70 
    71 extern void gl_LoadMatrixf( GLcontext *ctx, const GLfloat *m );
    72 
    73 extern void gl_MatrixMode( GLcontext *ctx, GLenum mode );
    74 
    75 extern void gl_MultMatrixf( GLcontext *ctx, const GLfloat *m );
    76 
    77 extern void gl_mat_mul_floats( GLmatrix *mat, const GLfloat *m, GLuint flags );
    7861extern void gl_mat_mul_mat( GLmatrix *mat, const GLmatrix *mat2 );
    79 
    80 extern void gl_Rotatef( GLcontext *ctx,
    81                         GLfloat angle, GLfloat x, GLfloat y, GLfloat z );
    82 
    83 extern void gl_Scalef( GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z );
    84 
    85 extern void gl_Translatef( GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z );
    86 
    87 extern void gl_Viewport( GLcontext *ctx,
    88                          GLint x, GLint y, GLsizei width, GLsizei height );
    89 
    90 extern void gl_DepthRange( GLcontext* ctx, GLclampd nearval, GLclampd farval );
    91 
    92 
    93 
    94 
    9562
    9663extern void gl_calculate_model_project_matrix( GLcontext *ctx );
    9764
     65extern void gl_matrix_copy( GLmatrix *to, const GLmatrix *from );
    9866
    9967extern void gl_matrix_ctr( GLmatrix *m );
     
    10371extern void gl_matrix_alloc_inv( GLmatrix *m );
    10472
    105 extern void gl_matrix_copy( GLmatrix *to, const GLmatrix *from );
    106 
    10773extern void gl_matrix_mul( GLmatrix *dest,
    10874                           const GLmatrix *a,
     
    11177extern void gl_matrix_analyze( GLmatrix *mat );
    11278
     79extern GLboolean gl_matrix_invert( GLmatrix *mat );
    11380
    114 extern void gl_MultMatrixd( GLcontext *ctx, const GLdouble *m );
    115 extern GLboolean gl_matrix_invert( GLmatrix *mat );
    11681extern void gl_print_matrix( const GLmatrix *m );
    11782
    11883
     84
     85extern void
     86_mesa_Frustum( GLdouble left, GLdouble right,
     87               GLdouble bottom, GLdouble top,
     88               GLdouble nearval, GLdouble farval );
     89
     90extern void
     91_mesa_Ortho( GLdouble left, GLdouble right,
     92             GLdouble bottom, GLdouble top,
     93             GLdouble nearval, GLdouble farval );
     94
     95extern void
     96_mesa_PushMatrix( void );
     97
     98extern void
     99_mesa_PopMatrix( void );
     100
     101extern void
     102_mesa_LoadIdentity( void );
     103
     104extern void
     105_mesa_LoadMatrixf( const GLfloat *m );
     106
     107extern void
     108_mesa_LoadMatrixd( const GLdouble *m );
     109
     110extern void
     111_mesa_MatrixMode( GLenum mode );
     112
     113extern void
     114_mesa_MultMatrixf( const GLfloat *m );
     115
     116extern void
     117_mesa_MultMatrixd( const GLdouble *m );
     118
     119extern void
     120_mesa_Rotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z );
     121
     122extern void
     123_mesa_Rotated( GLdouble angle, GLdouble x, GLdouble y, GLdouble z );
     124
     125extern void
     126_mesa_Scalef( GLfloat x, GLfloat y, GLfloat z );
     127
     128extern void
     129_mesa_Scaled( GLdouble x, GLdouble y, GLdouble z );
     130
     131extern void
     132_mesa_Translatef( GLfloat x, GLfloat y, GLfloat z );
     133
     134extern void
     135_mesa_Translated( GLdouble x, GLdouble y, GLdouble z );
     136
     137extern void
     138_mesa_LoadTransposeMatrixfARB( const GLfloat *m );
     139
     140extern void
     141_mesa_LoadTransposeMatrixdARB( const GLdouble *m );
     142
     143extern void
     144_mesa_MultTransposeMatrixfARB( const GLfloat *m );
     145
     146extern void
     147_mesa_MultTransposeMatrixdARB( const GLdouble *m );
     148
     149extern void
     150_mesa_Viewport( GLint x, GLint y, GLsizei width, GLsizei height );
     151
     152extern void
     153gl_Viewport( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height );
     154
     155extern void
     156_mesa_DepthRange( GLclampd nearval, GLclampd farval );
     157
     158
     159
    119160#endif
Note: See TracChangeset for help on using the changeset viewer.