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 | c1984ed | 2016-10-07 12:41:00 -0400 | [diff] [blame^] | 21 | class Sampler; |
Geoff Lang | d7d0ed3 | 2016-10-07 11:33:51 -0400 | [diff] [blame] | 22 | class Shader; |
Geoff Lang | c1984ed | 2016-10-07 12:41:00 -0400 | [diff] [blame^] | 23 | class Texture; |
Geoff Lang | ff5b2d5 | 2016-09-07 11:32:23 -0400 | [diff] [blame] | 24 | |
| 25 | void QueryFramebufferAttachmentParameteriv(const Framebuffer *framebuffer, |
| 26 | GLenum attachment, |
| 27 | GLenum pname, |
| 28 | GLint *params); |
| 29 | void QueryBufferParameteriv(const Buffer *buffer, GLenum pname, GLint *params); |
| 30 | void QueryProgramiv(const Program *program, GLenum pname, GLint *params); |
Geoff Lang | 740d902 | 2016-10-07 11:20:52 -0400 | [diff] [blame] | 31 | void QueryRenderbufferiv(const Renderbuffer *renderbuffer, GLenum pname, GLint *params); |
Geoff Lang | d7d0ed3 | 2016-10-07 11:33:51 -0400 | [diff] [blame] | 32 | void QueryShaderiv(const Shader *shader, GLenum pname, GLint *params); |
Geoff Lang | c1984ed | 2016-10-07 12:41:00 -0400 | [diff] [blame^] | 33 | void QueryTexParameterfv(const Texture *texture, GLenum pname, GLfloat *params); |
| 34 | void QueryTexParameteriv(const Texture *texture, GLenum pname, GLint *params); |
| 35 | void QuerySamplerParameterfv(const Sampler *sampler, GLenum pname, GLfloat *params); |
| 36 | void QuerySamplerParameteriv(const Sampler *sampler, GLenum pname, GLint *params); |
| 37 | |
| 38 | void SetTexParameterf(Texture *texture, GLenum pname, GLfloat param); |
| 39 | void SetTexParameterfv(Texture *texture, GLenum pname, const GLfloat *params); |
| 40 | void SetTexParameteri(Texture *texture, GLenum pname, GLint param); |
| 41 | void SetTexParameteriv(Texture *texture, GLenum pname, const GLint *params); |
| 42 | |
| 43 | void SetSamplerParameterf(Sampler *sampler, GLenum pname, GLfloat param); |
| 44 | void SetSamplerParameterfv(Sampler *sampler, GLenum pname, const GLfloat *params); |
| 45 | void SetSamplerParameteri(Sampler *sampler, GLenum pname, GLint param); |
| 46 | void SetSamplerParameteriv(Sampler *sampler, GLenum pname, const GLint *params); |
Geoff Lang | ff5b2d5 | 2016-09-07 11:32:23 -0400 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | #endif // LIBANGLE_QUERYUTILS_H_ |