This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$mode objfpc}{$H+}{$J-} | |
unit MyGenericClass; | |
interface | |
type | |
generic TMyGenericClass<T> = class | |
private | |
PrivateInClass: T; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// castle-engine simple-compile project1.lpr --compiler-option=-gh --compiler-option=-gl --verbose | |
program project1; | |
uses | |
SysUtils, Generics.Collections, Generics.Defaults; | |
type | |
TComplexObj = class | |
private | |
FMainKey: String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Sketch of a custom TCastleMeshCollider descendant, | |
that can read the information | |
from https://github.com/CodeAndWeb/PhysicsEditor-Loaders/ . | |
Consider it public domain, do with it whatever you want, | |
I hope it will help any contributor interested in implementing | |
https://github.com/CodeAndWeb/PhysicsEditor-Loaders/issues/17 . } | |
unit CastleColliderFromPhysicsEditor; | |
interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Main view, where most of the application logic takes place. | |
Feel free to use this code as a starting point for your own projects. | |
This template code is in public domain, unlike most other CGE code which | |
is covered by BSD or LGPL (see https://castle-engine.io/license). } | |
unit GameViewMain; | |
interface | |
uses Classes, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Main view, where most of the application logic takes place. | |
Feel free to use this code as a starting point for your own projects. | |
This template code is in public domain, unlike most other CGE code which | |
is covered by BSD or LGPL (see https://castle-engine.io/license). } | |
unit GameViewMain; | |
interface | |
uses Classes, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#X3D V4.0 utf8 | |
PROFILE Interchange | |
Shape { | |
appearance Appearance { | |
material UnlitMaterial { | |
} | |
texture ImageTexture { | |
url "texture.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit GameViewMain; | |
interface | |
uses Classes, | |
CastleVectors, CastleComponentSerialize, | |
CastleUIControls, CastleControls, CastleKeysMouse, CastleScene, CastleTransform, CastleViewport, X3DNodes, X3DFields; | |
type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Copyright 2022-2023 Michalis Kamburelis. | |
This file is part of "Castle Game Engine". | |
"Castle Game Engine" is free software; see the file COPYING.txt, | |
included in this distribution, for details about the copyright. | |
"Castle Game Engine" is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit GameViewMain; | |
interface | |
uses Classes, | |
CastleVectors, CastleComponentSerialize, | |
CastleUIControls, CastleControls, CastleKeysMouse, CastleThirdPersonNavigation; | |
type | |
TMyThirdPersonNavigation = class(TCastleThirdPersonNavigation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Behavior that affects all children scenes, setting their DistanceCulling (TDistanceCullingGroup). | |
See https://forum.castle-engine.io/t/shadow-ignors-distanceculling/670/9 . | |
You can make it available in CGE editor at design-time using | |
"4. Running editor with custom components" on | |
https://castle-engine.io/custom_components#_running_editor_with_custom_components . | |
} | |
unit DistanceCullingGroup; | |
interface |
NewerOlder