2013-04-27 22:22:24 -04:00
|
|
|
/*
|
|
|
|
* Cogl
|
|
|
|
*
|
2014-02-21 20:28:54 -05:00
|
|
|
* A Low Level GPU Graphics and Utilities API
|
2013-04-27 22:22:24 -04:00
|
|
|
*
|
|
|
|
* Copyright (C) 2008,2009,2013 Intel Corporation.
|
|
|
|
*
|
2014-02-21 20:28:54 -05:00
|
|
|
* 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.
|
2013-04-27 22:22:24 -04:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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 16:02:03 -05:00
|
|
|
#include <cogl/cogl-defines.h>
|
|
|
|
|
2013-04-27 22:22:24 -04:00
|
|
|
#include <cogl-path/cogl-path-enum-types.h>
|
|
|
|
#include <cogl-path/cogl-path-types.h>
|
2016-06-16 15:04:40 -04:00
|
|
|
#include <cogl-path/cogl-path-functions.h>
|
2013-04-27 22:22:24 -04:00
|
|
|
|
|
|
|
#endif /* __COGL_PATH_H__ */
|
|
|
|
|