OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 22 matching lines...) Expand all Loading... |
33 // This file declares some effect related utilities. | 33 // This file declares some effect related utilities. |
34 | 34 |
35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ | 35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ |
36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ | 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ |
37 | 37 |
38 #include "command_buffer/common/cross/types.h" | 38 #include "command_buffer/common/cross/types.h" |
39 | 39 |
40 namespace o3d { | 40 namespace o3d { |
41 namespace command_buffer { | 41 namespace command_buffer { |
42 | 42 |
43 // This function parses the data passed to the CREATE_EFFECT commands, which | 43 // This function parses the data passed to the CreateEffect commands, which |
44 // follows the following format: | 44 // follows the following format: |
45 // vertex_program_entry \0 fragment_program_entry \0 effect_code | 45 // vertex_program_entry \0 fragment_program_entry \0 effect_code |
46 // It returns the various components. | 46 // It returns the various components. |
47 bool ParseEffectData(unsigned int size, | 47 bool ParseEffectData(unsigned int size, |
48 const void *data, | 48 const void *data, |
49 String *vertex_program_entry, | 49 String *vertex_program_entry, |
50 String *fragment_program_entry, | 50 String *fragment_program_entry, |
51 String *effect_code); | 51 String *effect_code); |
52 | 52 |
53 } // namespace command_buffer | 53 } // namespace command_buffer |
54 } // namespace o3d | 54 } // namespace o3d |
55 | 55 |
56 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ | 56 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ |
OLD | NEW |