VirtualBox

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

Last change on this file since 40708 was 33475, checked in by vboxsync, 14 years ago

crOpenGL/wddm: multithreading fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 711 bytes
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 "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}
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