| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 | 32 |
| 33 // This file contains the interface class for the low-level graphics API | 33 // This file contains the interface class for the low-level graphics API |
| 34 // (GAPI). | 34 // (GAPI). |
| 35 | 35 |
| 36 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ | 36 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ |
| 37 #define O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ | 37 #define O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ |
| 38 | 38 |
| 39 #include "command_buffer/common/cross/constants.h" | 39 #include "command_buffer/common/cross/constants.h" |
| 40 #include "command_buffer/common/cross/resource.h" | 40 #include "command_buffer/common/cross/resource.h" |
| 41 #include "command_buffer/common/cross/cmd_buffer_format.h" | 41 #include "command_buffer/common/cross/o3d_cmd_format.h" |
| 42 | 42 |
| 43 namespace o3d { | 43 namespace o3d { |
| 44 namespace command_buffer { | 44 namespace command_buffer { |
| 45 namespace o3d { |
| 45 | 46 |
| 46 // RBGA color definition. | 47 // RBGA color definition. |
| 47 struct RGBA { | 48 struct RGBA { |
| 48 float red; | 49 float red; |
| 49 float green; | 50 float green; |
| 50 float blue; | 51 float blue; |
| 51 float alpha; | 52 float alpha; |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 // This class defines the low-level graphics API, as a pure interface class. | 55 // This class defines the low-level graphics API, as a pure interface class. |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // parse_error::kParseInvalidArguments if invalid arguments are | 821 // parse_error::kParseInvalidArguments if invalid arguments are |
| 821 // passed, parse_error::kParseNoError otherwise. | 822 // passed, parse_error::kParseNoError otherwise. |
| 822 virtual ParseError SetRenderSurface(ResourceId render_surface_id, | 823 virtual ParseError SetRenderSurface(ResourceId render_surface_id, |
| 823 ResourceId depth_stencil_id) = 0; | 824 ResourceId depth_stencil_id) = 0; |
| 824 | 825 |
| 825 // Switch the render surface and depth stencil surface back to the main | 826 // Switch the render surface and depth stencil surface back to the main |
| 826 // surfaces stored in the render | 827 // surfaces stored in the render |
| 827 virtual void SetBackSurfaces() = 0; | 828 virtual void SetBackSurfaces() = 0; |
| 828 }; | 829 }; |
| 829 | 830 |
| 831 } // namespace o3d |
| 830 } // namespace command_buffer | 832 } // namespace command_buffer |
| 831 } // namespace o3d | 833 } // namespace o3d |
| 832 | 834 |
| 833 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ | 835 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_GAPI_INTERFACE_H_ |
| OLD | NEW |