VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_matrices.c@ 16276

Last change on this file since 16276 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
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
10void 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
19void 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
27void 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
36void 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
44void crUnpackExtendMultTransposeMatrixdARB( void )
45{
46 GLdouble m[16];
47 crMemcpy( m, DATA_POINTER( 8, GLdouble ), sizeof(m) );
48
49 cr_unpackDispatch.MultTransposeMatrixdARB( m );
50}
51
52void crUnpackExtendMultTransposeMatrixfARB( void )
53{
54 GLfloat *m = DATA_POINTER( 8, GLfloat );
55
56 cr_unpackDispatch.MultTransposeMatrixfARB( m );
57}
58
59void crUnpackExtendLoadTransposeMatrixdARB( void )
60{
61 GLdouble m[16];
62 crMemcpy( m, DATA_POINTER( 8, GLdouble ), sizeof(m) );
63
64 cr_unpackDispatch.LoadTransposeMatrixdARB( m );
65}
66
67void crUnpackExtendLoadTransposeMatrixfARB( void )
68{
69 GLfloat *m = DATA_POINTER( 8, GLfloat );
70
71 cr_unpackDispatch.LoadTransposeMatrixfARB( m );
72}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette