Core: Move Vector2i to its own vector2i.h header

Also reduce interdependencies and clean up a bit.
This commit is contained in:
Rémi Verschelde 2022-02-04 15:35:14 +01:00
parent 5f56d385b0
commit e223bad86d
No known key found for this signature in database
GPG key ID: C3336907360768E1
21 changed files with 340 additions and 245 deletions

View file

@ -30,6 +30,9 @@
#include "editor_atlas_packer.h"
#include "core/math/vector2.h"
#include "core/math/vector2i.h"
void EditorAtlasPacker::_plot_triangle(Ref<BitMap> p_bitmap, Vector2i *vertices) {
int width = p_bitmap->get_size().width;
int height = p_bitmap->get_size().height;

View file

@ -31,11 +31,12 @@
#ifndef EDITOR_ATLAS_PACKER_H
#define EDITOR_ATLAS_PACKER_H
#include "core/math/vector2.h"
#include "core/templates/vector.h"
#include "scene/resources/bit_map.h"
struct Vector2;
struct Vector2i;
class EditorAtlasPacker {
public:
struct Chart {