godot/scene/resources/bit_map.cpp

/**************************************************************************/
/*  bit_map.cpp                                                           */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "bit_map.h"

#include "core/io/image_loader.h"
#include "core/variant/typed_array.h"

void BitMap::create(const Size2i &p_size) {}

void BitMap::create_from_image_alpha(const Ref<Image> &p_image, float p_threshold) {}

void BitMap::set_bit_rect(const Rect2i &p_rect, bool p_value) {}

int BitMap::get_true_bit_count() const {}

void BitMap::set_bitv(const Point2i &p_pos, bool p_value) {}

void BitMap::set_bit(int p_x, int p_y, bool p_value) {}

bool BitMap::get_bitv(const Point2i &p_pos) const {}

bool BitMap::get_bit(int p_x, int p_y) const {}

Size2i BitMap::get_size() const {}

void BitMap::_set_data(const Dictionary &p_d) {}

Dictionary BitMap::_get_data() const {}

Vector<Vector<Vector2>> BitMap::_march_square(const Rect2i &p_rect, const Point2i &p_start) const {}

static float perpendicular_distance(const Vector2 &i, const Vector2 &start, const Vector2 &end) {}

static Vector<Vector2> rdp(const Vector<Vector2> &v, float optimization) {}

static Vector<Vector2> reduce(const Vector<Vector2> &points, const Rect2i &rect, float epsilon) {}

struct FillBitsStackEntry {};

static void fill_bits(const BitMap *p_src, Ref<BitMap> &p_map, const Point2i &p_pos, const Rect2i &rect) {}

Vector<Vector<Vector2>> BitMap::clip_opaque_to_polygons(const Rect2i &p_rect, float p_epsilon) const {}

void BitMap::grow_mask(int p_pixels, const Rect2i &p_rect) {}

void BitMap::shrink_mask(int p_pixels, const Rect2i &p_rect) {}

TypedArray<PackedVector2Array> BitMap::_opaque_to_polygons_bind(const Rect2i &p_rect, float p_epsilon) const {}

void BitMap::resize(const Size2i &p_new_size) {}

Ref<Image> BitMap::convert_to_image() const {}

void BitMap::blit(const Vector2i &p_pos, const Ref<BitMap> &p_bitmap) {}

void BitMap::_bind_methods() {}

BitMap::BitMap() {}