[DEV] update new lutin 0.8.0
This commit is contained in:
parent
34451ae46c
commit
fc163615b1
@ -31,11 +31,7 @@ namespace agg
|
||||
{
|
||||
struct rgba8;
|
||||
}
|
||||
namespace draw
|
||||
{
|
||||
void parseColor(const char* _input, struct agg::rgba8& color);
|
||||
}
|
||||
#include <draw/debug.h>
|
||||
#include <etk/Color.h>
|
||||
|
||||
namespace agg
|
||||
{
|
||||
@ -435,7 +431,11 @@ namespace agg
|
||||
// parse a color whith a name or special Format:
|
||||
AGG_INLINE void Set(const char * _input)
|
||||
{
|
||||
draw::parseColor(_input, *this);
|
||||
etk::Color<uint8_t,4> color(_input);
|
||||
r = color.r();
|
||||
g = color.g();
|
||||
b = color.b();
|
||||
a = color.a();
|
||||
};
|
||||
|
||||
uint32_t Get(void) const
|
||||
@ -463,7 +463,11 @@ namespace agg
|
||||
};
|
||||
self_type & operator=(const char* _input)
|
||||
{
|
||||
draw::parseColor(_input, *this);
|
||||
etk::Color<uint8_t,4> color(_input);
|
||||
r = color.r();
|
||||
g = color.g();
|
||||
b = color.b();
|
||||
a = color.a();
|
||||
return *this;
|
||||
};
|
||||
bool operator==(const self_type& _input) const
|
||||
|
@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <draw/Image.h>
|
||||
#include <draw/debug.h>
|
||||
|
||||
|
||||
draw::Image::Image() :
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <etk/types.h>
|
||||
#include <vector>
|
||||
#include <etk/math/Vector2D.h>
|
||||
#include <draw/debug.h>
|
||||
#include <draw/Color.h>
|
||||
#include <agg/agg_pixfmt_rgba.h>
|
||||
#include <agg/agg_color_rgba.h>
|
||||
|
175
lutin_agg.py
175
lutin_agg.py
@ -4,23 +4,35 @@
|
||||
# --------------------------------------------------------
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
import os
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "AGG C++ graphic drawer"
|
||||
return "C++ graphic drawer"
|
||||
|
||||
def get_licence():
|
||||
return "BSD-3"
|
||||
|
||||
def get_compagny_type():
|
||||
return "com"
|
||||
|
||||
def create(target):
|
||||
my_module = module.Module(__file__, 'agg', 'LIBRARY')
|
||||
|
||||
def get_compagny_name():
|
||||
return "antigrain"
|
||||
|
||||
def get_maintainer():
|
||||
return ["Maxim Shemanarev <mcseem@antigrain.com>"]
|
||||
|
||||
def get_version():
|
||||
return [2,4]
|
||||
|
||||
def create(target, module_name):
|
||||
my_module = module.Module(__file__, module_name, get_type())
|
||||
my_module.add_module_depend(['etk', 'freetype'])
|
||||
|
||||
my_module.add_path(tools.get_current_path(__file__)+"/agg/")
|
||||
my_module.add_path(tools.get_current_path(__file__)+"/agg/util/")
|
||||
|
||||
my_module.add_export_path(tools.get_current_path(__file__))
|
||||
|
||||
my_module.add_path(os.path.join(tools.get_current_path(__file__), "agg"))
|
||||
my_module.add_path(os.path.join(tools.get_current_path(__file__), "agg/util"))
|
||||
my_module.add_path(tools.get_current_path(__file__))
|
||||
my_module.add_src_file([
|
||||
'agg/agg_arc.cpp',
|
||||
'agg/agg_arrowhead.cpp',
|
||||
@ -50,31 +62,132 @@ def create(target):
|
||||
'agg/agg_vpgen_segmentator.cpp'
|
||||
])
|
||||
my_module.add_header_file([
|
||||
'agg/agg_arc.h',
|
||||
'agg/agg_array.h',
|
||||
'agg/agg_arrowhead.h',
|
||||
'agg/agg_bezier_arc.h',
|
||||
'agg/agg_bspline.h',
|
||||
'agg/agg_curves.h',
|
||||
'agg/agg_embedded_raster_fonts.h',
|
||||
'agg/agg_font_freetype.h',
|
||||
'agg/agg_gsv_text.h',
|
||||
'agg/agg_image_filters.h',
|
||||
'agg/agg_line_aa_basics.h',
|
||||
'agg/agg_rounded_rect.h',
|
||||
'agg/agg_trans_affine.h',
|
||||
'agg/agg_trans_double_path.h',
|
||||
'agg/agg_color_rgba.h',
|
||||
'agg/agg_rasterizer_outline.h',
|
||||
'agg/agg_trans_single_path.h',
|
||||
'agg/agg_clip_liang_barsky.h',
|
||||
'agg/agg_span_gouraud_rgba.h',
|
||||
'agg/agg_renderer_base.h',
|
||||
'agg/agg_rendering_buffer_dynarow.h',
|
||||
'agg/agg_embedded_raster_fonts.h',
|
||||
'agg/agg_alpha_mask_u8.h',
|
||||
'agg/agg_scanline_boolean_algebra.h',
|
||||
'agg/agg_conv_transform.h',
|
||||
'agg/agg_span_gradient_alpha.h',
|
||||
'agg/agg_conv_marker_adaptor.h',
|
||||
'agg/agg_trans_warp_magnifier.h',
|
||||
'agg/agg_vcgen_bspline.h',
|
||||
'agg/agg_vcgen_contour.h',
|
||||
'agg/agg_vcgen_dash.h',
|
||||
'agg/agg_vcgen_markers_term.h',
|
||||
'agg/agg_vcgen_smooth_poly1.h',
|
||||
'agg/agg_conv_gpc.h',
|
||||
'agg/agg_trans_affine.h',
|
||||
'agg/agg_conv_close_polygon.h',
|
||||
'agg/agg_pattern_filters_rgba.h',
|
||||
'agg/agg_conv_adaptor_vpgen.h',
|
||||
'agg/agg_span_image_filter_rgba.h',
|
||||
'agg/agg_font_cache_manager.h',
|
||||
'agg/agg_conv_dash.h',
|
||||
'agg/agg_path_storage.h',
|
||||
'agg/agg_scanline_u.h',
|
||||
'agg/agg_vpgen_segmentator.h',
|
||||
'agg/agg_vcgen_stroke.h',
|
||||
'agg/agg_vpgen_clip_polygon.h',
|
||||
'agg/agg_bspline.h',
|
||||
'agg/agg_span_subdiv_adaptor.h',
|
||||
'agg/agg_rasterizer_outline_aa.h',
|
||||
'agg/agg_span_pattern_rgba.h',
|
||||
'agg/agg_conv_bspline.h',
|
||||
'agg/agg_bitset_iterator.h',
|
||||
'agg/agg_span_allocator.h',
|
||||
'agg/agg_span_interpolator_linear.h',
|
||||
'agg/agg_pixfmt_rgb.h',
|
||||
'agg/agg_renderer_primitives.h',
|
||||
'agg/agg_trans_perspective.h',
|
||||
'agg/agg_gradient_lut.h',
|
||||
'agg/agg_conv_unclose_polygon.h',
|
||||
'agg/agg_basics.h',
|
||||
'agg/agg_rasterizer_sl_clip.h',
|
||||
'agg/agg_conv_segmentator.h',
|
||||
'agg/agg_span_interpolator_persp.h',
|
||||
'agg/util/agg_color_conv_rgb8.h',
|
||||
'agg/util/agg_color_conv_rgb16.h',
|
||||
'agg/util/agg_color_conv.h',
|
||||
'agg/agg_image_accessors.h',
|
||||
'agg/agg_conv_adaptor_vcgen.h',
|
||||
'agg/agg_config.h',
|
||||
'agg/agg_scanline_p.h',
|
||||
'agg/agg_bezier_arc.h',
|
||||
'agg/agg_span_gradient.h',
|
||||
'agg/agg_renderer_outline_aa.h',
|
||||
'agg/agg_vcgen_bspline.h',
|
||||
'agg/agg_vpgen_clip_polyline.h',
|
||||
'agg/agg_vpgen_segmentator.h'
|
||||
'agg/agg_conv_smooth_poly1.h',
|
||||
'agg/agg_rounded_rect.h',
|
||||
'agg/agg_arrowhead.h',
|
||||
'agg/agg_rendering_buffer.h',
|
||||
'agg/agg_rasterizer_compound_aa.h',
|
||||
'agg/agg_scanline_bin.h',
|
||||
'agg/agg_span_gouraud.h',
|
||||
'agg/agg_trans_viewport.h',
|
||||
'agg/agg_image_filters.h',
|
||||
'agg/agg_conv_clip_polygon.h',
|
||||
'agg/agg_conv_shorten_path.h',
|
||||
'agg/agg_path_length.h',
|
||||
'agg/agg_conv_concat.h',
|
||||
'agg/agg_bounding_rect.h',
|
||||
'agg/agg_conv_stroke.h',
|
||||
'agg/agg_span_image_filter_gray.h',
|
||||
'agg/agg_shorten_path.h',
|
||||
'agg/agg_path_storage_integer.h',
|
||||
'agg/agg_color_gray.h',
|
||||
'agg/agg_rasterizer_scanline_aa.h',
|
||||
'agg/agg_span_pattern_rgb.h',
|
||||
'agg/agg_conv_marker.h',
|
||||
'agg/agg_span_image_filter.h',
|
||||
'agg/agg_pixfmt_transposer.h',
|
||||
'agg/agg_array.h',
|
||||
'agg/agg_rasterizer_cells_aa.h',
|
||||
'agg/agg_span_pattern_gray.h',
|
||||
'agg/agg_span_image_filter_rgb.h',
|
||||
'agg/agg_renderer_raster_text.h',
|
||||
'agg/agg_renderer_outline_image.h',
|
||||
'agg/agg_conv_contour.h',
|
||||
'agg/agg_gamma_functions.h',
|
||||
'agg/agg_font_freetype.h',
|
||||
'agg/agg_math_stroke.h',
|
||||
'agg/agg_vpgen_clip_polygon.h',
|
||||
'agg/agg_vcgen_dash.h',
|
||||
'agg/agg_renderer_mclip.h',
|
||||
'agg/agg_vcgen_vertex_sequence.h',
|
||||
'agg/agg_pixfmt_rgb_packed.h',
|
||||
'agg/agg_line_aa_basics.h',
|
||||
'agg/agg_arc.h',
|
||||
'agg/agg_trans_bilinear.h',
|
||||
'agg/agg_vcgen_markers_term.h',
|
||||
'agg/agg_blur.h',
|
||||
'agg/agg_conv_clip_polyline.h',
|
||||
'agg/agg_ellipse_bresenham.h',
|
||||
'agg/agg_glyph_raster_bin.h',
|
||||
'agg/agg_pixfmt_gray.h',
|
||||
'agg/agg_span_interpolator_trans.h',
|
||||
'agg/agg_renderer_scanline.h',
|
||||
'agg/agg_gamma_lut.h',
|
||||
'agg/agg_scanline_storage_bin.h',
|
||||
'agg/agg_gsv_text.h',
|
||||
'agg/agg_span_converter.h',
|
||||
'agg/agg_simul_eq.h',
|
||||
'agg/agg_vertex_sequence.h',
|
||||
'agg/agg_conv_curve.h',
|
||||
'agg/agg_trans_double_path.h',
|
||||
'agg/agg_pixfmt_amask_adaptor.h',
|
||||
'agg/agg_curves.h',
|
||||
'agg/agg_span_solid.h',
|
||||
'agg/agg_ellipse.h',
|
||||
'agg/agg_span_interpolator_adaptor.h',
|
||||
'agg/agg_span_gouraud_gray.h',
|
||||
'agg/agg_pixfmt_rgba.h',
|
||||
'agg/agg_vcgen_smooth_poly1.h',
|
||||
'agg/agg_math.h',
|
||||
'agg/agg_scanline_storage_aa.h',
|
||||
'agg/agg_dda_line.h',
|
||||
'agg/agg_renderer_markers.h',
|
||||
'agg/agg_vcgen_contour.h'
|
||||
])
|
||||
#ewol abstraction of the graphic librairies :
|
||||
# TODO : Maybe deprecated ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user