OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 typedef signed long int WGC3Dintptr; | 57 typedef signed long int WGC3Dintptr; |
58 typedef signed long int WGC3Dsizeiptr; | 58 typedef signed long int WGC3Dsizeiptr; |
59 typedef int64_t WGC3Dint64; | 59 typedef int64_t WGC3Dint64; |
60 typedef uint64_t WGC3Duint64; | 60 typedef uint64_t WGC3Duint64; |
61 typedef struct __WGC3Dsync *WGC3Dsync; | 61 typedef struct __WGC3Dsync *WGC3Dsync; |
62 | 62 |
63 // Typedef for server-side objects like OpenGL textures and program objects. | 63 // Typedef for server-side objects like OpenGL textures and program objects. |
64 typedef WGC3Duint WebGLId; | 64 typedef WGC3Duint WebGLId; |
65 | 65 |
66 struct WebGLInfo { | 66 struct WebGLInfo { |
67 WGC3Duint vendorId; | 67 WebString vendorId; |
68 WGC3Duint deviceId; | 68 WebString deviceId; |
69 WebString vendorInfo; | 69 WebString vendorInfo; |
70 WebString rendererInfo; | 70 WebString rendererInfo; |
71 WebString driverVersion; | 71 WebString driverVersion; |
72 WebString contextInfoCollectionFailure; | 72 WebString contextInfoCollectionFailure; |
73 }; | 73 }; |
74 | 74 |
75 // This interface abstracts the operations performed by the | 75 // This interface abstracts the operations performed by the |
76 // GraphicsContext3D in order to implement WebGL. Nearly all of the | 76 // GraphicsContext3D in order to implement WebGL. Nearly all of the |
77 // methods exposed on this interface map directly to entry points in | 77 // methods exposed on this interface map directly to entry points in |
78 // the OpenGL ES 2.0 API. | 78 // the OpenGL ES 2.0 API. |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } | 560 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } |
561 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } | 561 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC
3Duint z, WGC3Duint w) { } |
562 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } | 562 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } |
563 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 563 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |
564 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } | 564 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } |
565 }; | 565 }; |
566 | 566 |
567 } // namespace blink | 567 } // namespace blink |
568 | 568 |
569 #endif | 569 #endif |
OLD | NEW |