VirtualBox

Ignore:
Timestamp:
Jun 2, 2009 7:37:31 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: tabs to spaces

File:
1 edited

Legend:

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

    r20174 r20175  
    2323void crUnpackExtendBindAttribLocation(void)
    2424{
    25         GLuint program   = READ_DATA(8, GLuint);
    26         GLuint index     = READ_DATA(12, GLuint);
     25    GLuint program   = READ_DATA(8, GLuint);
     26    GLuint index     = READ_DATA(12, GLuint);
    2727    const char *name = DATA_POINTER(16, const char);
    2828
    29         cr_unpackDispatch.BindAttribLocation(program, index, name);
     29    cr_unpackDispatch.BindAttribLocation(program, index, name);
    3030}
    3131
     
    3333{
    3434    GLint *length = NULL;
    35         GLuint shader = READ_DATA(8, GLuint);
    36         GLsizei count = READ_DATA(12, GLsizei);
     35    GLuint shader = READ_DATA(8, GLuint);
     36    GLsizei count = READ_DATA(12, GLsizei);
    3737    GLint hasNonLocalLen = READ_DATA(16, GLsizei);
    3838    GLint *pLocalLength = DATA_POINTER(20, GLint);
     
    6060    }
    6161
    62         cr_unpackDispatch.ShaderSource(shader, count, ppStrings, length ? length : pLocalLength);
     62    cr_unpackDispatch.ShaderSource(shader, count, ppStrings, length ? length : pLocalLength);
    6363    crFree(ppStrings);
    6464}
     
    6666void crUnpackExtendUniform1fv(void)
    6767{
    68         GLint location = READ_DATA(8, GLint);
    69         GLsizei count = READ_DATA(12, GLsizei);
    70         const GLfloat *value = DATA_POINTER(16, const GLfloat);
    71         cr_unpackDispatch.Uniform1fv(location, count, value);
     68    GLint location = READ_DATA(8, GLint);
     69    GLsizei count = READ_DATA(12, GLsizei);
     70    const GLfloat *value = DATA_POINTER(16, const GLfloat);
     71    cr_unpackDispatch.Uniform1fv(location, count, value);
    7272}
    7373
    7474void crUnpackExtendUniform1iv(void)
    7575{
    76         GLint location = READ_DATA(8, GLint);
    77         GLsizei count = READ_DATA(12, GLsizei);
     76    GLint location = READ_DATA(8, GLint);
     77    GLsizei count = READ_DATA(12, GLsizei);
    7878    const GLint *value = DATA_POINTER(16, const GLint);
    79         cr_unpackDispatch.Uniform1iv(location, count, value);
     79    cr_unpackDispatch.Uniform1iv(location, count, value);
    8080}
    8181
    8282void crUnpackExtendUniform2fv(void)
    8383{
    84         GLint location = READ_DATA(8, GLint);
    85         GLsizei count = READ_DATA(12, GLsizei);
    86         const GLfloat *value = DATA_POINTER(16, const GLfloat);
    87         cr_unpackDispatch.Uniform2fv(location, count, value);
     84    GLint location = READ_DATA(8, GLint);
     85    GLsizei count = READ_DATA(12, GLsizei);
     86    const GLfloat *value = DATA_POINTER(16, const GLfloat);
     87    cr_unpackDispatch.Uniform2fv(location, count, value);
    8888}
    8989
    9090void crUnpackExtendUniform2iv(void)
    9191{
    92         GLint location = READ_DATA(8, GLint);
    93         GLsizei count = READ_DATA(12, GLsizei);
     92    GLint location = READ_DATA(8, GLint);
     93    GLsizei count = READ_DATA(12, GLsizei);
    9494    const GLint *value = DATA_POINTER(16, const GLint);
    95         cr_unpackDispatch.Uniform2iv(location, count, value);
     95    cr_unpackDispatch.Uniform2iv(location, count, value);
    9696}
    9797
    9898void crUnpackExtendUniform3fv(void)
    9999{
    100         GLint location = READ_DATA(8, GLint);
    101         GLsizei count = READ_DATA(12, GLsizei);
    102         const GLfloat *value = DATA_POINTER(16, const GLfloat);
    103         cr_unpackDispatch.Uniform3fv(location, count, value);
     100    GLint location = READ_DATA(8, GLint);
     101    GLsizei count = READ_DATA(12, GLsizei);
     102    const GLfloat *value = DATA_POINTER(16, const GLfloat);
     103    cr_unpackDispatch.Uniform3fv(location, count, value);
    104104}
    105105
    106106void crUnpackExtendUniform3iv(void)
    107107{
    108         GLint location = READ_DATA(8, GLint);
    109         GLsizei count = READ_DATA(12, GLsizei);
     108    GLint location = READ_DATA(8, GLint);
     109    GLsizei count = READ_DATA(12, GLsizei);
    110110    const GLint *value = DATA_POINTER(16, const GLint);
    111         cr_unpackDispatch.Uniform3iv(location, count, value);
     111    cr_unpackDispatch.Uniform3iv(location, count, value);
    112112}
    113113
    114114void crUnpackExtendUniform4fv(void)
    115115{
    116         GLint location = READ_DATA(8, GLint);
    117         GLsizei count = READ_DATA(12, GLsizei);
    118         const GLfloat *value = DATA_POINTER(16, const GLfloat);
    119         cr_unpackDispatch.Uniform4fv(location, count, value);
     116    GLint location = READ_DATA(8, GLint);
     117    GLsizei count = READ_DATA(12, GLsizei);
     118    const GLfloat *value = DATA_POINTER(16, const GLfloat);
     119    cr_unpackDispatch.Uniform4fv(location, count, value);
    120120}
    121121
    122122void crUnpackExtendUniform4iv(void)
    123123{
    124         GLint location = READ_DATA(8, GLint);
    125         GLsizei count = READ_DATA(12, GLsizei);
     124    GLint location = READ_DATA(8, GLint);
     125    GLsizei count = READ_DATA(12, GLsizei);
    126126    const GLint *value = DATA_POINTER(16, const GLint);
    127         cr_unpackDispatch.Uniform4iv(location, count, value);
     127    cr_unpackDispatch.Uniform4iv(location, count, value);
    128128}
    129129
    130130void crUnpackExtendUniformMatrix2fv(void)
    131131{
    132         GLint location = READ_DATA(8, GLint);
    133         GLsizei count = READ_DATA(12, GLsizei);
    134         GLboolean transpose = READ_DATA(16, GLboolean);
    135         const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
    136         cr_unpackDispatch.UniformMatrix2fv(location, count, transpose, value);
     132    GLint location = READ_DATA(8, GLint);
     133    GLsizei count = READ_DATA(12, GLsizei);
     134    GLboolean transpose = READ_DATA(16, GLboolean);
     135    const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
     136    cr_unpackDispatch.UniformMatrix2fv(location, count, transpose, value);
    137137}
    138138
    139139void crUnpackExtendUniformMatrix3fv(void)
    140140{
    141         GLint location = READ_DATA(8, GLint);
    142         GLsizei count = READ_DATA(12, GLsizei);
    143         GLboolean transpose = READ_DATA(16, GLboolean);
    144         const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
    145         cr_unpackDispatch.UniformMatrix3fv(location, count, transpose, value);
     141    GLint location = READ_DATA(8, GLint);
     142    GLsizei count = READ_DATA(12, GLsizei);
     143    GLboolean transpose = READ_DATA(16, GLboolean);
     144    const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
     145    cr_unpackDispatch.UniformMatrix3fv(location, count, transpose, value);
    146146}
    147147
    148148void crUnpackExtendUniformMatrix4fv(void)
    149149{
    150         GLint location = READ_DATA(8, GLint);
    151         GLsizei count = READ_DATA(12, GLsizei);
    152         GLboolean transpose = READ_DATA(16, GLboolean);
    153         const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
    154         cr_unpackDispatch.UniformMatrix4fv(location, count, transpose, value);
     150    GLint location = READ_DATA(8, GLint);
     151    GLsizei count = READ_DATA(12, GLsizei);
     152    GLboolean transpose = READ_DATA(16, GLboolean);
     153    const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat);
     154    cr_unpackDispatch.UniformMatrix4fv(location, count, transpose, value);
    155155}
    156156
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