Blender
V5.0
source
blender
freestyle
intern
system
RandGen.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
11
12
/* TODO: Check whether we could replace this with BLI rand stuff. */
13
14
#include "
../system/Precision.h
"
15
16
#include "
MEM_guardedalloc.h
"
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
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:RandGen"
)
29
};
30
31
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Precision.h
Define the float precision used in the program.
Freestyle::RandGen
Definition
RandGen.h:20
Freestyle::RandGen::srand48
static void srand48(long seedval)
Definition
RandGen.cpp:101
Freestyle::RandGen::drand48
static real drand48()
Definition
RandGen.cpp:94
next
static ulong * next
Definition
mathutils_noise.cc:59
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Freestyle::real
double real
Definition
Precision.h:14
Generated on
for Blender by
doxygen
1.16.1