Commit b858608c authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

.....

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61952 954022d7-b5bf-4e40-9824-e11837661b57
parent 858ab0bb
......@@ -1120,6 +1120,8 @@ DesktopEditor/Teamlab[!!-~]Editor[!!-~]IOS/Document[!!-~]Editor/ios_app_resource
DesktopEditor/Teamlab[!!-~]Editor[!!-~]MAC/Document[!!-~]Editor/Document[!!-~]Editor.xcodeproj/project.xcworkspace/xcuserdata/Korol.xcuserdatad/UserInterfaceState.xcuserstate svn_mime_002dtype=application%2Foctet-stream
DesktopEditor/Teamlab[!!-~]Editor[!!-~]MAC/Document[!!-~]Editor/Document[!!-~]Editor.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate svn_mime_002dtype=application%2Foctet-stream
DesktopEditor/Word_Api svnc_tsvn_003alogminsize=5
DesktopEditor/agg-2.4/examples/win32_api/pure_api/pure_api.ico svn_mime_002dtype=application%2Foctet-stream
DesktopEditor/agg-2.4/examples/win32_api/pure_api/small.ico svn_mime_002dtype=application%2Foctet-stream
DesktopEditor/build svnc_tsvn_003alogminsize=5
DesktopEditor/build/DocumentEditorCtrl svnc_tsvn_003alogminsize=5
DesktopEditor/build/DocumentEditorCtrl/Build svnc_tsvn_003alogminsize=5
......
Visit http://antigrain.com/news
\ No newline at end of file
all: lib
src/libagg.a:
cd src; make
lib: src/libagg.a
clean:
cd src; make clean
This diff is collapsed.
SUBDIRS = gpc src font_freetype font_win32_tt include examples
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libagg.pc
EXTRA_DIST = Makefile.AmigaOS \
Makefile.in.BeOS \
Makefile.in.CYGWIN_NT-5.0 \
Makefile.in.CYGWIN_NT-5.1 \
Makefile.in.Darwin \
Makefile.in.Darwin.SDL \
Makefile.in.IRIX64 \
Makefile.in.Linux \
Makefile.in.Linux.SDL \
Makefile.in.MINGW32_NT-5.0 \
Makefile.in.MINGW32_NT-5.1 \
Makefile.in.SunOS
# M4 macro file for inclusion with autoconf
m4datadir = $(datadir)/aclocal
m4data_DATA = libagg.m4
AGGLIBS= -lagg
AGGCXXFLAGS = -O1
CXX = g++
C = cc
LIB = ar -cru
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr -s
.PHONY : clean
AGGLIBS= -lagg -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
AGGCXXFLAGS = -O3 -I/Library/Frameworks/SDL.framework/Headers -L/usr/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr -s
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS =
CXX = CC
C = cc
LIB = CC -ar -o
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg -lSDL
AGGCXXFLAGS = -O3 -I/usr/include/SDL -L/usr/lib
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3
CXX = g++
C = gcc
#CXX = icc
LIB = ar cr
.PHONY : clean
AGGLIBS= -lagg
AGGCXXFLAGS = -O3 -I/usr/openwin/include -L/usr/openwin/lib
CXX = CC
C = cc
LIB = CC -xar -o
.PHONY : clean

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "agg2d", "agg.vcproj", "{37CA072A-5BDE-498B-B3A7-5E404F5F9BF2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{37CA072A-5BDE-498B-B3A7-5E404F5F9BF2}.Debug|Win32.ActiveCfg = Debug|Win32
{37CA072A-5BDE-498B-B3A7-5E404F5F9BF2}.Debug|Win32.Build.0 = Debug|Win32
{37CA072A-5BDE-498B-B3A7-5E404F5F9BF2}.Release|Win32.ActiveCfg = Release|Win32
{37CA072A-5BDE-498B-B3A7-5E404F5F9BF2}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
This diff is collapsed.
Anti-Grain Geometry - Version 2.4
Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
# autogen.sh
#
# invoke the auto* tools to create the configuration/build system
# build aclocal.m4
aclocal
# build config.h
autoheader
# build the configure script
autoconf
# set up libtool
libtoolize --force
# invoke automake
automake --foreign --add-missing --ignore-deps
# and finally invoke our new configure
./configure $*
# end
AC_INIT(src/agg_arc.cpp) # give me a source file, any source file...
AC_CANONICAL_TARGET
AC_CONFIG_HEADERS(include/config.h)
AM_INIT_AUTOMAKE(agg, 2.4.0)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_ISC_POSIX
AM_C_PROTOTYPES
if test "x$U" != "x"; then
AC_MSG_ERROR(Compiler not ANSI compliant)
fi
AM_PROG_LIBTOOL
AC_PROG_INSTALL
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_ARG_ENABLE(examples,
AC_HELP_STRING([--enable-examples],[Antigrain examples]))
AM_CONDITIONAL(ENABLE_EXAMPLES,test x$enable_examples != xno)
AC_ARG_ENABLE(ctrl,
AC_HELP_STRING([--enable-ctrl],[a gui libray used in examples]))
AC_ARG_ENABLE(platform,
AC_HELP_STRING([--enable-platform],[portable platform layers]))
if test x$enable_examples != xno ; then
enable_platform="yes"
fi
if test x$enable_platform != xno ; then
enable_ctrl="yes"
fi
AM_CONDITIONAL(ENABLE_CTRL,test x$enable_ctrl != xno)
# used as platform library in examples:
# todo, make the PREFERED_PLATFORM selectable, after the set of possible
# Platforms to link the examples have been evaluated.
PREFERED_PLATFORM=X11
case "$host" in
*darwin* )
OSX_LIBS="-framework Carbon -framework QuickTime"
OSX_CFLAGS="-I/System/Library/Frameworks/Carbon.framework/Headers -I/System/Library/Frameworks/QuickTime.framework/Headers "
AC_SUBST(OSX_CFLAGS)
AC_SUBST(OSX_LIBS)
osx_host=yes
PREFERED_PLATFORM=mac
;;
dnl #### Check if we are compiling for win32 #####
*mingw*)
win32_host=yes
WINDOWS_LIBS=-lgdi32
WINDOWS_CFLAGS=
AC_SUBST(WINDOWS_CFLAGS)
AC_SUBST(WINDOWS_LIBS)
PREFERED_PLATFORM=win32
;;
esac
AM_CONDITIONAL(ENABLE_WIN32,[test x$win32_host = xyes -a x$enable_platform != xno ])
AM_CONDITIONAL(ENABLE_OSX,[test x$osx_host = xyes -a x$enable_platform != xno ])
dnl then enable font_win32tt
AC_ARG_ENABLE(win32tt,
AC_HELP_STRING([--enable-win32tt],[Win32 TrueType font support library]),
enable_tt=$enable_win32tt,
enable_tt=$win32_host)
AM_CONDITIONAL(ENABLE_WIN32_TT, test x$enable_tt = xyes )
dnl ######### Check for FT2: #####################
ft_enabled=""
PKG_CHECK_MODULES([FREETYPE],
freetype2,
[ft_enabled="yes"],
AC_MSG_WARN([*** Freetype2 not found! Building without font library.])
)
AC_ARG_ENABLE(freetype,
AC_HELP_STRING([--enable-freetype],[freetype font support library]),
ft_enabled=$enable_freetype)
AM_CONDITIONAL(ENABLE_FT,[test xyes = x$ft_enabled])
dnl ###############################################
dnl ######### Ask for GPC: #######################
AC_ARG_ENABLE(gpc,
AC_HELP_STRING([--enable-gpc],[gpc polygon clipper library]) )
AM_CONDITIONAL(ENABLE_GPC,[test xyes = x$enable_gpc])
dnl ###############################################
dnl ######### Check for SDL: #####################
dnl the sdl script pollutes our global values:
temp_LIBS="$LIBS"
temp_CFLAGS="$CFLAGS"
temp_CXXFLAGS="$CXXFLAGS"
sdl_enabled=""
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
[sdl_enabled="yes"],
AC_MSG_WARN([*** SDL version $SDL_VERSION not found! Omitting sdl layer.])
)
dnl ### Restore old values
CFLAGS=$temp_CFLAGS
CXXFLAGS=$temp_CXXFLAGS
LIBS=$temp_LIBS
dnl ### the sdl script already does that:
dnl AC_SUBST(SDL_CFLAGS)
dnl AC_SUBST(SDL_LIBS)
AM_CONDITIONAL(ENABLE_SDL,[test xyes = x$sdl_enabled -a xno != x$enable_platform -a x$win32_host != xyes])
dnl ###############################################
dnl ######### Checking for X11: ##################
AC_PATH_X
if test "$no_x" = "yes"; then
AC_MSG_WARN([*** X11 not found! Omitting X11 layer.])
fi
AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes])
AC_SUBST(x_includes)
AC_SUBST(x_libraries)
dnl ###############################################
dnl Settung up library version
AGG_LIB_VERSION="2:4:0"
dnl current-´ / /
dnl revision--´ /
dnl age---´
dnl Update the version information only immediately before a public release of antigrain
dnl If the library source code has changed, increment revision (c:r:a becomes c:r+1:a).
dnl If any interfaces have been added, removed, or changed since the last update,
dnl increment current, and set revision to 0.
dnl If any interfaces have been added since the last public release, then increment age.
dnl If any interfaces have been removed since the last public release, then set age to 0.
AC_SUBST(AGG_LIB_VERSION)
AC_SUBST(PREFERED_PLATFORM)
AC_OUTPUT(
Makefile
libagg.pc
gpc/Makefile
font_freetype/Makefile
font_win32_tt/Makefile
src/Makefile
src/ctrl/Makefile
src/platform/Makefile
src/platform/X11/Makefile
src/platform/sdl/Makefile
src/platform/mac/Makefile
src/platform/win32/Makefile
src/platform/BeOS/Makefile
src/platform/AmigaOS/Makefile
include/Makefile
include/ctrl/Makefile
include/util/Makefile
include/platform/Makefile
examples/Makefile
)
The Anti-Grain Geometry Project
A high quality rendering engine for C++
http://antigrain.com
Anti-Grain Geometry has dual licensing model. The Modified BSD
License was first added in version v2.4 just for convenience.
It is a simple, permissive non-copyleft free software license,
compatible with the GNU GPL. It's well proven and recognizable.
See http://www.fsf.org/licensing/licenses/index_html#ModifiedBSD
for details.
Note that the Modified BSD license DOES NOT restrict your rights
if you choose the Anti-Grain Geometry Public License.
Anti-Grain Geometry Public License
====================================================
Anti-Grain Geometry - Version 2.4
Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
Permission to copy, use, modify, sell and distribute this software
is granted provided this copyright notice appears in all copies.
This software is provided "as is" without express or implied
warranty, and with no claim as to its suitability for any purpose.
Modified BSD License
====================================================
Anti-Grain Geometry - Version 2.4
Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The name of the author may not be used to endorse or promote
products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
#! /bin/sh
find . -iname '*.[oa]' -exec \rm -f {} \;
find . -iname '*.ppm' -exec \rm -f {} \;
find . -iname '*~' -exec \rm -f {} \;
find . -iname 'gamma.*' -exec \rm -f {} \;
find . -iname Debug -exec \rm -rf {} \;
find . -iname Release -exec \rm -rf {} \;
find . -iname '*.exe' -exec \rm -rf {} \;
find . -iname '*.lib' -exec \rm -rf {} \;
find . -iname '*.dll' -exec \rm -rf {} \;
find . -iname '*.obj' -exec \rm -rf {} \;
find . -iname '*.aps' -exec \rm -rf {} \;
find . -iname '*.clw' -exec \rm -rf {} \;
find . -iname '*.ilk' -exec \rm -rf {} \;
find . -iname '*.ncb' -exec \rm -rf {} \;
find . -iname '*.opt' -exec \rm -rf {} \;
find . -iname '*.plg' -exec \rm -rf {} \;
find . -iname '*.pch' -exec \rm -rf {} \;
find . -iname '*.idb' -exec \rm -rf {} \;
find . -iname '*.pdb' -exec \rm -rf {} \;
find . -iname '*.res' -exec \rm -rf {} \;
This diff is collapsed.
The Anti-Grain Geometry Project
A high quality rendering engine for C++
http://antigrain.com
Anti-Grain Geometry
Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
Permission to copy, use, modify, sell and distribute this software
is granted provided this copyright notice appears in all copies.
This software is provided "as is" without express or implied
warranty, and with no claim as to its suitability for any purpose.
By default only the examples that do not require extra dependancies are built.
with the following commands:
cd (AGGDIRECTORY)/examples/BeOS
make clean
make
Some examples (freetype_test, trans_curve1_ft and trans_curve2_ft) require the Freetype Library, and can be built with:
make freetype
There is also an example (gpc_test) that requires the GPC library, build it with:
make gpc
Of course, to build ALL examples run:
make all
Alternatively you can also build the examples one by one, using the example name directly:
make aa_demo
make aa_test
...
This diff is collapsed.
This diff is collapsed.
The Anti-Grain Geometry Project
A high quality rendering engine for C++
http://antigrain.com
Anti-Grain Geometry
Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
Permission to copy, use, modify, sell and distribute this software
is granted provided this copyright notice appears in all copies.
This software is provided "as is" without express or implied
warranty, and with no claim as to its suitability for any purpose.
By default only the examples that do not require extra dependancies are built.
with the following commands:
cd (AGGDIRECTORY)/examples/X11
make clean
make
Some examples (freetype_test, trans_curve1_ft and trans_curve2_ft) require the Freetype Library, and can be built with:
make freetype
There is also an example (gpc_test) that requires the GPC library, build it with:
make gpc
Of course, to build ALL examples run:
make all
Alternatively you can also build the examples one by one, using the example name directly:
make aa_demo
make aa_test
...
\ No newline at end of file
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_u.h"
#include "agg_renderer_scanline.h"
#include "agg_pixfmt_rgb.h"
#include "platform/agg_platform_support.h"
#include "ctrl/agg_slider_ctrl.h"
#include "ctrl/agg_cbox_ctrl.h"
enum flip_y_e { flip_y = true };
namespace agg
{
class square
{
public:
square(double size) : m_size(size) {}
template<class Rasterizer, class Scanline, class Renderer, class ColorT>
void draw(Rasterizer& ras, Scanline& sl, Renderer& ren, ColorT color,
double x, double y)
{
ras.reset();
ras.move_to_d(x*m_size, y*m_size);
ras.line_to_d(x*m_size+m_size, y*m_size);
ras.line_to_d(x*m_size+m_size, y*m_size+m_size);
ras.line_to_d(x*m_size, y*m_size+m_size);
agg::render_scanlines_aa_solid(ras, sl, ren, color);
}
private:
double m_size;
};
template<class Renderer> class renderer_enlarged
{
public:
renderer_enlarged(Renderer& ren, double size) :
m_ren(ren),
m_square(size),
m_size(size) {}
//--------------------------------------------------------------------
void color(rgba8 c) { m_color = c; }
//--------------------------------------------------------------------
void prepare() {}
//--------------------------------------------------------------------
template<class Scanline> void render(const Scanline& sl)
{
int y = sl.y();
unsigned num_spans = sl.num_spans();
typename Scanline::const_iterator span = sl.begin();
do
{
int x = span->x;
const typename Scanline::cover_type* covers = span->covers;
int num_pix = span->len;
do
{
int a = (*covers++ * m_color.a) >> 8;
m_square.draw(m_ras, m_sl, m_ren,
rgba8(m_color.r, m_color.g, m_color.b, a),
x, y);
++x;
}
while(--num_pix);
}
while(--num_spans);
}
private:
rasterizer_scanline_aa<> m_ras;
scanline_u8 m_sl;
Renderer& m_ren;
square m_square;
rgba8 m_color;
double m_size;
};
};
class the_application : public agg::platform_support
{
double m_x[3];
double m_y[3];
double m_dx;
double m_dy;
int m_idx;
agg::slider_ctrl<agg::rgba8> m_slider1;
agg::slider_ctrl<agg::rgba8> m_slider2;
public:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_slider1(80, 10, 600-10, 19, !flip_y),
m_slider2(80, 10+20, 600-10, 19+20, !flip_y)
{
m_idx = -1;
m_x[0] = 57; m_y[0] = 100;
m_x[1] = 369; m_y[1] = 170;
m_x[2] = 143; m_y[2] = 310;
add_ctrl(m_slider1);
add_ctrl(m_slider2);
m_slider1.range(8.0, 100.0);
m_slider1.num_steps(23);
m_slider1.value(32.0);
m_slider2.range(0.1, 3.0);
m_slider2.value(1.0);
m_slider1.label("Pixel size=%1.0f");
m_slider2.label("Gamma=%4.3f");
m_slider1.no_transform();
m_slider2.no_transform();
}
virtual ~the_application()
{
}
virtual void on_init()
{
}
virtual void on_draw()
{
typedef agg::renderer_base<agg::pixfmt_bgr24> ren_base;
agg::pixfmt_bgr24 pixf(rbuf_window());
ren_base ren(pixf);
agg::scanline_u8 sl;
ren.clear(agg::rgba(1,1,1));
agg::rasterizer_scanline_aa<> ras;
int size_mul = int(m_slider1.value());
ras.gamma(agg::gamma_power(m_slider2.value()));
agg::renderer_enlarged<ren_base> ren_en(ren, size_mul);
ras.reset();
ras.move_to_d(m_x[0]/size_mul, m_y[0]/size_mul);
ras.line_to_d(m_x[1]/size_mul, m_y[1]/size_mul);
ras.line_to_d(m_x[2]/size_mul, m_y[2]/size_mul);
ren_en.color(agg::rgba8(0,0,0, 255));
agg::render_scanlines(ras, sl, ren_en);
agg::render_scanlines_aa_solid(ras, sl, ren, agg::rgba8(0,0,0));
ras.gamma(agg::gamma_none());
agg::path_storage ps;
agg::conv_stroke<agg::path_storage> pg(ps);
pg.width(2.0);
ps.remove_all();
ps.move_to(m_x[0], m_y[0]);
ps.line_to(m_x[1], m_y[1]);
ras.add_path(pg);
agg::render_scanlines_aa_solid(ras, sl, ren, agg::rgba8(0,150,160, 200));
ps.remove_all();
ps.move_to(m_x[1], m_y[1]);
ps.line_to(m_x[2], m_y[2]);
ras.add_path(pg);
agg::render_scanlines_aa_solid(ras, sl, ren, agg::rgba8(0,150,160, 200));
ps.remove_all();
ps.move_to(m_x[2], m_y[2]);
ps.line_to(m_x[0], m_y[0]);
ras.add_path(pg);
agg::render_scanlines_aa_solid(ras, sl, ren, agg::rgba8(0,150,160, 200));
// Render the controls
agg::render_ctrl(ras, sl, ren, m_slider1);
agg::render_ctrl(ras, sl, ren, m_slider2);
}
virtual void on_mouse_button_down(int x, int y, unsigned flags)
{
if(flags & agg::mouse_left)
{
unsigned i;
for (i = 0; i < 3; i++)
{
if(sqrt( (x-m_x[i]) * (x-m_x[i]) + (y-m_y[i]) * (y-m_y[i]) ) < 10.0)
{
m_dx = x - m_x[i];
m_dy = y - m_y[i];
m_idx = i;
break;
}
}
if(i == 3)
{
if(agg::point_in_triangle(m_x[0], m_y[0],
m_x[1], m_y[1],
m_x[2], m_y[2],
x, y))
{
m_dx = x - m_x[0];
m_dy = y - m_y[0];
m_idx = 3;
}
}
}
}
virtual void on_mouse_move(int x, int y, unsigned flags)
{
if(flags & agg::mouse_left)
{
if(m_idx == 3)
{
double dx = x - m_dx;
double dy = y - m_dy;
m_x[1] -= m_x[0] - dx;
m_y[1] -= m_y[0] - dy;
m_x[2] -= m_x[0] - dx;
m_y[2] -= m_y[0] - dy;
m_x[0] = dx;
m_y[0] = dy;
force_redraw();
return;
}
if(m_idx >= 0)
{
m_x[m_idx] = x - m_dx;
m_y[m_idx] = y - m_dy;
force_redraw();
}
}
else
{
on_mouse_button_up(x, y, flags);
}
}
virtual void on_mouse_button_up(int x, int y, unsigned flags)
{
m_idx = -1;
}
};
int agg_main(int argc, char* argv[])
{
the_application app(agg::pix_format_bgr24, flip_y);
app.caption("AGG Example. Anti-Aliasing Demo");
if(app.init(600, 400, agg::window_resize))
{
return app.run();
}
return 1;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment