-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGLPPixelformat.h
42 lines (30 loc) · 936 Bytes
/
GLPPixelformat.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
35
36
37
38
39
40
41
42
#pragma once
#include "GLPBase.h"
typedef enum GLPPixelformat {
GLPPixelformatUnknown,
// 1 channel
GLPPixelformatAlpha8,
GLPPixelformatLuminance8,
GLPPixelformatRed8,
// 2 channels
GLPPixelformatLuminanceAlpha88,
GLPPixelformatRedGreen8,
// 3 channels
GLPPixelformatRGB565,
GLPPixelformatRGB888,
// 4 channels
GLPPixelformatRGBA4444,
GLPPixelformatRGBA5551,
GLPPixelformatRGBA8888,
GLPPixelformatBGRA8888,
// compressed
GLPPixelformatPVRRGB2BPP,
GLPPixelformatPVRRGB4BPP,
GLPPixelformatPVRRGBA2BPP,
GLPPixelformatPVRRGBA4BPP,
} GLPPixelformat;
GLP_EXTERNC GLenum glpPixelformatGetFormat(GLPPixelformat format);
GLP_EXTERNC GLenum glpPixelformatGetInternalFormat(GLPPixelformat format);
GLP_EXTERNC GLenum glpPixelformatGetType(GLPPixelformat format);
GLP_EXTERNC GLboolean glpPixelformatIsCompressed(GLPPixelformat format);
GLP_EXTERNC GLuint glpPixelformatGetBytesPerPixel(GLPPixelformat format);