nr-arena.cpp revision ec3cef722801728184cc83bd46740d0fdcadf908
#define __NR_ARENA_C__
/*
* RGBA display list system for inkscape
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "nr-arena-item.h"
#include "nr-arena.h"
#include "nr-filter-gaussian.h"
#include "nr-filter-types.h"
#include "preferences.h"
#include "color.h"
static NRActiveObjectClass *parent_class;
nr_arena_get_type (void)
{
if (!type) {
"NRArena",
sizeof (NRArenaClass),
sizeof (NRArena),
(void (*) (NRObjectClass *)) nr_arena_class_init,
(void (*) (NRObject *)) nr_arena_init);
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
void
{
// setup render parameter
if (arena->renderoffscreen == false) {
} else {
}
}
}
}
}
void
{
// setup render parameter
if (arena->renderoffscreen == false) {
} else {
}
}
}
}
}
/**
set arena to offscreen mode
rendering will be exact
@param arena NRArena object
*/
void
{
// the real assignment to the quality indicators is in the update function
arena->renderoffscreen = true;
}
#define FLOAT_TO_UINT8(f) (int(f*255))
#define RGBA_R(v) ((v) >> 24)
#define RGBA_A(v) ((v) & 0xff)
float rgb_v[3];
float cmyk_v[4];
sp_color_rgb_to_cmyk_floatv (cmyk_v, RGBA_R(*rgba)/256.0, RGBA_G(*rgba)/256.0, RGBA_B(*rgba)/256.0);
*rgba = (FLOAT_TO_UINT8(rgb_v[0])<<24) + (FLOAT_TO_UINT8(rgb_v[1])<<16) + (FLOAT_TO_UINT8(rgb_v[2])<<8) + 0xff;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :