If you've ever watched Casey Muratori's original ImGui video you may be familiar with this approach to hit testing in an immediate mode UI:
void ui_set_next_hot(UI_ID id)
{
ui->next_hot = id;
}
void ui_end_frame()
{
If you've ever watched Casey Muratori's original ImGui video you may be familiar with this approach to hit testing in an immediate mode UI:
void ui_set_next_hot(UI_ID id)
{
ui->next_hot = id;
}
void ui_end_frame()
{
package emulator | |
import "core:os" | |
import "core:fmt" | |
import "core:time" | |
import "core:math/rand" | |
when ODIN_OS == "windows" do foreign import libc "system:libcmt.lib"; | |
when ODIN_OS == "linux" do foreign import libc "system:c"; | |
foreign libc { |