| 1 |
{%MainUnit x3dloadinternalspine.pas} |
| 2 |
{ |
| 3 |
Copyright 2014-2023 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
type |
| 18 |
TQuadTexCoord = array [0..3] of TVector2; |
| 19 |
TQuadTexRect = array [0..1] of TVector2; |
| 20 |
|
| 21 |
{ Abstract provider of X3D Appearance nodes based on Spine attachment name |
| 22 |
(using atlas or not, depending on descendant, like TAtlas or |
| 23 |
TSimpleTextureLoader). } |
| 24 |
TTextureLoader = class abstract |
| 25 |
public |
| 26 |
{ Create an X3D node for given AttachmentName. |
| 27 |
May return @nil, and then TexCoord and TexRect are left undefined. } |
| 28 |
function UseNode(const AttachmentName: string; |
| 29 |
out TexCoord: TQuadTexCoord; out TexRect: TQuadTexRect; |
| 30 |
out TexRotated: boolean): TImageTextureNode; virtual; abstract; |
| 31 |
end; |