VirtualBox

Changeset 21306 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 7, 2009 10:34:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49648
Message:

crOpenGL: tabs to spaces

Location:
trunk/src/VBox/HostServices/SharedOpenGL/unpacker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c

    r15532 r21306  
    2121void crUnpackExtendVertexPointer(void)
    2222{
    23         GLint size = READ_DATA( 8, GLint );
    24         GLenum type = READ_DATA( 12, GLenum );
    25         GLsizei stride = READ_DATA( 16, GLsizei );
    26         GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
    27         cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer );
     23    GLint size = READ_DATA( 8, GLint );
     24    GLenum type = READ_DATA( 12, GLenum );
     25    GLsizei stride = READ_DATA( 16, GLsizei );
     26    GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
     27    cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer );
    2828}
    2929
    3030void crUnpackExtendTexCoordPointer(void)
    3131{
    32         GLint size = READ_DATA( 8, GLint );
    33         GLenum type = READ_DATA( 12, GLenum );
    34         GLsizei stride = READ_DATA( 16, GLsizei );
    35         GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
    36         cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer );
     32    GLint size = READ_DATA( 8, GLint );
     33    GLenum type = READ_DATA( 12, GLenum );
     34    GLsizei stride = READ_DATA( 16, GLsizei );
     35    GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
     36    cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer );
    3737}
    3838
    3939void crUnpackExtendNormalPointer(void)
    4040{
    41         GLenum type = READ_DATA( 8, GLenum );
    42         GLsizei stride = READ_DATA( 12, GLsizei );
    43         GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
    44         cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer );
     41    GLenum type = READ_DATA( 8, GLenum );
     42    GLsizei stride = READ_DATA( 12, GLsizei );
     43    GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
     44    cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer );
    4545}
    4646
    4747void crUnpackExtendIndexPointer(void)
    4848{
    49         GLenum type = READ_DATA( 8, GLenum );
    50         GLsizei stride = READ_DATA( 12, GLsizei );
    51         GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
    52         cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer );
     49    GLenum type = READ_DATA( 8, GLenum );
     50    GLsizei stride = READ_DATA( 12, GLsizei );
     51    GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
     52    cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer );
    5353}
    5454
    5555void crUnpackExtendEdgeFlagPointer(void)
    5656{
    57         GLsizei stride = READ_DATA( 8, GLsizei );
    58         GLintptrARB pointer = READ_DATA( 12, GLintptrARB );
    59         cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer );
     57    GLsizei stride = READ_DATA( 8, GLsizei );
     58    GLintptrARB pointer = READ_DATA( 12, GLintptrARB );
     59    cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer );
    6060}
    6161
    6262void crUnpackExtendColorPointer(void)
    6363{
    64         GLint size = READ_DATA( 8, GLint );
    65         GLenum type = READ_DATA( 12, GLenum );
    66         GLsizei stride = READ_DATA( 16, GLsizei );
    67         GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
    68         cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer );
     64    GLint size = READ_DATA( 8, GLint );
     65    GLenum type = READ_DATA( 12, GLenum );
     66    GLsizei stride = READ_DATA( 16, GLsizei );
     67    GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
     68    cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer );
    6969}
    7070
    7171void crUnpackExtendFogCoordPointerEXT(void)
    7272{
    73         GLenum type = READ_DATA( 8, GLenum );
    74         GLsizei stride = READ_DATA( 12, GLsizei );
    75         GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
    76         cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer );
     73    GLenum type = READ_DATA( 8, GLenum );
     74    GLsizei stride = READ_DATA( 12, GLsizei );
     75    GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
     76    cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer );
    7777}
    7878
    7979void crUnpackExtendSecondaryColorPointerEXT(void)
    8080{
    81         GLint size = READ_DATA( 8, GLint );
    82         GLenum type = READ_DATA( 12, GLenum );
    83         GLsizei stride = READ_DATA( 16, GLsizei );
    84         GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
    85         cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer );
     81    GLint size = READ_DATA( 8, GLint );
     82    GLenum type = READ_DATA( 12, GLenum );
     83    GLsizei stride = READ_DATA( 16, GLsizei );
     84    GLintptrARB pointer = READ_DATA( 20, GLintptrARB );
     85    cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer );
    8686}
    8787
    8888void crUnpackExtendVertexAttribPointerARB(void)
    8989{
    90         GLuint index = READ_DATA( 8, GLuint);
    91         GLint size = READ_DATA( 12, GLint );
    92         GLenum type = READ_DATA( 16, GLenum );
    93         GLboolean normalized = READ_DATA( 20, GLboolean );
    94         GLsizei stride = READ_DATA( 24, GLsizei );
    95         GLintptrARB pointer = READ_DATA( 28, GLintptrARB );
    96         cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer );
     90    GLuint index = READ_DATA( 8, GLuint);
     91    GLint size = READ_DATA( 12, GLint );
     92    GLenum type = READ_DATA( 16, GLenum );
     93    GLboolean normalized = READ_DATA( 20, GLboolean );
     94    GLsizei stride = READ_DATA( 24, GLsizei );
     95    GLintptrARB pointer = READ_DATA( 28, GLintptrARB );
     96    cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer );
    9797}
    9898
    9999void crUnpackExtendVertexAttribPointerNV(void)
    100100{
    101         GLuint index = READ_DATA( 8, GLuint);
    102         GLint size = READ_DATA( 12, GLint );
    103         GLenum type = READ_DATA( 16, GLenum );
    104         GLsizei stride = READ_DATA( 20, GLsizei );
    105         GLintptrARB pointer = READ_DATA( 24, GLintptrARB );
    106         cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer );
     101    GLuint index = READ_DATA( 8, GLuint);
     102    GLint size = READ_DATA( 12, GLint );
     103    GLenum type = READ_DATA( 16, GLenum );
     104    GLsizei stride = READ_DATA( 20, GLsizei );
     105    GLintptrARB pointer = READ_DATA( 24, GLintptrARB );
     106    cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer );
    107107}
    108108
    109109void crUnpackExtendInterleavedArrays(void)
    110110{
    111         GLenum format = READ_DATA( 8, GLenum );
    112         GLsizei stride = READ_DATA( 12, GLsizei );
    113         GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
    114         cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer );
     111    GLenum format = READ_DATA( 8, GLenum );
     112    GLsizei stride = READ_DATA( 12, GLsizei );
     113    GLintptrARB pointer = READ_DATA( 16, GLintptrARB );
     114    cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer );
    115115}
    116116
    117117void crUnpackExtendDrawElements(void)
    118118{
    119         GLenum mode = READ_DATA( 8, GLenum );
    120         GLsizei count = READ_DATA( 12, GLsizei );
    121         GLenum type = READ_DATA( 16, GLenum );
    122         GLintptrARB indices = READ_DATA( 20, GLintptrARB );
    123         cr_unpackDispatch.DrawElements( mode, count, type, (void *) indices);
     119    GLenum mode = READ_DATA( 8, GLenum );
     120    GLsizei count = READ_DATA( 12, GLsizei );
     121    GLenum type = READ_DATA( 16, GLenum );
     122    GLintptrARB indices = READ_DATA( 20, GLintptrARB );
     123    cr_unpackDispatch.DrawElements( mode, count, type, (void *) indices);
    124124}
    125125
    126126void crUnpackExtendDrawRangeElements(void)
    127127{
    128         GLenum mode = READ_DATA( 8, GLenum );
    129         GLuint start = READ_DATA( 12, GLuint );
    130         GLuint end = READ_DATA( 16, GLuint );
    131         GLsizei count = READ_DATA( 20, GLsizei );
    132         GLenum type = READ_DATA( 24, GLenum );
    133         GLintptrARB indices = READ_DATA( 28, GLintptrARB );
    134         cr_unpackDispatch.DrawRangeElements( mode, start, end, count, type, (void *) indices);
     128    GLenum mode = READ_DATA( 8, GLenum );
     129    GLuint start = READ_DATA( 12, GLuint );
     130    GLuint end = READ_DATA( 16, GLuint );
     131    GLsizei count = READ_DATA( 20, GLsizei );
     132    GLenum type = READ_DATA( 24, GLenum );
     133    GLintptrARB indices = READ_DATA( 28, GLintptrARB );
     134    cr_unpackDispatch.DrawRangeElements( mode, start, end, count, type, (void *) indices);
    135135}
    136136
    137137void crUnpackMultiDrawArraysEXT(void)
    138138{
    139         crError( "Can't decode MultiDrawArraysEXT" );
     139    crError( "Can't decode MultiDrawArraysEXT" );
    140140}
    141141
    142142void crUnpackMultiDrawElementsEXT(void)
    143143{
    144         crError( "Can't decode MultiDrawElementsEXT" );
     144    crError( "Can't decode MultiDrawElementsEXT" );
    145145}
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_bufferobject.c

    r15532 r21306  
    1212void crUnpackExtendGetBufferSubDataARB( void )
    1313{
    14         GLenum target = READ_DATA( 8, GLenum );
    15         GLintptrARB offset = READ_DATA( 12, GLint );
    16         GLsizeiptrARB size = READ_DATA( 16, GLint );
     14    GLenum target = READ_DATA( 8, GLenum );
     15    GLintptrARB offset = READ_DATA( 12, GLint );
     16    GLsizeiptrARB size = READ_DATA( 16, GLint );
    1717#if 0
    18         GLvoid *data;
     18    GLvoid *data;
    1919#endif
    2020
    21         SET_RETURN_PTR( 20 );
    22         SET_WRITEBACK_PTR( 28 );
     21    SET_RETURN_PTR( 20 );
     22    SET_WRITEBACK_PTR( 28 );
    2323#if 0
    24         crMemcpy( &data, DATA_POINTER( 20, GLvoid ), sizeof(data) );
    25         printf("%s data=%p\n", __FUNCTION__, data);
    26         cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, data );
     24    crMemcpy( &data, DATA_POINTER( 20, GLvoid ), sizeof(data) );
     25    printf("%s data=%p\n", __FUNCTION__, data);
     26    cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, data );
    2727#endif
    28         cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, NULL );
     28    cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, NULL );
    2929}
    3030
     
    3232void crUnpackExtendBufferDataARB( void )
    3333{
    34         GLenum target = READ_DATA( sizeof(int) + 4, GLenum );
    35         GLsizeiptrARB size = READ_DATA( sizeof(int) + 8, GLsizeiptrARB );
    36         GLenum usage = READ_DATA( sizeof(int) + 12, GLenum );
    37         GLvoid *data = DATA_POINTER( sizeof(int) + 16, GLvoid );
     34    GLenum target = READ_DATA( sizeof(int) + 4, GLenum );
     35    GLsizeiptrARB size = READ_DATA( sizeof(int) + 8, GLsizeiptrARB );
     36    GLenum usage = READ_DATA( sizeof(int) + 12, GLenum );
     37    GLvoid *data = DATA_POINTER( sizeof(int) + 16, GLvoid );
    3838
    39         CRASSERT(sizeof(GLsizeiptrARB) == 4);
    40         CRASSERT(usage == GL_STATIC_DRAW_ARB);
     39    CRASSERT(sizeof(GLsizeiptrARB) == 4);
     40    CRASSERT(usage == GL_STATIC_DRAW_ARB);
    4141
    42         cr_unpackDispatch.BufferDataARB( target, size, data, usage );
     42    cr_unpackDispatch.BufferDataARB( target, size, data, usage );
    4343}
    4444
     
    4646void crUnpackExtendBufferSubDataARB( void )
    4747{
    48         GLenum target = READ_DATA( sizeof(int) + 4, GLenum );
    49         GLintptrARB offset = READ_DATA( sizeof(int) + 8, GLintptrARB );
    50         GLsizeiptrARB size = READ_DATA( sizeof(int) + 12, GLsizeiptrARB );
    51         GLvoid *data = DATA_POINTER( sizeof(int) + 16, GLvoid );
     48    GLenum target = READ_DATA( sizeof(int) + 4, GLenum );
     49    GLintptrARB offset = READ_DATA( sizeof(int) + 8, GLintptrARB );
     50    GLsizeiptrARB size = READ_DATA( sizeof(int) + 12, GLsizeiptrARB );
     51    GLvoid *data = DATA_POINTER( sizeof(int) + 16, GLvoid );
    5252
    53         cr_unpackDispatch.BufferSubDataARB( target, offset, size, data );
     53    cr_unpackDispatch.BufferSubDataARB( target, offset, size, data );
    5454}
    5555
     
    5757void crUnpackExtendDeleteBuffersARB(void)
    5858{
    59         GLsizei n = READ_DATA( 8, GLsizei );
    60         const GLuint *buffers = DATA_POINTER( 12, GLuint );
    61         cr_unpackDispatch.DeleteBuffersARB( n, buffers );
     59    GLsizei n = READ_DATA( 8, GLsizei );
     60    const GLuint *buffers = DATA_POINTER( 12, GLuint );
     61    cr_unpackDispatch.DeleteBuffersARB( n, buffers );
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette