VirtualBox

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

最後變更 在這個檔案從77049是 69390,由 vboxsync 提交於 7 年 前

HostServices/SharedOpenGL: scm updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 1.5 KB
 
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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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