Blender
V2.93
source
blender
freestyle
intern
system
RandGen.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
17
#pragma once
18
24
// TODO Check whether we could replace this with BLI rand stuff...
25
26
#include "../system/Precision.h"
27
28
#ifdef WITH_CXX_GUARDEDALLOC
29
# include "
MEM_guardedalloc.h
"
30
#endif
31
32
namespace
Freestyle
{
33
34
class
RandGen
{
35
public
:
36
static
real
drand48
();
37
static
void
srand48
(
long
seedval);
38
39
private
:
40
static
void
next();
41
42
#ifdef WITH_CXX_GUARDEDALLOC
43
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:RandGen"
)
44
#endif
45
};
46
47
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Freestyle::RandGen
Definition:
RandGen.h:34
Freestyle::RandGen::srand48
static void srand48(long seedval)
Definition:
RandGen.cpp:111
Freestyle::RandGen::drand48
static real drand48()
Definition:
RandGen.cpp:104
Freestyle
inherits from class Rep
Definition:
AppCanvas.cpp:32
Freestyle::real
double real
Definition:
Precision.h:26
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1