mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
32 lines
1.5 KiB
C++
32 lines
1.5 KiB
C++
// MobileGL - MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.h
|
|
// Copyright (c) 2025-2026 MobileGL-Dev
|
|
// Licensed under the GNU Lesser General Public License v3.0:
|
|
// https://www.gnu.org/licenses/gpl-3.0.txt
|
|
// https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
// End of Source File Header
|
|
|
|
#pragma once
|
|
#include <Includes.h>
|
|
|
|
namespace MobileGL::MG_Impl::GLImpl {
|
|
/* @INSERTION_POINT:FUNCTION_DECLARATION@ */
|
|
const GLubyte* GetString(GLenum name);
|
|
const GLubyte* GetStringi(GLenum name, GLuint index);
|
|
void GetBooleanv(GLenum pname, GLboolean* params);
|
|
void GetFloatv(GLenum pname, GLfloat* params);
|
|
void GetDoublev(GLenum pname, GLdouble* params);
|
|
void GetIntegerv(GLenum pname, GLint* params);
|
|
void GetInteger64v(GLenum pname, GLint64* params);
|
|
void GetIntegeri_v(GLenum target, GLuint index, GLint* data);
|
|
void GetFloati_v(GLenum target, GLuint index, GLfloat* data);
|
|
void GetDoublei_v(GLenum target, GLuint index, GLdouble* data);
|
|
void GetInteger64i_v(GLenum target, GLuint index, GLint64* data);
|
|
GLenum GetError();
|
|
GLenum GetGraphicsResetStatus();
|
|
// The GL_MAX_SAMPLES value MobileGL advertises, i.e. the driver's value floored to the GL
|
|
// core minimum. Frontend multisample validators have to honour this ceiling for every
|
|
// format, otherwise MobileGL rejects a sample count it advertised itself.
|
|
GLint GetAdvertisedMaxSamples();
|
|
} // namespace MobileGL::MG_Impl::GLImpl
|