mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_OPENGL_2
|
|
|
|
#define xglBindBuffer glBindBuffer
|
|
#define xglBufferData glBufferData
|
|
#define xglGenBuffers glGenBuffers
|
|
|
|
#else
|
|
|
|
#include "Utils.hpp"
|
|
#include <GL/gl.h>
|
|
#include <GL/glu.h>
|
|
#include <GL/glext.h> // it'll include from a different dir, namely thirdparty/GL/glext.h
|
|
|
|
void xglInit();
|
|
bool xglInitted();
|
|
|
|
void xglBindBuffer(GLenum target, GLuint buffer);
|
|
void xglBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
|
|
void xglGenBuffers(GLsizei num, GLuint* buffers);
|
|
void xglDeleteBuffers(GLsizei num, GLuint* buffers);
|
|
void xglOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearpl, GLfloat farpl);
|
|
void xglSwapIntervalEXT(int interval);
|
|
|
|
// @TODO: not the right place, but er, it's ok
|
|
void drawArrayVT(GLuint buffer, int count, int stride);
|
|
void drawArrayVTC(GLuint buffer, int count, int stride);
|
|
|
|
#endif
|