Blender
V3.3
source
blender
freestyle
intern
system
RandGen.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#pragma once
4
10
// TODO: Check whether we could replace this with BLI rand stuff...
11
12
#include "../system/Precision.h"
13
14
#ifdef WITH_CXX_GUARDEDALLOC
15
# include "
MEM_guardedalloc.h
"
16
#endif
17
18
namespace
Freestyle
{
19
20
class
RandGen
{
21
public
:
22
static
real
drand48
();
23
static
void
srand48
(
long
seedval);
24
25
private
:
26
static
void
next();
27
28
#ifdef WITH_CXX_GUARDEDALLOC
29
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:RandGen"
)
30
#endif
31
};
32
33
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Freestyle::RandGen
Definition:
RandGen.h:20
Freestyle::RandGen::srand48
static void srand48(long seedval)
Definition:
RandGen.cpp:97
Freestyle::RandGen::drand48
static real drand48()
Definition:
RandGen.cpp:90
Freestyle
inherits from class Rep
Definition:
AppCanvas.cpp:18
Freestyle::real
double real
Definition:
Precision.h:12
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1