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
21
enum
BumpmapType
22
{
23
LINEAR
= 0,
24
SPHERICAL
,
25
SINUSOIDAL
26
};
27
28
29
struct
bumpmap_vals_t
30
{
31
bumpmap_vals_t
()
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
;
54
int
ambient
;
55
bool
compensate
;
56
bool
invert
;
57
int
type
;
58
const
bool
tiled
;
59
};
60
61
void
KRITAIMAGE_EXPORT
bumpmap
(
KisPixelSelectionSP
device,
62
const
QRect &selectionRect,
63
const
bumpmap_vals_t
&bmvals);
64
65
#endif
/* __GIMP_BUMP_MAP_H */
KisSharedPtr< KisPixelSelection >
bumpmap
void KRITAIMAGE_EXPORT bumpmap(KisPixelSelectionSP device, const QRect &selectionRect, const bumpmap_vals_t &bmvals)
Definition
gimp_bump_map.cpp:62
BumpmapType
BumpmapType
Definition
gimp_bump_map.h:22
SINUSOIDAL
@ SINUSOIDAL
Definition
gimp_bump_map.h:25
LINEAR
@ LINEAR
Definition
gimp_bump_map.h:23
SPHERICAL
@ SPHERICAL
Definition
gimp_bump_map.h:24
kis_types.h
bumpmap_vals_t
Definition
gimp_bump_map.h:30
bumpmap_vals_t::depth
int depth
Definition
gimp_bump_map.h:50
bumpmap_vals_t::ambient
int ambient
Definition
gimp_bump_map.h:54
bumpmap_vals_t::tiled
const bool tiled
Definition
gimp_bump_map.h:58
bumpmap_vals_t::bumpmap_vals_t
bumpmap_vals_t()
Definition
gimp_bump_map.h:31
bumpmap_vals_t::type
int type
Definition
gimp_bump_map.h:57
bumpmap_vals_t::compensate
bool compensate
Definition
gimp_bump_map.h:55
bumpmap_vals_t::elevation
double elevation
Definition
gimp_bump_map.h:49
bumpmap_vals_t::azimuth
double azimuth
Definition
gimp_bump_map.h:48
bumpmap_vals_t::waterlevel
const int waterlevel
Definition
gimp_bump_map.h:53
bumpmap_vals_t::yofs
const int yofs
Definition
gimp_bump_map.h:52
bumpmap_vals_t::bumpmap_id
const qint32 bumpmap_id
Definition
gimp_bump_map.h:47
bumpmap_vals_t::xofs
const int xofs
Definition
gimp_bump_map.h:51
bumpmap_vals_t::invert
bool invert
Definition
gimp_bump_map.h:56
libs
image
layerstyles
gimp_bump_map.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52