mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-17 13:22:58 +00:00
LibGL: Extract platform types to glplatform.h
This commit is contained in:
parent
ce37c138b4
commit
2ce73b31b6
|
@ -7,14 +7,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <LibGL/GL/glplatform.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GLAPI
|
|
||||||
# define GLAPI extern
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define GL_VERSION_1_0 1
|
#define GL_VERSION_1_0 1
|
||||||
#define GL_VERSION_1_1 1
|
#define GL_VERSION_1_1 1
|
||||||
#define GL_VERSION_1_2 1
|
#define GL_VERSION_1_2 1
|
||||||
|
@ -348,31 +346,6 @@ extern "C" {
|
||||||
#define GL_MODELVIEW_MATRIX 0x0BA6
|
#define GL_MODELVIEW_MATRIX 0x0BA6
|
||||||
#define GL_PROJECTION_MATRIX 0x0BA7
|
#define GL_PROJECTION_MATRIX 0x0BA7
|
||||||
|
|
||||||
//
|
|
||||||
// OpenGL typedefs
|
|
||||||
//
|
|
||||||
// Defines types used by all OpenGL applications
|
|
||||||
// https://www.khronos.org/opengl/wiki/OpenGL_Type
|
|
||||||
typedef char GLchar;
|
|
||||||
typedef char GLbyte;
|
|
||||||
typedef unsigned char GLuchar;
|
|
||||||
typedef unsigned char GLubyte;
|
|
||||||
typedef unsigned char GLboolean;
|
|
||||||
typedef short GLshort;
|
|
||||||
typedef unsigned short GLushort;
|
|
||||||
typedef int GLint;
|
|
||||||
typedef unsigned int GLuint;
|
|
||||||
typedef int GLfixed;
|
|
||||||
typedef long long GLint64;
|
|
||||||
typedef unsigned long long GLuint64;
|
|
||||||
typedef int GLsizei;
|
|
||||||
typedef void GLvoid;
|
|
||||||
typedef float GLfloat;
|
|
||||||
typedef float GLclampf;
|
|
||||||
typedef double GLdouble;
|
|
||||||
typedef unsigned int GLenum;
|
|
||||||
typedef unsigned int GLbitfield;
|
|
||||||
|
|
||||||
GLAPI void glBegin(GLenum mode);
|
GLAPI void glBegin(GLenum mode);
|
||||||
GLAPI void glClear(GLbitfield mask);
|
GLAPI void glClear(GLbitfield mask);
|
||||||
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||||
|
|
41
Userland/Libraries/LibGL/GL/glplatform.h
Normal file
41
Userland/Libraries/LibGL/GL/glplatform.h
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef GLAPI
|
||||||
|
# define GLAPI extern
|
||||||
|
#endif
|
||||||
|
#define GLAPIENTRY
|
||||||
|
#define APIENTRY GLAPIENTRY
|
||||||
|
#ifndef APIENTRYP
|
||||||
|
# define APIENTRYP APIENTRY*
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// OpenGL typedefs
|
||||||
|
//
|
||||||
|
// Defines types used by all OpenGL applications
|
||||||
|
// https://www.khronos.org/opengl/wiki/OpenGL_Type
|
||||||
|
typedef char GLchar;
|
||||||
|
typedef char GLbyte;
|
||||||
|
typedef unsigned char GLuchar;
|
||||||
|
typedef unsigned char GLubyte;
|
||||||
|
typedef unsigned char GLboolean;
|
||||||
|
typedef short GLshort;
|
||||||
|
typedef unsigned short GLushort;
|
||||||
|
typedef int GLint;
|
||||||
|
typedef unsigned int GLuint;
|
||||||
|
typedef int GLfixed;
|
||||||
|
typedef long long GLint64;
|
||||||
|
typedef unsigned long long GLuint64;
|
||||||
|
typedef int GLsizei;
|
||||||
|
typedef void GLvoid;
|
||||||
|
typedef float GLfloat;
|
||||||
|
typedef float GLclampf;
|
||||||
|
typedef double GLdouble;
|
||||||
|
typedef unsigned int GLenum;
|
||||||
|
typedef unsigned int GLbitfield;
|
Loading…
Reference in a new issue