diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 03:01:46 +0000 |
commit | f8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch) | |
tree | 26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c | |
parent | Initial commit. (diff) | |
download | virtualbox-upstream.tar.xz virtualbox-upstream.zip |
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c')
-rw-r--r-- | src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c b/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c new file mode 100644 index 00000000..462f28e5 --- /dev/null +++ b/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c @@ -0,0 +1,19 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#include "unpacker.h" +#include "cr_mem.h" +#include "unpack_extend.h" + +void crUnpackClipPlane( void ) +{ + GLenum plane = READ_DATA( 0, GLenum ); + GLdouble equation[4]; + crMemcpy( equation, DATA_POINTER( 4, GLdouble ), sizeof(equation) ); + + cr_unpackDispatch.ClipPlane( plane, equation ); + INCR_DATA_PTR( sizeof( GLenum ) + 4*sizeof( GLdouble )); +} |