FuncDoodle
Loading...
Searching...
No Matches
Grid.h File Reference

Renders and manages the editor grid overlay. More...

#include "UI/Gui.h"
#include "Project/Frame.h"

Go to the source code of this file.

Classes

class  FuncDoodle::Grid
 Represents a singular grid. More...

Namespaces

namespace  FuncDoodle
 The FuncDoodle C++ namespace.

Detailed Description

Renders and manages the editor grid overlay.

This file defines the Grid class, which is responsible for drawing a visual grid over the canvas to assist with pixel alignment and editing.

Features:

  • Configurable grid width and height
  • Toggleable visibility state
  • Rendering via ImGui draw lists
  • Color inversion support for contrast (m_OppositeCol)

The grid is intended to be a single shared instance to avoid visual desync across different editor views.

Note
Only one Grid instance should typically exist during runtime.