Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: command_buffer/common/cross/gapi_interface.h

Issue 332036: move all O3D specific command buffer stuff to command_buffer::o3d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « command_buffer/common/cross/cmd_buffer_format.cc ('k') | command_buffer/common/cross/o3d_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698