VirtualBox

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

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.

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