Welcome to mirror list, hosted at ThFree Co, Russian Federation.

agg_traits.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9411854bb3e8083f436eb9323369934bf654e122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <agg_pixfmt_rgba.h>
#include <agg_pixfmt_rgb_packed.h>
#include <agg_renderer_scanline.h>
#include <agg_rasterizer_scanline_aa.h>
#include <agg_scanline_u.h>
#include <agg_ellipse.h>

#include "graphics/opengl/data_traits.hpp"

template <typename Traits>
struct AggTraits
{
};

template <>
struct AggTraits<graphics::RGBA8Traits>
{
  typedef agg::pixfmt_rgba32 pixfmt_t;
};

template <>
struct AggTraits<graphics::RGBA4Traits>
{
  typedef agg::pixfmt_rgb4444 pixfmt_t;
};