Last change
on this file since 16469 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:
641 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 |
|
---|
10 | void PACK_APIENTRY crPackClipPlane( GLenum plane, const GLdouble *equation )
|
---|
11 | {
|
---|
12 | GET_PACKER_CONTEXT(pc);
|
---|
13 | unsigned char *data_ptr;
|
---|
14 | int packet_length = sizeof( plane ) + 4*sizeof(*equation);
|
---|
15 | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.