VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/packer/pack_clipplane.c@ 62425

最後變更 在這個檔案從62425是 33475,由 vboxsync 提交於 14 年 前

crOpenGL/wddm: multithreading fix

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 711 位元組
 
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 "packer.h"
8#include "cr_opcodes.h"
9
10void PACK_APIENTRY crPackClipPlane( GLenum plane, const GLdouble *equation )
11{
12 CR_GET_PACKER_CONTEXT(pc);
13 unsigned char *data_ptr;
14 int packet_length = sizeof( plane ) + 4*sizeof(*equation);
15 CR_GET_BUFFERED_POINTER(pc, packet_length );
16 WRITE_DATA( 0, GLenum, plane );
17 WRITE_DOUBLE( 4, equation[0] );
18 WRITE_DOUBLE( 12, equation[1] );
19 WRITE_DOUBLE( 20, equation[2] );
20 WRITE_DOUBLE( 28, equation[3] );
21 WRITE_OPCODE( pc, CR_CLIPPLANE_OPCODE );
22 CR_UNLOCK_PACKER_CONTEXT(pc);
23}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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