Blender
V4.3
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
12
/* TODO: Check whether we could replace this with BLI rand stuff. */
13
14
#include "
../system/Precision.h
"
15
16
#ifdef WITH_CXX_GUARDEDALLOC
17
# include "
MEM_guardedalloc.h
"
18
#endif
19
20
namespace
Freestyle
{
21
22
class
RandGen
{
23
public
:
24
static
real
drand48
();
25
static
void
srand48
(
long
seedval);
26
27
private
:
28
static
void
next();
29
30
#ifdef WITH_CXX_GUARDEDALLOC
31
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:RandGen"
)
32
#endif
33
};
34
35
}
/* 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:22
Freestyle::RandGen::srand48
static void srand48(long seedval)
Definition
RandGen.cpp:101
Freestyle::RandGen::drand48
static real drand48()
Definition
RandGen.cpp:94
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Freestyle::real
double real
Definition
Precision.h:14
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0