Gondwana Game Engine Development (master) - 2.6.1
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
55 List<SceneLayerTile> GetSceneLayerTilesInPixelRange(SceneLayer sceneLayer, Rectangle worldPixelRange, bool includeOverhang);
56
66 RenderTileCandidates GetSceneLayerTilesForRendering(
67 SceneLayer sceneLayer,
68 Rectangle worldPixelRange,
69 bool includeOverhang) =>
70 RenderTileQuery.GetCandidates(this, sceneLayer, worldPixelRange, includeOverhang);
71
79 Rectangle GetPixelRangeForTile(Tile tile, bool includeOverhang);
80
88 Rectangle GetPixelRangeForTileList(List<Tile> tileList, bool includeOverhang);
89
98 SceneLayerTile GetAdjacentSceneLayerTile(SceneLayerTile layerPoint, CardinalDirections direction);
99
108 Point[] GetPolygonPts(Tile tile, bool includeOverhang);
109
119 PointF FindEquivalentSceneLayerCoordinates(PointF valColRow, int xUpperBound, int yUpperBound);
120}
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.