mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 12:14:39 +00:00
edit a little bit
This commit is contained in:
parent
bdd5bb32e3
commit
205d3f3972
@ -91,11 +91,16 @@ gf_draw_t* gf_draw_create(gf_engine_t* engine, const char* title) {
|
|||||||
|
|
||||||
void gf_draw_reshape(gf_draw_t* draw) { gf_draw_driver_reshape(draw); }
|
void gf_draw_reshape(gf_draw_t* draw) { gf_draw_driver_reshape(draw); }
|
||||||
|
|
||||||
|
gf_gui_id_t button = -1;
|
||||||
|
|
||||||
/* Runs every frame */
|
/* Runs every frame */
|
||||||
void gf_draw_frame(gf_draw_t* draw) {
|
void gf_draw_frame(gf_draw_t* draw) {
|
||||||
gf_graphic_color_t color;
|
gf_graphic_color_t color;
|
||||||
color.r = color.g = color.b = color.a = 255;
|
color.r = color.g = color.b = color.a = 255;
|
||||||
if(!draw->draw_3d) {
|
if(button == -1) {
|
||||||
|
button = gf_gui_create_button(draw->gui, 0, 0, 200, 100, "Test");
|
||||||
|
}
|
||||||
|
if(draw->draw_3d) {
|
||||||
gf_graphic_draw_texture_polygon(draw, test_texture, color, GF_GRAPHIC_3D, 4,
|
gf_graphic_draw_texture_polygon(draw, test_texture, color, GF_GRAPHIC_3D, 4,
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
0.0, 0.0,
|
0.0, 0.0,
|
||||||
@ -112,6 +117,7 @@ void gf_draw_frame(gf_draw_t* draw) {
|
|||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
gf_gui_render(draw->gui);
|
||||||
}
|
}
|
||||||
|
|
||||||
int gf_draw_step(gf_draw_t* draw) {
|
int gf_draw_step(gf_draw_t* draw) {
|
||||||
|
@ -76,6 +76,9 @@ digraph relation {
|
|||||||
|
|
||||||
subgraph cluster_client {
|
subgraph cluster_client {
|
||||||
label = "Client Interface";
|
label = "Client Interface";
|
||||||
|
ct [
|
||||||
|
label = "gf_client_t"
|
||||||
|
];
|
||||||
gui [
|
gui [
|
||||||
label = "GUI"
|
label = "GUI"
|
||||||
];
|
];
|
||||||
@ -110,6 +113,9 @@ digraph relation {
|
|||||||
|
|
||||||
subgraph cluster_server {
|
subgraph cluster_server {
|
||||||
label = "Server Interface";
|
label = "Server Interface";
|
||||||
|
st [
|
||||||
|
label = "gf_server_t"
|
||||||
|
];
|
||||||
|
|
||||||
subgraph cluster_physics {
|
subgraph cluster_physics {
|
||||||
label = "Physics Interface";
|
label = "Physics Interface";
|
||||||
@ -158,12 +164,18 @@ digraph relation {
|
|||||||
uf -> gf;
|
uf -> gf;
|
||||||
|
|
||||||
// Engine
|
// Engine
|
||||||
gf -> dt;
|
gf -> ct;
|
||||||
|
|
||||||
gf -> pt;
|
gf -> st;
|
||||||
|
|
||||||
gf -> log;
|
gf -> log;
|
||||||
|
|
||||||
|
// Client
|
||||||
|
ct -> dt;
|
||||||
|
|
||||||
|
// Server
|
||||||
|
st -> pt;
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
log -> dt;
|
log -> dt;
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 90 KiB |
Loading…
x
Reference in New Issue
Block a user