-
Notifications
You must be signed in to change notification settings - Fork 4
/
xxGraphicGLES31.h
34 lines (29 loc) · 1.71 KB
/
xxGraphicGLES31.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//==============================================================================
// xxGraphic : OpenGL ES 3.1 Header
//
// Copyright (c) 2019-2024 TAiGA
// https://github.com/metarutaiga/xxGraphic
//==============================================================================
#pragma once
#include "xxGraphic.h"
xxAPI uint64_t xxCreateInstanceGLES31();
xxInline char const* xxGetInstanceNameGLES31() { return "OpenGL ES 3.1"; }
#ifdef GL_ES_VERSION_3_1
//==============================================================================
// Instance
//==============================================================================
uint64_t xxCreateInstanceGLES31();
void xxDestroyInstanceGLES31(uint64_t instance);
//==============================================================================
// Swapchain
//==============================================================================
void xxPresentSwapchainGLES31(uint64_t swapchain);
uint64_t xxGetCommandBufferGLES31(uint64_t device, uint64_t swapchain);
//==============================================================================
// Command
//==============================================================================
void xxSetVertexBuffersGLES31(uint64_t commandEncoder, int count, const uint64_t* buffers, uint64_t vertexAttribute);
void xxDrawGLES31(uint64_t commandEncoder, int vertexCount, int instanceCount, int firstVertex, int firstInstance);
void xxDrawIndexedGLES31(uint64_t commandEncoder, uint64_t indexBuffer, int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance);
//==============================================================================
#endif