repo_id stringlengths 27 162 | file_path stringlengths 42 195 | content stringlengths 4 5.16M | __index_level_0__ int64 0 0 |
|---|---|---|---|
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_array.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_basics.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_clip_liang_barsky.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_color_gray.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_color_rgba.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_config.h | #ifndef AGG_CONFIG_INCLUDED
#define AGG_CONFIG_INCLUDED
// This file can be used to redefine certain data types.
//---------------------------------------
// 1. Default basic types such as:
//
// AGG_INT8
// AGG_INT8U
// AGG_INT16
// AGG_INT16U
// AGG_INT32
// AGG_INT32U
// AGG_INT64
// AGG_INT64U
//
// Just replace... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_conv_adaptor_vcgen.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_conv_stroke.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_dda_line.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_gamma_functions.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_gamma_lut.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_image_accessors.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_image_filters.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_math.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_math_stroke.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_pixfmt_base.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_pixfmt_rgb.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_pixfmt_rgba.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_pixfmt_rgb_packed.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_platform_support.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_rasterizer_cells_aa.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_rasterizer_scanline_aa.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_rasterizer_scanline_aa_nogamma.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_rasterizer_sl_clip.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_renderer_base.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_renderer_scanline.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_rendering_buffer.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_scanline_u.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_shorten_path.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_span_allocator.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_span_image_filter.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_span_image_filter_rgb.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_span_image_filter_rgba.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_span_interpolator_linear.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_trans_affine.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_trans_viewport.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_vcgen_stroke.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agg | D://workCode//uploadProject\awtk\3rd\agg\include\agg_vertex_sequence.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\bitmap.h | #pragma once
#include "pixel.h"
#include "tools.h"
namespace agge {
template <typename PixelT>
struct pixel_bpp {};
template <typename PixelT, typename RawBitmapT>
class bitmap : public RawBitmapT {
public:
typedef PixelT pixel;
public:
bitmap(count_t width, count_t height, count_t stride, uint8_t* data);
b... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\blenders_generic.h | #pragma once
#include "pixel.h"
namespace agge {
template <typename PixelT>
class blender_solid_color_rgb {
public:
typedef PixelT pixel;
typedef uint8_t cover_type;
public:
blender_solid_color_rgb(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 0xFF);
void operator()(pixel* pixels, int x, int y, count_t n) ... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\blender_linear_gradient.h | #pragma once
#include <cstdio>
#include "pixel.h"
namespace agge {
template <typename PixelT>
class blender_linear_gradient {
public:
typedef PixelT pixel;
typedef uint8_t cover_type;
public:
blender_linear_gradient(float sx, float sy, float ex, float ey, pixel32_rgba sc, pixel32_rgba ec);
void operator()(p... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\blender_radial_gradient.h | #pragma once
#include "pixel.h"
namespace agge {
template <typename PixelT>
class blender_radial_gradient {
public:
typedef PixelT pixel;
typedef uint8_t cover_type;
public:
blender_radial_gradient(float cx, float cy, float inr, float outr, pixel32_rgba sc, pixel32_rgba ec);
void operator()(pixel* pixels, ... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\clipper.h | #pragma once
#include "math.h"
#include "types.h"
namespace agge
{
enum clipping_flags {
x1_clipped_shift = 2,
x2_clipped_shift = 0,
y1_clipped_shift = 3,
y2_clipped_shift = 1,
x1_clipped = 1 << x1_clipped_shift,
x2_clipped = 1 << x2_clipped_shift,
y1_clipped = 1 << y1_clipped_shift,
y2_clipped = 1 ... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\config.h | #pragma once
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
#define AGGE_INLINE __forceinline
#elif defined(__GNUC__) && (defined(__x86_64) || defined(__i386))
#define AGGE_INLINE __attribute__((always_inline)) inline
#else
#define AGGE_INLINE inline
#endif
#if defined(_M_IX86) || defined(__i386) |... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\filling_rules.h | #pragma once
#include "vector_rasterizer.h"
namespace agge
{
template <agge::uint8_t area_factor_shift = vector_rasterizer::_1_shift>
struct winding
{
uint8_t operator ()(int area) const;
};
template <agge::uint8_t area_factor_shift>
inline uint8_t winding<area_factor_shift>::operator ()(int area) const
{... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\math.h | #pragma once
#include "types.h"
namespace agge
{
extern const real_t distance_epsilon;
extern const real_t pi;
template <typename T>
struct limits
{
static T resolution();
};
real_t sqrt(real_t x);
real_t sin(real_t a);
real_t cos(real_t a);
inline int iround(real_t v)
{ return static_cast<int>(v > re... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\memory.h | #pragma once
#include "types.h"
namespace agge
{
template <typename T>
void memset(T *buffer, T value, count_t count);
class raw_memory_object : noncopyable
{
public:
raw_memory_object();
~raw_memory_object();
template <typename T>
T *get(count_t size);
private:
uint8_t *_buffer;
count_t _size;
... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\path.h | #pragma once
#include "types.h"
namespace agge
{
enum path_commands {
path_command_stop = 0x00,
path_command_move_to = 0x01,
path_command_line_to = 0x02,
path_command_end_poly = 0x10,
path_vertex_mask = 0x07,
path_command_mask = 0x1F
};
enum path_flags {
path_flag_close = 0x20,
path_flags_mask... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\pixel.h | #pragma once
#include "types.h"
namespace agge {
enum bits_per_pixel { bpp32 = 32, bpp24 = 24, bpp16 = 16, bpp8 = 8 };
#pragma pack(push, 1)
struct pixel32_rgba {
uint8_t r;
uint8_t g;
uint8_t b;
uint8_t a;
pixel32_rgba() : r(0), g(0), b(0), a(0) {
}
pixel32_rgba(uint8_t rr, uint8_t gg, uint8_t bb, ui... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\pixel_a.h | #pragma once
template <typename PixelT>
inline uint8_t pixel_a(const PixelT& p, uint8_t a) {
return a;
}
template <>
inline uint8_t pixel_a(const pixel32_rgba& p, uint8_t a) {
return (a * p.a) >> 8;
}
template <>
inline uint8_t pixel_a(const pixel32_abgr& p, uint8_t a) {
return (a * p.a) >> 8;
}
template <>
i... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\pixel_convert.h | #pragma once
#define PIXEL_CONVERT_NO_A(t, s) \
t.r = s.r; \
t.g = s.g; \
t.b = s.b;
#define PIXEL_CONVERT_FROM_565(t, s) \
t.r = s.r << 3; \
t.g = s.g << 2; \
t.b = s.b << 3;
#define PIXEL_CONVERT_TO_565(t, s) \
t.r = s.r >>... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\pixel_set_a.h | #pragma once
template <typename PixelT>
inline void pixel_set_a(PixelT& p, uint8_t a) {
}
template <>
inline void pixel_set_a(pixel32_rgba& p, uint8_t a) {
p.a = a;
}
template <>
inline void pixel_set_a(pixel32_bgra& p, uint8_t a) {
p.a = a;
}
template <>
inline void pixel_set_a(pixel32_abgr& p, uint8_t a) {
... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\pod_vector.h | #pragma once
#include "tools.h"
#include "types.h"
namespace agge
{
template <typename T>
class pod_vector
{
public:
typedef T *iterator;
typedef const T *const_iterator;
typedef T value_type;
public:
explicit pod_vector(count_t initial_size = 0);
pod_vector(const pod_vector &other);
~pod_vector();
... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\precise_delta.h | #pragma once
#include "config.h"
namespace agge
{
class precise_delta
{
public:
AGGE_INLINE precise_delta(int numerator, int denominator)
: _acc(0), _exp(0)
{
const float q = static_cast<float>(numerator) / denominator;
const int &iq = reinterpret_cast<const int &>(q);
const int exp = (((iq & 0x7F8... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\rasterizer.h | #pragma once
#include "math.h"
#include "vector_rasterizer.h"
namespace agge
{
template <typename T>
struct scaling;
template < typename ClipperT, typename ScalingT = scaling<typename ClipperT::coord_type> >
class rasterizer : private vector_rasterizer
{
public:
using vector_rasterizer::_1_shift;
using ve... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\renderer.h | #pragma once
#include "scanline.h"
#include "tools.h"
namespace agge
{
class renderer
{
public:
template <typename BitmapT, typename BlenderT>
class adapter;
public:
template <typename BitmapT, typename MaskT, typename BlenderT, typename AlphaFn>
void operator ()(BitmapT &bitmap_, const rect_i *window, c... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\scanline.h | #pragma once
#include "config.h"
#include "memory.h"
namespace agge
{
template <typename RendererT>
class scanline_adapter : noncopyable
{
public:
typedef typename RendererT::cover_type cover_type;
public:
scanline_adapter(RendererT &renderer_, raw_memory_object &covers_buffer, count_t max_length);
bool ... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\stroke.h | #pragma once
#include "vertex_sequence.h"
namespace agge
{
typedef pod_vector<point_r> points;
class stroke : vertex_sequence, noncopyable
{
public:
struct cap;
struct join;
public:
stroke();
~stroke();
// Vertex population
void remove_all();
using vertex_sequence::move_to;
using vertex_sequen... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\stroke_features.h | #pragma once
#include "stroke.h"
#include <math.h>
namespace agge
{
namespace caps
{
class butt : public stroke::cap
{
public:
virtual void calc(points &output, real_t w, const point_r &v0, real_t d, const point_r &v1) const;
};
class square : public stroke::cap
{
public:
virtual void calc(poin... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\tools.h | #pragma once
namespace agge
{
template <typename CoordT>
struct point;
template <typename CoordT>
struct agge_vector;
template <typename CoordT>
struct rect;
template <typename CoordT>
inline point<CoordT> create_point(CoordT x, CoordT y)
{
point<CoordT> p = { x, y };
return p;
}
template <typenam... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\types.h | #pragma once
namespace agge
{
typedef float real_t;
template <typename T>
struct point;
template <typename T>
struct agge_vector;
template <typename T>
struct rect;
template <typename T>
struct box;
typedef unsigned int count_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef ... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\vector_rasterizer.h | #pragma once
#include "pod_vector.h"
#include "types.h"
namespace agge
{
class precise_delta;
class vector_rasterizer
{
public:
enum
{
_1_shift = 8,
_1 = 1 << _1_shift,
_1_mask = _1 - 1,
};
#pragma pack(push, 1)
struct cell
{
short x, y;
int area;
short cover;
};
#pragma pack(pop)... | 0 |
D://workCode//uploadProject\awtk\3rd\agge | D://workCode//uploadProject\awtk\3rd\agge\agge\vertex_sequence.h | #pragma once
#include "math.h"
#include "pod_vector.h"
namespace agge
{
struct vertex
{
point_r point;
real_t distance;
};
class vertex_sequence : pod_vector<vertex>
{
public:
using pod_vector<vertex>::const_iterator;
using pod_vector<vertex>::iterator;
public:
void move_to(real_t x, real_t y);
v... | 0 |
D://workCode//uploadProject\awtk\3rd | D://workCode//uploadProject\awtk\3rd\cairo\cairo-version.h | #ifndef CAIRO_VERSION_H
#define CAIRO_VERSION_H
#define CAIRO_VERSION_MAJOR 1
#define CAIRO_VERSION_MINOR 17
#define CAIRO_VERSION_MICRO 3
#endif
| 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-analysis-surface-private.h | /*
* Copyright © 2005 Keith Packard
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under the terms of the Mozilla
* Public L... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-analysis-surface.c | /*
* Copyright © 2006 Keith Packard
* Copyright © 2007 Adrian Johnson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under t... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-arc-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LG... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-arc.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Fo... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-array-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-array.c | /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Red Hat, Inc
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* ... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-atomic-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2007 Chris Wilson
* Copyright © 2010 Andrea Canciani
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the F... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-atomic.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2007 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGP... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-backend-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2010 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-base64-stream.c | /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2005-2007 Emmanuel Pacaud <emmanuel.pacaud@free.fr>
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* mo... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-base85-stream.c | /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* ... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-bentley-ottmann-rectangular.c | /*
* Copyright © 2004 Carl Worth
* Copyright © 2006 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL"... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-bentley-ottmann-rectilinear.c | /*
* Copyright © 2004 Carl Worth
* Copyright © 2006 Red Hat, Inc.
* Copyright © 2008 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL"... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-bentley-ottmann.c | /*
* Copyright © 2004 Carl Worth
* Copyright © 2006 Red Hat, Inc.
* Copyright © 2008 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL"... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-botor-scan-converter.c | /*
* Copyright © 2004 Carl Worth
* Copyright © 2006 Red Hat, Inc.
* Copyright © 2007 David Turner
* Copyright © 2008 M Joonas Pihlaja
* Copyright © 2008 Chris Wilson
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the ... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-box-inline.h | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2010 Andrea Canciani
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-boxes-intersect.c | /*
* Copyright © 2004 Carl Worth
* Copyright © 2006 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
* Copyright © 2011 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the F... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-boxes-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-boxes.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-cache-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Red Hat, Inc.
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Fr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-cache.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2004 Red Hat, Inc.
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Fr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-boxes.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-inline.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LG... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-polygon.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2011 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Publi... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LG... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-region.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-surface.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip-tor-scan-converter.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* glitter-paths - polygon scan converter
*
* Copyright (c) 2008 M Joonas Pihlaja
* Copyright (c) 2007 David Turner
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docu... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-clip.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2009 Chris Wilson
*
* This library is free software; you can redistr... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-color.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-combsort-inline.h | /*
* Copyright © 2008 Chris Wilson
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under the terms of the Mozilla
* Public Li... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-compiler-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-composite-rectangles-private.h | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-composite-rectangles.c | /* cairo - a vector graphics library with display and print output
*
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-compositor-private.h | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2011 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Publi... | 0 |
D://workCode//uploadProject\awtk\3rd\cairo | D://workCode//uploadProject\awtk\3rd\cairo\cairo\cairo-compositor.c | /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2011 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Publi... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.