1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "unpacker.h"
|
---|
8 | #include "cr_mem.h"
|
---|
9 |
|
---|
10 | void crUnpackMultMatrixd( void )
|
---|
11 | {
|
---|
12 | GLdouble m[16];
|
---|
13 | crMemcpy( m, DATA_POINTER( 0, GLdouble ), sizeof(m) );
|
---|
14 |
|
---|
15 | cr_unpackDispatch.MultMatrixd( m );
|
---|
16 | INCR_DATA_PTR( 16*sizeof( GLdouble ) );
|
---|
17 | }
|
---|
18 |
|
---|
19 | void crUnpackMultMatrixf( void )
|
---|
20 | {
|
---|
21 | GLfloat *m = DATA_POINTER( 0, GLfloat );
|
---|
22 |
|
---|
23 | cr_unpackDispatch.MultMatrixf( m );
|
---|
24 | INCR_DATA_PTR( 16*sizeof( GLfloat ) );
|
---|
25 | }
|
---|
26 |
|
---|
27 | void crUnpackLoadMatrixd( void )
|
---|
28 | {
|
---|
29 | GLdouble m[16];
|
---|
30 | crMemcpy( m, DATA_POINTER( 0, GLdouble ), sizeof(m) );
|
---|
31 |
|
---|
32 | cr_unpackDispatch.LoadMatrixd( m );
|
---|
33 | INCR_DATA_PTR( 16*sizeof( GLdouble ) );
|
---|
34 | }
|
---|
35 |
|
---|
36 | void crUnpackLoadMatrixf( void )
|
---|
37 | {
|
---|
38 | GLfloat *m = DATA_POINTER( 0, GLfloat );
|
---|
39 |
|
---|
40 | cr_unpackDispatch.LoadMatrixf( m );
|
---|
41 | INCR_DATA_PTR( 16*sizeof( GLfloat ) );
|
---|
42 | }
|
---|
43 |
|
---|
44 | void crUnpackExtendMultTransposeMatrixdARB( void )
|
---|
45 | {
|
---|
46 | GLdouble m[16];
|
---|
47 | crMemcpy( m, DATA_POINTER( 8, GLdouble ), sizeof(m) );
|
---|
48 |
|
---|
49 | cr_unpackDispatch.MultTransposeMatrixdARB( m );
|
---|
50 | }
|
---|
51 |
|
---|
52 | void crUnpackExtendMultTransposeMatrixfARB( void )
|
---|
53 | {
|
---|
54 | GLfloat *m = DATA_POINTER( 8, GLfloat );
|
---|
55 |
|
---|
56 | cr_unpackDispatch.MultTransposeMatrixfARB( m );
|
---|
57 | }
|
---|
58 |
|
---|
59 | void crUnpackExtendLoadTransposeMatrixdARB( void )
|
---|
60 | {
|
---|
61 | GLdouble m[16];
|
---|
62 | crMemcpy( m, DATA_POINTER( 8, GLdouble ), sizeof(m) );
|
---|
63 |
|
---|
64 | cr_unpackDispatch.LoadTransposeMatrixdARB( m );
|
---|
65 | }
|
---|
66 |
|
---|
67 | void crUnpackExtendLoadTransposeMatrixfARB( void )
|
---|
68 | {
|
---|
69 | GLfloat *m = DATA_POINTER( 8, GLfloat );
|
---|
70 |
|
---|
71 | cr_unpackDispatch.LoadTransposeMatrixfARB( m );
|
---|
72 | }
|
---|