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 |
|
---|
10 | void 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 | }
|
---|