mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
436c437189
add compiler directives
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make card games |
|
|
//| Copyright: (C) Twan van Laarhoven and the other MSE developers |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
#pragma once
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
#include <data/symbol.hpp>
|
|
|
|
// ----------------------------------------------------------------------------- : Image to symbol
|
|
|
|
/// Import an image as a symbol.
|
|
/** Handles MSE1 symbols by cutting out the symbol rectangle */
|
|
SymbolP import_symbol(Image& img);
|
|
|
|
/// Does the image represent a MSE1 symbol file?
|
|
/** Does some heuristic checks */
|
|
bool is_mse1_symbol(const Image& img);
|
|
|
|
/// Convert an image to a symbol, destroys the image in the process
|
|
SymbolP image_to_symbol(Image& img);
|
|
|
|
// ----------------------------------------------------------------------------- : Simplify symbol
|
|
|
|
/// Simplify a symbol
|
|
void simplify_symbol(Symbol&);
|
|
|
|
/// Simplify a symbol parts, i.e. use bezier curves instead of lots of lines
|
|
void simplify_symbol_shape(SymbolShape&);
|
|
|