2013-04-28 02:22:24 +00:00
|
|
|
/*
|
|
|
|
* Cogl
|
|
|
|
*
|
|
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008,2009,2013 Intel Corporation.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COGL_PATH_H__
|
|
|
|
#define __COGL_PATH_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SECTION:cogl-paths
|
|
|
|
* @short_description: Functions for constructing and drawing 2D paths.
|
|
|
|
*
|
|
|
|
* There are two levels on which drawing with cogl-paths can be used.
|
|
|
|
* The highest level functions construct various simple primitive
|
|
|
|
* shapes to be either filled or stroked. Using a lower-level set of
|
|
|
|
* functions more complex and arbitrary paths can be constructed by
|
|
|
|
* concatenating straight line, bezier curve and arc segments.
|
|
|
|
*
|
|
|
|
* When constructing arbitrary paths, the current pen location is
|
|
|
|
* initialized using the move_to command. The subsequent path segments
|
|
|
|
* implicitly use the last pen location as their first vertex and move
|
|
|
|
* the pen location to the last vertex they produce at the end. Also
|
|
|
|
* there are special versions of functions that allow specifying the
|
|
|
|
* vertices of the path segments relative to the last pen location
|
|
|
|
* rather then in the absolute coordinates.
|
|
|
|
*/
|
|
|
|
|
2013-11-27 21:02:03 +00:00
|
|
|
#include <cogl/cogl-defines.h>
|
|
|
|
|
|
|
|
#ifdef COGL_HAS_GTYPE_SUPPORT
|
2013-04-28 02:22:24 +00:00
|
|
|
#include <cogl-path/cogl-path-enum-types.h>
|
2013-11-27 21:02:03 +00:00
|
|
|
#endif
|
2013-04-28 02:22:24 +00:00
|
|
|
|
|
|
|
#include <cogl-path/cogl-path-types.h>
|
|
|
|
|
|
|
|
#ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
|
|
|
|
#include <cogl-path/cogl2-path-functions.h>
|
|
|
|
#else
|
|
|
|
#include <cogl-path/cogl1-path-functions.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __COGL_PATH_H__ */
|
|
|
|
|