VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_stipple.c@ 71903

Last change on this file since 71903 was 70601, checked in by vboxsync, 7 years ago

3D: SharedOpenGL code cleanup, bugref:9043

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 613 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 "unpacker.h"
8
9void crUnpackPolygonStipple( void )
10{
11 int nodata = READ_DATA(0, int);
12
13 if (nodata)
14 {
15 crError("crUnpackPolygonStipple: GL_PIXEL_UNPACK_BUFFER is not supported");
16 INCR_DATA_PTR(8);
17 }
18 else
19 {
20 GLubyte *mask;
21
22 mask = DATA_POINTER(4, GLubyte);
23 cr_unpackDispatch.PolygonStipple(mask);
24 // Stipple mask consists of 32 * 32 bits
25 INCR_DATA_PTR(4 + 32 * 32 / 8);
26 }
27}
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