-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxbuffer.h
44 lines (32 loc) · 791 Bytes
/
xbuffer.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
43
44
/**
* This file belongs to the 'xlab' game engine.
* Copyright 2009 xfacter
* Copyright 2016 wickles
* This work is licensed under the LGPLv3
* subject to all terms as reproduced in the included LICENSE file.
*/
#pragma once
#include "xconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct xBuffer {
int psm;
u16 width;
u16 height;
u16 buf_width;
u16 pow2_height;
float u_scale;
float v_scale;
void* data;
} xBuffer;
xBuffer* xBufferConstruct(int psm, int width, int height);
void xBufferDestroy(xBuffer* b);
xBuffer* xBufferFrameBuffer();
void xBufferSetImage(xBuffer* b);
int xBufferSetRenderTarget(xBuffer* b);
void xBufferDrawA2B(xBuffer* a, xBuffer* b);
void xBuffer4x4Pcf(xBuffer* a, xBuffer* b);
#ifdef __cplusplus
}
#endif