Geoff Lang | ff5b2d5 | 2016-09-07 11:32:23 -0400 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2016 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // queryutils.h: Utilities for querying values from GL objects |
| 8 | |
| 9 | #ifndef LIBANGLE_QUERYUTILS_H_ |
| 10 | #define LIBANGLE_QUERYUTILS_H_ |
| 11 | |
| 12 | #include "angle_gl.h" |
| 13 | #include "common/angleutils.h" |
| 14 | |
| 15 | namespace gl |
| 16 | { |
| 17 | class Buffer; |
| 18 | class Framebuffer; |
| 19 | class Program; |
Geoff Lang | 740d902 | 2016-10-07 11:20:52 -0400 | [diff] [blame^] | 20 | class Renderbuffer; |
Geoff Lang | ff5b2d5 | 2016-09-07 11:32:23 -0400 | [diff] [blame] | 21 | |
| 22 | void QueryFramebufferAttachmentParameteriv(const Framebuffer *framebuffer, |
| 23 | GLenum attachment, |
| 24 | GLenum pname, |
| 25 | GLint *params); |
| 26 | void QueryBufferParameteriv(const Buffer *buffer, GLenum pname, GLint *params); |
| 27 | void QueryProgramiv(const Program *program, GLenum pname, GLint *params); |
Geoff Lang | 740d902 | 2016-10-07 11:20:52 -0400 | [diff] [blame^] | 28 | void QueryRenderbufferiv(const Renderbuffer *renderbuffer, GLenum pname, GLint *params); |
Geoff Lang | ff5b2d5 | 2016-09-07 11:32:23 -0400 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | #endif // LIBANGLE_QUERYUTILS_H_ |