yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
coordinate_mapper.h File Reference
#include <cstdint>
#include <functional>
#include <string>
#include <utility>
#include <vector>
#include "app/gui/canvas/canvas_state.h"
#include "imgui/imgui.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::gui::TileHitInfo
 Information about a tile at a specific screen location. More...
 
struct  yaze::gui::ScreenToTileResult
 Screen coordinate mapping result. More...
 
struct  yaze::gui::CoordinateMapperConfig
 Configuration for coordinate mapping. More...
 
class  yaze::gui::CoordinateMapper
 Maps screen coordinates to tile/ROM data. More...
 

Namespaces

namespace  yaze
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 

Functions

TileHitInfo yaze::gui::ScreenToTileQuick (const CanvasRuntime &runtime, float screen_x, float screen_y, float tile_size=16.0f)
 Quick screen-to-tile lookup using canvas runtime state.
 
int yaze::gui::CalculateTileIndex (float local_x, float local_y, float tile_size, int tiles_per_row)
 Calculate tile index from local position and grid settings.
 
ImVec4 yaze::gui::GetTileBounds (int tile_x, int tile_y, float tile_size, float scale)
 Get tile bounds in canvas space.