Debian Codegraph @

src/deprecated_units/castlerendererbasetypes.pas

raw
1 {
2 Copyright 2016-2023 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Base types and concepts related to rendering.
17 Independent from OpenGL, X3D and other higher-level types. }
18 unit CastleRendererBaseTypes deprecated 'use CastleRenderOptions';
19
20 {$I castleconf.inc}
21
22 interface
23
24 uses Classes, CastleRenderOptions;
25
26 type
27 TShaderType = CastleRenderOptions.TShaderType;
28 TColorMode = CastleRenderOptions.TColorMode;
29 TToneMapping = CastleRenderOptions.TToneMapping;
30
31 const
32 stVertex = CastleRenderOptions.stVertex;
33 stGeometry = CastleRenderOptions.stGeometry;
34 stFragment = CastleRenderOptions.stFragment;
35 cmReplace = CastleRenderOptions.cmReplace;
36 cmModulate = CastleRenderOptions.cmModulate;
37 tmNone = CastleRenderOptions.tmNone;
38 tmUncharted = CastleRenderOptions.tmUncharted;
39 tmHejlRichard = CastleRenderOptions.tmHejlRichard;
40 tmACES = CastleRenderOptions.tmACES;
41 // ShaderTypeName = CastleRenderOptions.ShaderTypeName; // not allowed by FPC
42
43 function GetLogShadowVolumes: Boolean;
44 procedure SetLogShadowVolumes(const Value: Boolean);
45 function GetToneMapping: TToneMapping;
46 procedure SetToneMapping(const Value: TToneMapping);
47
48 property LogShadowVolumes: Boolean read GetLogShadowVolumes write SetLogShadowVolumes;
49 property ToneMapping: TToneMapping read GetToneMapping write SetToneMapping;
50
51 implementation
52
53 function GetLogShadowVolumes: Boolean;
54 begin
55 Result := CastleRenderOptions.LogShadowVolumes;
56 end;
57
58 procedure SetLogShadowVolumes(const Value: Boolean);
59 begin
60 CastleRenderOptions.LogShadowVolumes := Value;
61 end;
62
63 function GetToneMapping: TToneMapping;
64 begin
65 Result := CastleRenderOptions.ToneMapping;
66 end;
67
68 procedure SetToneMapping(const Value: TToneMapping);
69 begin
70 CastleRenderOptions.ToneMapping := Value;
71 end;
72
73 end.