Krita Source Code Documentation
Loading...
Searching...
No Matches
gimp_bump_map.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * gimp_bump_map contains code taken from gimp-bumpmap.c, original copyright:
5 *
6 * SPDX-FileCopyrightText: 1997 Federico Mena Quintero <federico@nuclecu.unam.mx>
7 * SPDX-FileCopyrightText: 1997-2000 Jens Lautenbacher <jtl@gimp.org>
8 * SPDX-FileCopyrightText: 2000 Sven Neumann <sven@gimp.org>
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef __GIMP_BUMP_MAP_H
14#define __GIMP_BUMP_MAP_H
15
16#include <QtGlobal>
17#include "kis_types.h"
18
19
20
27
28
30{
32 : bumpmap_id(0),
33 azimuth(0),
34 elevation(30),
35 depth(50),
36 xofs(0),
37 yofs(0),
38 waterlevel(0),
39 ambient(10),
40 compensate(true),
41 invert(false),
42 type(0),
43 tiled(false)
44 {
45 }
46
47 const qint32 bumpmap_id;
48 double azimuth;
49 double elevation;
50 int depth;
51 const int xofs;
52 const int yofs;
53 const int waterlevel;
56 bool invert;
57 int type;
58 const bool tiled;
59};
60
61void KRITAIMAGE_EXPORT bumpmap (KisPixelSelectionSP device,
62 const QRect &selectionRect,
63 const bumpmap_vals_t &bmvals);
64
65#endif /* __GIMP_BUMP_MAP_H */
void KRITAIMAGE_EXPORT bumpmap(KisPixelSelectionSP device, const QRect &selectionRect, const bumpmap_vals_t &bmvals)
BumpmapType
@ SINUSOIDAL
@ LINEAR
@ SPHERICAL
const bool tiled
const int waterlevel
const qint32 bumpmap_id