mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
LibGL: Extract platform types to glplatform.h
This commit is contained in:
parent
ce37c138b4
commit
2ce73b31b6
Notes:
sideshowbarker
2024-07-17 22:09:29 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/2ce73b31b6a Pull-request: https://github.com/SerenityOS/serenity/pull/11397
@ -7,14 +7,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGL/GL/glplatform.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef GLAPI
|
||||
# define GLAPI extern
|
||||
#endif
|
||||
|
||||
#define GL_VERSION_1_0 1
|
||||
#define GL_VERSION_1_1 1
|
||||
#define GL_VERSION_1_2 1
|
||||
@ -348,31 +346,6 @@ extern "C" {
|
||||
#define GL_MODELVIEW_MATRIX 0x0BA6
|
||||
#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 glClear(GLbitfield mask);
|
||||
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 New Issue
Block a user