use tiled atlas texture sampling, increase shader speed using inv sqrt
This commit is contained in:
parent
0c0aa792c1
commit
1f717b7c61
57 changed files with 3681 additions and 2982 deletions
|
|
@ -20,19 +20,19 @@ void pxl8_gui_state_destroy(pxl8_gui_state* state) {
|
|||
}
|
||||
|
||||
void pxl8_gui_begin_frame(pxl8_gui_state* state, pxl8_gfx* gfx) {
|
||||
(void)gfx;
|
||||
if (!state) return;
|
||||
state->hot_id = 0;
|
||||
if (gfx) pxl8_gfx_push_target(gfx);
|
||||
}
|
||||
|
||||
void pxl8_gui_end_frame(pxl8_gui_state* state, pxl8_gfx* gfx) {
|
||||
(void)gfx;
|
||||
if (!state) return;
|
||||
|
||||
if (!state->cursor_down) {
|
||||
state->active_id = 0;
|
||||
}
|
||||
state->cursor_clicked = false;
|
||||
if (gfx) pxl8_gfx_pop_target(gfx);
|
||||
}
|
||||
|
||||
void pxl8_gui_cursor_move(pxl8_gui_state* state, i32 x, i32 y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue