-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraphics.h
executable file
·61 lines (39 loc) · 1.23 KB
/
graphics.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <cell/gcm.h>
#include <cell/dbgfont.h>
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
#define CONSOLE_WIDTH (76+16)
#define CONSOLE_HEIGHT (31)
#define DISPLAY_WIDTH 512
#define DISPLAY_HEIGHT 512
typedef struct
{
unsigned flags;
char title[64];
char path[768];
}
t_menu_list;
extern char bluray_game[64];
extern unsigned icon_raw[8192];
void put_vertex(float x, float y, float z, u32 color);
void put_texture_vertex(float x, float y, float z, float tx, float ty);
void draw_square(float x, float y, float w, float h, float z, u32 rgba);
int set_texture( u8 *buffer, u32 x_size, u32 y_size );
void display_png(int x, int y, int width, int height, int tx, int ty);
void draw_device_list(u32 flags);
int initConsole();
int termConsole();
int initFont(void);
int termFont(void);
void initShader(void);
int initDisplay(void);
void setDrawEnv(void);
void setRenderTarget(void);
int setRenderObject(void);
void setRenderColor(void);
void setRenderTexture(void);
void flip(void);
void draw_list( t_menu_list *menu, int menu_size, int selected );
void drawResultWindow( int result, int busy );
int DPrintf( const char *string, ... );