summaryrefslogtreecommitdiffstats
path: root/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_bounds.c
blob: 1350a3da48669208dae661b19411b5e6d9a8dcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright (c) 2001, Stanford University
 * All rights reserved
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#include "unpacker.h"
#include "state/cr_statetypes.h"

void crUnpackBoundsInfoCR( void  )
{
	CRrecti bounds;
	GLint len;
	GLuint num_opcodes;
	GLbyte *payload;
	
	len = READ_DATA( 0, GLint );
	bounds.x1 = READ_DATA( 4, GLint );
	bounds.y1 = READ_DATA( 8, GLint );
	bounds.x2 = READ_DATA( 12, GLint );
	bounds.y2 = READ_DATA( 16, GLint );
	num_opcodes = READ_DATA( 20, GLuint );
	payload = DATA_POINTER( 24, GLbyte );

	cr_unpackDispatch.BoundsInfoCR( &bounds, payload, len, num_opcodes );
	INCR_VAR_PTR();
}