Debian Codegraph @

src/base_rendering/castlerenderprimitives.pas

raw
1 {
2 Copyright 2023-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 { Directly rendering simple things (use e.g. inside @link(TCastleUserInterface.Render)). }
17 unit CastleRenderPrimitives;
18
19 {$I castleconf.inc}
20
21 interface
22
23 uses SysUtils,
24 {$ifdef OpenGLES} CastleGLES, {$else} CastleGL, {$endif}
25 CastleVectors, CastleGLShaders, CastleGLUtils, CastleInternalGLUtils,
26 CastleColors, CastleUtils;
27
28 {$define read_interface}
29
30 {$I castlerenderprimitives_render_unlit_mesh.inc}
31
32 {$undef read_interface}
33
34 implementation
35
36 {$define read_implementation}
37
38 uses CastleRenderContext, CastleRenderOptions, CastleApplicationProperties;
39
40 {$I castlerenderprimitives_render_unlit_mesh.inc}
41
42 procedure ContextClose;
43 begin
44 TCastleRenderUnlitMesh.StaticGLContextClose;
45 end;
46
47 initialization
48 ApplicationProperties.OnGLContextClose.Add(@ContextClose);
49 end.