Gondwana Game Engine Development (master) - 2.7.0
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
ISceneLayerCoordinates.cs
1using System.Drawing;
3
5
12internal interface ISceneLayerCoordinates
13{
19 LayerPeriod GetWrapPeriod(SceneLayer layer) => LayerPeriod.Create(this, layer);
20
35 Point GetAnchorPixelAtSceneLayerCoordinates(SceneLayer sceneLayer, PointF layerPoint);
36
44 PointF GetSceneLayerCoordinatesAtPixel(SceneLayer sceneLayer, PointF worldPixelPt);
45
47 PointF GetContinuousGridAtPixel(SceneLayer sceneLayer, PointF worldPixelPt) =>
48 GetSceneLayerCoordinatesAtPixel(sceneLayer, worldPixelPt);
49
59 List<SceneLayerTile> GetSceneLayerTilesInPixelRange(
60 SceneLayer sceneLayer,
61 Rectangle worldPixelRange,
62 bool includeOverhang);
63
73 RenderTileCandidates GetSceneLayerTilesForRendering(
74 SceneLayer sceneLayer,
75 Rectangle worldPixelRange,
76 bool includeOverhang) =>
77 RenderTileQuery.GetCandidates(
78 this,
79 sceneLayer,
80 worldPixelRange,
81 includeOverhang);
82
90 Rectangle GetPixelRangeForTile(Tile tile, bool includeOverhang);
91
99 Rectangle GetPixelRangeForTileList(List<Tile> tileList, bool includeOverhang);
100
109 SceneLayerTile GetAdjacentSceneLayerTile(SceneLayerTile layerPoint, CardinalDirections direction);
110
119 Point[] GetPolygonPts(Tile tile, bool includeOverhang);
120
130 PointF FindEquivalentSceneLayerCoordinates(PointF valColRow, int xUpperBound, int yUpperBound);
131}
CardinalDirections
Represents the eight cardinal and intercardinal directions of the compass.
@ Rectangle
Particles are spawned uniformly within a rectangular area. This is the default distribution.