summaryrefslogtreecommitdiff
path: root/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_misc.c
blob: daf2b839ca54189b4158c982b41159170d29c192 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 * All rights reserved
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#include "unpacker.h"

void crUnpackExtendChromiumParametervCR( void  )
{
    GLenum target = READ_DATA( 8, GLenum );
    GLenum type = READ_DATA( 12, GLenum );
    GLsizei count = READ_DATA( 16, GLsizei );
    GLvoid *values = DATA_POINTER( 20, GLvoid );

    cr_unpackDispatch.ChromiumParametervCR(target, type, count, values);


    /*
    INCR_VAR_PTR();
    */
}

void crUnpackExtendDeleteQueriesARB(void)
{
    GLsizei n = READ_DATA( 8, GLsizei );
    const GLuint *ids = DATA_POINTER(12, GLuint);
    cr_unpackDispatch.DeleteQueriesARB(n, ids);
}

void crUnpackExtendGetPolygonStipple(void)
{
    GLubyte *mask;

    SET_RETURN_PTR( 8 );
    SET_WRITEBACK_PTR( 16 );
    mask = DATA_POINTER(8, GLubyte);

    cr_unpackDispatch.GetPolygonStipple( mask );
}

void crUnpackExtendGetPixelMapfv(void)
{
    GLenum map = READ_DATA( 8, GLenum );
    GLfloat *values;

    SET_RETURN_PTR( 12 );
    SET_WRITEBACK_PTR( 20 );
    values = DATA_POINTER(12, GLfloat);

    cr_unpackDispatch.GetPixelMapfv( map, values );
}

void crUnpackExtendGetPixelMapuiv(void)
{
    GLenum map = READ_DATA( 8, GLenum );
    GLuint *values;

    SET_RETURN_PTR( 12 );
    SET_WRITEBACK_PTR( 20 );
    values = DATA_POINTER(12, GLuint);

    cr_unpackDispatch.GetPixelMapuiv( map, values );
}

void crUnpackExtendGetPixelMapusv(void)
{
    GLenum map = READ_DATA( 8, GLenum );
    GLushort *values;

    SET_RETURN_PTR( 12 );
    SET_WRITEBACK_PTR( 20 );
    values = DATA_POINTER(12, GLushort);

    cr_unpackDispatch.GetPixelMapusv( map, values );
}

void crUnpackExtendVBoxTexPresent(void)
{
    GLuint texture = READ_DATA( 8, GLuint );
    GLuint cfg = READ_DATA( 12, GLuint );
    GLint xPos = READ_DATA( 16, GLint );
    GLint yPos = READ_DATA( 20, GLint );
    GLint cRects = READ_DATA( 24, GLint );
    GLint *pRects = (GLint *)DATA_POINTER( 28, GLvoid );
    cr_unpackDispatch.VBoxTexPresent( texture, cfg, xPos, yPos, cRects, pRects );
}