-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathxxGraphicGLES32.h
28 lines (23 loc) · 1.36 KB
/
xxGraphicGLES32.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
//==============================================================================
// xxGraphic : OpenGL ES 3.2 Header
//
// Copyright (c) 2019-2025 TAiGA
// https://github.com/metarutaiga/xxGraphic
//==============================================================================
#pragma once
#include "xxGraphic.h"
xxAPI uint64_t xxCreateInstanceGLES32();
xxInline char const* xxGetInstanceNameGLES32() { return "OpenGL ES 3.2"; }
#ifdef GL_ES_VERSION_3_2
//==============================================================================
// Instance
//==============================================================================
uint64_t xxCreateInstanceGLES32();
//==============================================================================
// Command
//==============================================================================
void xxSetVertexBuffersGLES32(uint64_t commandEncoder, int count, const uint64_t* buffers, uint64_t vertexAttribute);
void xxDrawGLES32(uint64_t commandEncoder, int vertexCount, int instanceCount, int firstVertex, int firstInstance);
void xxDrawIndexedGLES32(uint64_t commandEncoder, uint64_t indexBuffer, int indexCount, int vertexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance);
//==============================================================================
#endif