├── .gitignore ├── .gitmodules ├── Ext ├── SharpFontFork │ ├── Build │ │ └── NuGet │ │ │ ├── SharpFont.nuspec │ │ │ └── SharpFont.props │ ├── LICENSE │ ├── Makefile │ ├── README.md │ └── Source │ │ ├── .editorconfig │ │ ├── Settings.StyleCop │ │ ├── SharpFont.HarfBuzz.Example │ │ ├── App.config │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ └── SharpFont.HarfBuzz.Example.csproj │ │ ├── SharpFont.HarfBuzz │ │ ├── Buffer.cs │ │ ├── Direction.cs │ │ ├── Font.cs │ │ ├── GlyphInfo.cs │ │ ├── GlyphPosition.cs │ │ ├── HB.Internal.cs │ │ ├── HB.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── Script.cs │ │ ├── SharpFont.HarfBuzz.csproj │ │ └── SharpFont.HarfBuzz.dll.config │ │ ├── SharpFont.dll.config │ │ ├── SharpFont.sln │ │ ├── SharpFont.snk │ │ └── SharpFont │ │ ├── AutoHinterScript.cs │ │ ├── BBox.cs │ │ ├── Bdf │ │ ├── Internal │ │ │ └── PropertyRec.cs │ │ ├── Property.cs │ │ └── PropertyType.cs │ │ ├── BitmapGlyph.cs │ │ ├── BitmapSize.cs │ │ ├── Cache │ │ ├── CMapCache.cs │ │ ├── FaceRequester.cs │ │ ├── ImageCache.cs │ │ ├── ImageType.cs │ │ ├── Internal │ │ │ ├── CMapCacheRec.cs │ │ │ ├── ImageCacheRec.cs │ │ │ ├── ImageTypeRec.cs │ │ │ ├── ManagerRec.cs │ │ │ ├── NodeRec.cs │ │ │ ├── SBitCacheRec.cs │ │ │ ├── SBitRec.cs │ │ │ └── ScalerRec.cs │ │ ├── Manager.cs │ │ ├── Node.cs │ │ ├── SBit.cs │ │ ├── SBitCache.cs │ │ └── Scaler.cs │ │ ├── Cff │ │ └── HintingEngine.cs │ │ ├── CharMap.cs │ │ ├── ClassicKernValidationFlags.cs │ │ ├── Data.cs │ │ ├── EmbeddingTypes.cs │ │ ├── Encoding.cs │ │ ├── Error.cs │ │ ├── FT.Internal.cs │ │ ├── FT.Public.cs │ │ ├── FTBitmap.cs │ │ ├── FTList.cs │ │ ├── FTMatrix.cs │ │ ├── FTSize.cs │ │ ├── FTStream.cs │ │ ├── FTUnitVector.cs │ │ ├── FTVector.cs │ │ ├── FTVector26Dot6.cs │ │ ├── Face.cs │ │ ├── FaceFlags.cs │ │ ├── Fixed16Dot16.cs │ │ ├── Fixed26Dot6.cs │ │ ├── Fixed2Dot14.cs │ │ ├── Fnt │ │ ├── Header.cs │ │ ├── Internal │ │ │ └── HeaderRec.cs │ │ └── WinFntID.cs │ │ ├── FreeTypeException.cs │ │ ├── Gasp.cs │ │ ├── Generic.cs │ │ ├── Glyph.cs │ │ ├── GlyphBBoxMode.cs │ │ ├── GlyphFormat.cs │ │ ├── GlyphMetrics.cs │ │ ├── GlyphSlot.cs │ │ ├── GlyphToScriptMapProperty.cs │ │ ├── IncreaseXHeightProperty.cs │ │ ├── Internal │ │ ├── BitmapGlyphRec.cs │ │ ├── BitmapRec.cs │ │ ├── BitmapSizeRec.cs │ │ ├── CharMapRec.cs │ │ ├── FaceRec.cs │ │ ├── GenericRec.cs │ │ ├── GlyphMetricsRec.cs │ │ ├── GlyphRec.cs │ │ ├── GlyphSlotRec.cs │ │ ├── GlyphToScriptMapPropertyRec.cs │ │ ├── IncreaseXHeightPropertyRec.cs │ │ ├── ListNodeRec.cs │ │ ├── ListRec.cs │ │ ├── MemoryRec.cs │ │ ├── ModuleClassRec.cs │ │ ├── NativeObject.cs │ │ ├── NativeReference.cs │ │ ├── OpenArgsRec.cs │ │ ├── OutlineFuncsRec.cs │ │ ├── OutlineGlyphRec.cs │ │ ├── OutlineRec.cs │ │ ├── ParameterRec.cs │ │ ├── RasterFuncsRec.cs │ │ ├── RasterParamsRec.cs │ │ ├── RendererClassRec.cs │ │ ├── SizeMetricsRec.cs │ │ ├── SizeRec.cs │ │ ├── SizeRequestRec.cs │ │ ├── SpanRec.cs │ │ ├── StreamDescRec.cs │ │ └── StreamRec.cs │ │ ├── KerningMode.cs │ │ ├── LcdFilter.cs │ │ ├── Library.cs │ │ ├── ListNode.cs │ │ ├── LoadFlags.cs │ │ ├── LoadTarget.cs │ │ ├── Memory.cs │ │ ├── Module.cs │ │ ├── ModuleClass.cs │ │ ├── MultipleMasters │ │ ├── Internal │ │ │ ├── MMAxisRec.cs │ │ │ ├── MMVarRec.cs │ │ │ ├── MultiMasterRec.cs │ │ │ ├── VarAxisRec.cs │ │ │ └── VarNamedStyleRec.cs │ │ ├── MMAxis.cs │ │ ├── MMVar.cs │ │ ├── MultiMaster.cs │ │ ├── VarAxis.cs │ │ └── VarNamedStyle.cs │ │ ├── OpenArgs.cs │ │ ├── OpenFlags.cs │ │ ├── OpenTypeValidationFlags.cs │ │ ├── Orientation.cs │ │ ├── Outline.cs │ │ ├── OutlineFlags.cs │ │ ├── OutlineFuncs.cs │ │ ├── OutlineGlyph.cs │ │ ├── PInvokeHelper.cs │ │ ├── ParamTag.cs │ │ ├── Parameter.cs │ │ ├── PixelMode.cs │ │ ├── PostScript │ │ ├── BlendFlags.cs │ │ ├── DictionaryKeys.cs │ │ ├── EncodingType.cs │ │ ├── FaceDict.cs │ │ ├── FaceInfo.cs │ │ ├── FontInfo.cs │ │ ├── Internal │ │ │ ├── FaceDictRec.cs │ │ │ ├── FaceInfoRec.cs │ │ │ ├── FontInfoRec.cs │ │ │ └── PrivateRec.cs │ │ └── Private.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── Raster.cs │ │ ├── RasterFlags.cs │ │ ├── RasterFuncs.cs │ │ ├── RasterParams.cs │ │ ├── RenderMode.cs │ │ ├── Renderer.cs │ │ ├── RendererClass.cs │ │ ├── SharpFont.csproj │ │ ├── SizeMetrics.cs │ │ ├── SizeRequest.cs │ │ ├── SizeRequestType.cs │ │ ├── Span.cs │ │ ├── StreamDesc.cs │ │ ├── Stroker.cs │ │ ├── StrokerBorder.cs │ │ ├── StrokerLineCap.cs │ │ ├── StrokerLineJoin.cs │ │ ├── StyleFlags.cs │ │ ├── SubGlyph.cs │ │ ├── SubGlyphFlags.cs │ │ ├── TrueType │ │ ├── EncodingId.cs │ │ ├── EngineType.cs │ │ ├── Header.cs │ │ ├── HoriHeader.cs │ │ ├── Internal │ │ │ ├── HeaderRec.cs │ │ │ ├── HoriHeaderRec.cs │ │ │ ├── MaxProfileRec.cs │ │ │ ├── OS2Rec.cs │ │ │ ├── PCLTRec.cs │ │ │ ├── PostscriptRec.cs │ │ │ ├── SfntNameRec.cs │ │ │ └── VertHeaderRec.cs │ │ ├── MaxProfile.cs │ │ ├── OS2.cs │ │ ├── Pclt.cs │ │ ├── PlatformId.cs │ │ ├── Postscript.cs │ │ ├── SfntName.cs │ │ ├── SfntTag.cs │ │ └── VertHeader.cs │ │ └── TrueTypeValidationFlags.cs ├── System.Data.SQLite.DLL ├── basis │ ├── basisu.h │ ├── basisu_containers.h │ ├── basisu_containers_impl.h │ ├── basisu_file_headers.h │ ├── basisu_transcoder.cpp │ ├── basisu_transcoder.h │ ├── basisu_transcoder_internal.h │ ├── basisu_transcoder_tables_astc.inc │ ├── basisu_transcoder_tables_astc_0_255.inc │ ├── basisu_transcoder_tables_atc_55.inc │ ├── basisu_transcoder_tables_atc_56.inc │ ├── basisu_transcoder_tables_bc7_m5_alpha.inc │ ├── basisu_transcoder_tables_bc7_m5_color.inc │ ├── basisu_transcoder_tables_dxt1_5.inc │ ├── basisu_transcoder_tables_dxt1_6.inc │ ├── basisu_transcoder_tables_pvrtc2_45.inc │ ├── basisu_transcoder_tables_pvrtc2_alpha_33.inc │ └── basisu_transcoder_uastc.h ├── span │ ├── System.Memory.dll │ ├── System.Memory.xml │ ├── System.Runtime.CompilerServices.Unsafe.dll │ └── System.Runtime.CompilerServices.Unsafe.xml └── zstd │ ├── CHANGELOG │ ├── COPYING │ ├── LICENSE │ ├── common │ ├── bitstream.h │ ├── compiler.h │ ├── cpu.h │ ├── debug.c │ ├── debug.h │ ├── entropy_common.c │ ├── error_private.c │ ├── error_private.h │ ├── fse.h │ ├── fse_decompress.c │ ├── huf.h │ ├── mem.h │ ├── pool.c │ ├── pool.h │ ├── threading.c │ ├── threading.h │ ├── xxhash.c │ ├── xxhash.h │ ├── zstd_common.c │ ├── zstd_deps.h │ ├── zstd_internal.h │ └── zstd_trace.h │ ├── decompress │ ├── huf_decompress.c │ ├── zstd_ddict.c │ ├── zstd_ddict.h │ ├── zstd_decompress.c │ ├── zstd_decompress_block.c │ ├── zstd_decompress_block.h │ └── zstd_decompress_internal.h │ ├── libzstd.pc.in │ ├── zdict.h │ ├── zstd.c │ ├── zstd.h │ ├── zstd_errors.h │ └── zstddeclib.c ├── README.md ├── ShaderCompiler ├── Program.cs ├── ShaderCompiler.csproj ├── ShaderCompiler.sln ├── app.config └── bin │ ├── ShaderCompiler.exe │ └── ShaderCompiler.exe.config └── Squared ├── BasisNative ├── BasisNative.vcxproj └── main.cpp ├── Examples ├── CurveTester │ ├── CurveTester.csproj │ ├── MainWindow.Designer.cs │ ├── MainWindow.cs │ ├── MainWindow.resx │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── app.config ├── MUDServer │ ├── AlphaTrie.cs │ ├── Entity.cs │ ├── Events.cs │ ├── MUDServer.csproj │ ├── MUDServerTests │ │ ├── MUDServerTests.csproj │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ └── Tests │ │ │ └── AlphaTrieTests.cs │ ├── Player.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TelnetServer.cs │ ├── World.cs │ ├── WorldDef.cs │ └── app.config ├── Pong │ ├── Content │ │ ├── PongContent.contentproj │ │ └── Tahoma.spritefont │ ├── Game.ico │ ├── GameThumbnail.png │ ├── PIX.PIXExp │ ├── Pong.csproj │ ├── PongExample.cs │ ├── Program.cs │ └── Properties │ │ ├── AssemblyInfo.cs │ │ └── app.manifest ├── RenderStressTest │ ├── Game.cs │ ├── ParallelInvoker.cs │ ├── ParallelThreadPool.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RenderStressTest.csproj │ └── app.config ├── StartChatBots.bat ├── StartChatServer.bat ├── TelnetChatBot │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TelnetChatBot.csproj │ └── app.config ├── TelnetChatServer │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TelnetChatServer.csproj │ └── app.config └── ThreadedPlatformer │ ├── Animation.cs │ ├── AnimationPlayer.cs │ ├── Circle.cs │ ├── Enemy.cs │ ├── Game.ico │ ├── GameThumbnail.png │ ├── Gem.cs │ ├── HighResolutionContent │ ├── Backgrounds │ │ ├── Layer0_0.png │ │ ├── Layer0_1.png │ │ ├── Layer0_2.png │ │ ├── Layer1_0.png │ │ ├── Layer1_1.png │ │ ├── Layer1_2.png │ │ ├── Layer2_0.png │ │ ├── Layer2_1.png │ │ └── Layer2_2.png │ ├── Fonts │ │ └── Hud.spritefont │ ├── Levels │ │ ├── 0.txt │ │ ├── 1.txt │ │ └── 2.txt │ ├── Overlays │ │ ├── you_died.png │ │ ├── you_lose.png │ │ └── you_win.png │ ├── Sprites │ │ ├── Gem.png │ │ ├── MonsterA │ │ │ ├── Die.png │ │ │ ├── Idle.png │ │ │ └── Run.png │ │ ├── MonsterB │ │ │ ├── Die.png │ │ │ ├── Idle.png │ │ │ └── Run.png │ │ ├── MonsterC │ │ │ ├── Die.png │ │ │ ├── Idle.png │ │ │ └── Run.png │ │ ├── MonsterD │ │ │ ├── Die.png │ │ │ ├── Idle.png │ │ │ └── Run.png │ │ └── Player │ │ │ ├── Celebrate.png │ │ │ ├── Die.png │ │ │ ├── Idle.png │ │ │ ├── Jump.png │ │ │ └── Run.png │ ├── ThreadedPlatformerHighResolutionContent.contentproj │ └── Tiles │ │ ├── BlockA0.png │ │ ├── BlockA1.png │ │ ├── BlockA2.png │ │ ├── BlockA3.png │ │ ├── BlockA4.png │ │ ├── BlockA5.png │ │ ├── BlockA6.png │ │ ├── BlockB0.png │ │ ├── BlockB1.png │ │ ├── Exit.png │ │ └── Platform.png │ ├── LICENSE.txt │ ├── Level.cs │ ├── PlatformerGame.cs │ ├── Player.cs │ ├── Program.cs │ ├── Properties │ ├── AssemblyInfo.cs │ └── app.manifest │ ├── RectangleExtensions.cs │ ├── SharedContent │ ├── Sounds │ │ ├── ExitReached.wma │ │ ├── GemCollected.wma │ │ ├── MonsterKilled.wma │ │ ├── Music.wma │ │ ├── PlayerFall.wma │ │ ├── PlayerJump.wma │ │ ├── PlayerKilled.wma │ │ └── PowerUp.wma │ └── ThreadedPlatformerSharedContent.contentproj │ ├── ThreadedPlatformer.csproj │ ├── ThreadedPlatformer.sln │ └── Tile.cs ├── FontTest ├── FontTest │ ├── FontTest.csproj │ ├── FontTestGame.cs │ ├── Program.cs │ ├── Properties │ │ └── app.manifest │ └── app.config └── FontTestContent │ ├── DutchAndHarley.xnb │ ├── Font.spritefont │ └── FontTestContent.contentproj ├── GameLib ├── Animation.cs ├── GameExtensionMethods.cs ├── GameTests │ ├── AnimationTests.cs │ ├── GameTests.csproj │ ├── GeometryTests.cs │ ├── GraphTests.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SerializationTests.cs │ └── packages.config ├── Geometry.cs ├── Geometry3.cs ├── Input.cs ├── KeyboardInputProvider.cs ├── Properties │ └── AssemblyInfo.cs ├── SpatialCollection.cs └── Squared.Game.csproj ├── HttpServerTest ├── HttpServerTest.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── app.config ├── LargeBufferTest ├── LargeBufferTest │ ├── LargeBufferTest.csproj │ ├── LargeBufferTestGame.cs │ ├── PerformanceStats.cs │ ├── Program.cs │ └── Properties │ │ └── app.manifest └── PIX.PIXExp ├── MiscTests ├── MiscTests.csproj └── Program.cs ├── PRGUI.Demo ├── Fonts │ └── kenney-icon-font.ttf ├── Game.cs ├── PRGUI.Demo.csproj ├── PerformanceStats.cs ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ └── app.manifest ├── app.config └── packages.config ├── PRGUI ├── ControlAlignmentHelper.cs ├── Controls │ ├── Canvas.cs │ ├── Container.cs │ ├── ContainerBase.cs │ ├── Control.HitTest.cs │ ├── Control.Rasterization.cs │ ├── Control.cs │ ├── ControlAppearance.cs │ ├── ControlCollection.cs │ ├── ControlData.cs │ ├── Controls.cs │ ├── Dropdown.cs │ ├── EditableText.cs │ ├── Gauge.cs │ ├── HyperText.cs │ ├── Interfaces.cs │ ├── ItemList.cs │ ├── ListBox.cs │ ├── Menu.cs │ ├── ModalDialog.cs │ ├── ParameterEditor.cs │ ├── Slider.cs │ ├── StaticImage.cs │ ├── StaticText.cs │ ├── TabContainer.cs │ ├── TitledContainer.cs │ ├── Tooltip.cs │ ├── UserResizeWidget.cs │ └── Window.cs ├── Data.cs ├── Decorations.cs ├── DefaultDecorations.cs ├── Enums.cs ├── Events.cs ├── Extensions.cs ├── Flags.cs ├── Imperative.cs ├── Input.cs ├── NewEngine │ ├── Data.cs │ ├── Enumerators.cs │ ├── Enums.cs │ ├── LayoutAlgorithm.cs │ ├── LayoutEngine.cs │ ├── Pass1.cs │ ├── Pass2.cs │ ├── Pass3.cs │ ├── SegmentedArray.cs │ └── StateManagement.cs ├── PRGUI.csproj ├── Properties │ └── AssemblyInfo.cs ├── UIContext.Accessibility.cs ├── UIContext.Data.cs ├── UIContext.Events.cs ├── UIContext.Focus.cs ├── UIContext.Rasterization.cs ├── UIContext.State.cs ├── UIContext.Traversal.cs └── UIContext.cs ├── Render.AV1 ├── AV1.cs ├── Properties │ └── AssemblyInfo.cs ├── Squared.Render.AV1.csproj └── dav1dfile.cs ├── Render.Basis ├── Basis.cs ├── Properties │ └── AssemblyInfo.cs └── Squared.Render.Basis.csproj ├── Render.Freetype ├── Data.cs ├── FTFont.cs ├── FontProvider.cs ├── GPOS.cs ├── GSUB.cs ├── Properties │ └── AssemblyInfo.cs └── Squared.Render.Freetype.csproj ├── Render.STB ├── Mips.cs ├── Native.cs ├── Properties │ └── AssemblyInfo.cs ├── STBI.cs ├── STBIW.cs ├── Squared.Render.STB.csproj └── TextureProvider.cs ├── RenderLib ├── Atlas.cs ├── AutoRenderTarget.cs ├── Batch.cs ├── BatchGroup.cs ├── BitmapBatch.cs ├── BufferGenerator.cs ├── ColorLUT.cs ├── ColorSpace.cs ├── Convenience.cs ├── DefaultMaterialSet.cs ├── DisposalQueue.cs ├── DynamicAtlas.cs ├── EffectProvider.cs ├── Evil.cs ├── Frame.cs ├── ImperativeRenderer.cs ├── JumpFlood.CPU.cs ├── JumpFlood.GPU.cs ├── ListBatch.cs ├── MaterialParameterValues.cs ├── MaterialSet.cs ├── Materials.cs ├── Mips.cs ├── MultimaterialBitmapBatch.cs ├── PolygonBuffer.cs ├── Pools.cs ├── Properties │ └── AssemblyInfo.cs ├── RasterShapes.cs ├── RasterStroke.cs ├── RenderBitmaps.cs ├── RenderGeometry.cs ├── RenderManager.cs ├── RenderPrimitives.cs ├── RenderText.cs ├── ResourceProvider.cs ├── RichText.cs ├── Shaders │ ├── BezierCommon.fxh │ ├── BitmapCommon.fxh │ ├── CompilerWorkarounds.fxh │ ├── CompositedBitmap.fx │ ├── DitherCommon.fxh │ ├── FormatCommon.fxh │ ├── GaussianBlur.fx │ ├── GeometryCommon.fxh │ ├── HueBitmap.fx │ ├── HueCommon.fxh │ ├── JumpFlood.fx │ ├── LUTCommon.fxh │ ├── Lightmap.fx │ ├── PalettedBitmap.fx │ ├── PolygonCommon.fxh │ ├── RasterComposites.fxh │ ├── RasterPolygonImpl.fxh │ ├── RasterShapeConstants.fxh │ ├── RasterShapeImpl.fxh │ ├── RasterShapeSkeleton.fxh │ ├── RasterShapeVariants.fx │ ├── RasterStrokeCommon.fxh │ ├── RasterStrokeLine.fx │ ├── RasterStrokeLineCommonImpl.fxh │ ├── RasterStrokePolygon.fx │ ├── RasterStrokeRectangle.fx │ ├── SDF2D.fxh │ ├── SquaredBitmapShader.fx │ ├── SquaredGeometryShader.fx │ ├── StippledBitmap.fx │ ├── TargetInfo.fxh │ ├── ViewTransformCommon.fxh │ ├── YUVDec.fx │ └── sRGBCommon.fxh ├── Squared.Render.csproj ├── StringLayoutEngine.cs ├── StringLayoutEngine2.cs ├── TextUtils.cs ├── ThreadedRenderCoordinator.cs ├── ThreadedRenderGame.cs ├── Tracing.cs ├── UniformBinding.cs └── UniformBindingLayout.cs ├── RenderPrecisionTest ├── PIX.PIXExp ├── RenderPrecisionTest │ ├── Program.cs │ ├── RenderPrecisionTest.csproj │ └── RenderPrecisionTestGame.cs └── RenderPrecisionTestContent │ └── test.png ├── STBNative ├── STBNative.vcxproj ├── main.cpp ├── stb_image.h ├── stb_image_resize2.h └── stb_image_write.h ├── Squared.Override.props ├── Squared.sln ├── SquaredGameLibraries.targets ├── TaskLib ├── AsyncAwait.cs ├── BlockingQueue.cs ├── DiskMonitor.cs ├── Http │ ├── AsyncDataAdapterShim.cs │ ├── EndPointList.cs │ ├── Events.cs │ ├── Header.cs │ ├── HttpServer.cs │ ├── ListenerContext.cs │ ├── Request.cs │ └── Response.cs ├── IO.cs ├── JobQueue.cs ├── Network.cs ├── Properties │ └── AssemblyInfo.cs ├── SchedulableGeneratorThunk.cs ├── Sockets.cs ├── Squared.Task.csproj ├── TaskLibTests │ ├── App.config │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TaskLibTests.csproj │ ├── Tests │ │ ├── HttpTests.cs │ │ ├── IOTests.cs │ │ ├── QueueTests.cs │ │ ├── SequenceTests.cs │ │ └── TaskSchedulerTests.cs │ ├── data │ │ └── test.py │ └── packages.config ├── TaskScheduler.cs ├── Util.cs ├── Web.cs ├── Win32.cs └── WorkerThread.cs ├── Threading ├── AsyncAwait.cs ├── Future.cs ├── GroupThread.cs ├── LocallyReplicatedCache.cs ├── LowAllocConcurrentQueue.cs ├── LowAllocConcurrentQueueSegment.cs ├── MethodPrecompiler.cs ├── Properties │ └── AssemblyInfo.cs ├── Squared.Threading.csproj ├── Superluminal.cs ├── ThreadGroup.cs ├── ThreadIdleManager.cs └── WorkQueue.cs ├── ThreadingTests ├── FutureTests.cs ├── Properties │ └── AssemblyInfo.cs ├── ThreadGroupTests.cs ├── ThreadingTests.csproj └── packages.config ├── Util ├── ADSR.cs ├── Arithmetic.cs ├── Bind.cs ├── BitSet.cs ├── Buffer.cs ├── CLRSort.cs ├── CoreCLR │ ├── BitOperations.cs │ └── Random.Xoshiro256StarStarImpl.cs ├── Curve.cs ├── DeclarativeSort.cs ├── DenseDictionary.cs ├── DenseList.Queries.cs ├── DenseList.Util.cs ├── DenseList.cs ├── DiskMonitor.cs ├── EmbeddedDLLLoader.cs ├── EventBus.cs ├── ExpressionParser.cs ├── FaultInjector.cs ├── FloatScan.cs ├── IO.cs ├── IndexedSort.cs ├── IniReader.cs ├── IntScan.cs ├── Interpolators.cs ├── LRUCache.cs ├── NativeAllocator.cs ├── PriorityQueue.cs ├── Properties │ └── AssemblyInfo.cs ├── Sort.cs ├── Squared.Util.csproj ├── Text.cs ├── TimeProvider.cs ├── Tuples.cs ├── Tween.cs ├── UnorderedList.cs ├── UtilTests │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Tests │ │ ├── ArithmeticTests.cs │ │ ├── BindTests.cs │ │ ├── BitsetTests.cs │ │ ├── CurveTests.cs │ │ ├── DeclarativeSortTests.cs │ │ ├── DenseListTests.cs │ │ ├── EventTests.cs │ │ ├── IOTests.cs │ │ ├── LRUCacheTests.cs │ │ ├── PriorityQueueTests.cs │ │ ├── SortTests.cs │ │ ├── TextTests.cs │ │ ├── TimeTests.cs │ │ ├── TupleTests.cs │ │ ├── TweenTests.cs │ │ └── UnorderedListTests.cs │ ├── UtilTests.csproj │ ├── data │ │ ├── dirs │ │ │ ├── dirA │ │ │ │ ├── subdirA_A │ │ │ │ │ └── fileA_A_A.txt │ │ │ │ └── subdirA_B │ │ │ │ │ └── fileA_B_A.txt │ │ │ ├── dirB │ │ │ │ └── fileB_A.txt │ │ │ ├── dirC │ │ │ │ ├── fileC_A.txt │ │ │ │ └── fileC_B.txt │ │ │ └── file │ │ ├── files │ │ │ ├── fileA.txt │ │ │ ├── fileB.txt │ │ │ ├── fileC.png │ │ │ ├── fileD.png │ │ │ ├── fileE.jpg │ │ │ └── fileF.jpg │ │ ├── hello.txt │ │ └── test.dat │ └── packages.config └── XXHash.cs └── XNAFramework.targets /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Ext/Dependencies"] 2 | path = Ext/Dependencies 3 | url = https://github.com/sq/SquaredDependencies.git 4 | [submodule "Ext/layout"] 5 | path = Ext/layout 6 | url = https://github.com/randrew/layout.git 7 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Build/NuGet/SharpFont.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreserveNewest 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2016 Robert Rouhani 2 | 3 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 9 | of the Software, and to permit persons to whom the Software is furnished to do 10 | so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Ext/SharpFontFork/Makefile: -------------------------------------------------------------------------------- 1 | XBUILD := xbuild 2 | XBUILDFLAGS_RELEASE := /p:Configuration=Release 3 | XBUILDFLAGS_DEBUG := /p:Configuration=Debug 4 | 5 | SOLUTION := Source/SharpFont.sln 6 | 7 | release: 8 | $(XBUILD) $(XBUILDFLAGS_RELEASE) $(SOLUTION) 9 | debug: 10 | $(XBUILD) $(XBUILDFLAGS_DEBUG) $(SOLUTION) 11 | clean: 12 | $(XBUILD) $(XBUILDFLAGS_DEBUG) $(SOLUTION) /t:Clean 13 | $(XBUILD) $(XBUILDFLAGS_RELEASE) $(SOLUTION) /t:Clean 14 | 15 | .SUFFIXES: 16 | .PHONY: release debug clean 17 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Unix-style newlines with a newline ending every file 7 | [*] 8 | end_of_line = crlf 9 | indent_style = tab 10 | insert_final_newline = true 11 | tab_width = 4 12 | trim_trailing_whitespace = true 13 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz.Example/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz.Example/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | /** 3 | * Copyright (c) 2014 Robert Rouhani and other contributors (see CONTRIBUTORS file). 4 | * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 5 | */ 6 | #endregion 7 | 8 | using System.Reflection; 9 | using System.Runtime.CompilerServices; 10 | using System.Runtime.InteropServices; 11 | 12 | // General Information about an assembly is controlled through the following 13 | // set of attributes. Change these attribute values to modify the information 14 | // associated with an assembly. 15 | [assembly: AssemblyTitle("SharpFont.HarfBuzz.Example")] 16 | [assembly: AssemblyDescription("")] 17 | [assembly: AssemblyConfiguration("")] 18 | [assembly: AssemblyCompany("")] 19 | [assembly: AssemblyProduct("SharpFont.HarfBuzz.Example")] 20 | [assembly: AssemblyCopyright("Copyright © 2014")] 21 | [assembly: AssemblyTrademark("")] 22 | [assembly: AssemblyCulture("")] 23 | 24 | // Setting ComVisible to false makes the types in this assembly not visible 25 | // to COM components. If you need to access a type in this assembly from 26 | // COM, set the ComVisible attribute to true on that type. 27 | [assembly: ComVisible(false)] 28 | 29 | // The following GUID is for the ID of the typelib if this project is exposed to COM 30 | [assembly: Guid("a266ea1f-2454-469e-a303-abcf5af6795e")] 31 | 32 | // Version information for an assembly consists of the following four values: 33 | // 34 | // Major Version 35 | // Minor Version 36 | // Build Number 37 | // Revision 38 | // 39 | // You can specify all the values or you can default the Build and Revision Numbers 40 | // by using the '*' as shown below: 41 | // [assembly: AssemblyVersion("1.0.*")] 42 | [assembly: AssemblyVersion("1.0.0.0")] 43 | [assembly: AssemblyFileVersion("1.0.0.0")] 44 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Direction.cs: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file). 2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 3 | 4 | namespace SharpFont.HarfBuzz 5 | { 6 | public enum Direction 7 | { 8 | Invalid = 0, 9 | LeftToRight = 4, 10 | RightToLeft, 11 | TopToBottom, 12 | BottomToTop 13 | } 14 | 15 | public static class DirectionExtensions 16 | { 17 | public static string ToString(this Direction dir) 18 | { 19 | return ""; 20 | } 21 | 22 | public static bool IsHorizontal(this Direction dir) 23 | { 24 | return ((int)dir & ~1) == 4; 25 | } 26 | 27 | public static bool IsVertical(this Direction dir) 28 | { 29 | return ((int)dir & ~1) == 6; 30 | } 31 | 32 | public static bool IsForward(this Direction dir) 33 | { 34 | return ((int)dir & ~2) == 4; 35 | } 36 | 37 | public static bool IsBackward(this Direction dir) 38 | { 39 | return ((int)dir & ~2) == 5; 40 | } 41 | 42 | public static bool IsValid(this Direction dir) 43 | { 44 | return ((int)dir & ~3) == 4; 45 | } 46 | 47 | public static Direction Reverse(this Direction dir) 48 | { 49 | return (Direction)((int)dir ^ 1); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Font.cs: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file). 2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 3 | 4 | using System; 5 | 6 | namespace SharpFont.HarfBuzz 7 | { 8 | public class Font 9 | { 10 | #region Members 11 | private IntPtr reference; 12 | #endregion 13 | 14 | #region Constructors 15 | public static Font FromFTFace(Face face) 16 | { 17 | return new Font { reference = HB.hb_ft_font_create(face.Reference, IntPtr.Zero) }; 18 | } 19 | #endregion 20 | 21 | #region Properties 22 | internal IntPtr Reference { get { return reference; } } 23 | #endregion 24 | 25 | #region Methods 26 | #endregion 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/GlyphInfo.cs: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file). 2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 3 | 4 | using System.Runtime.InteropServices; 5 | 6 | namespace SharpFont.HarfBuzz 7 | { 8 | [StructLayout(LayoutKind.Sequential)] 9 | public struct GlyphInfo 10 | { 11 | public uint codepoint; 12 | public uint mask; 13 | public uint cluster; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/GlyphPosition.cs: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file). 2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 3 | 4 | using System.Runtime.InteropServices; 5 | 6 | namespace SharpFont.HarfBuzz 7 | { 8 | [StructLayout(LayoutKind.Sequential)] 9 | public struct GlyphPosition 10 | { 11 | public int xAdvance; 12 | public int yAdvance; 13 | public int xOffset; 14 | public int yOffset; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/HB.cs: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file). 2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 3 | 4 | using System; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace SharpFont.HarfBuzz 8 | { 9 | public static partial class HB 10 | { 11 | public static string VersionString 12 | { 13 | get 14 | { 15 | return Marshal.PtrToStringAnsi(hb_version_string()); 16 | } 17 | } 18 | 19 | public static Version Version 20 | { 21 | get 22 | { 23 | uint major, minor, micro; 24 | hb_version(out major, out minor, out micro); 25 | return new Version((int)major, (int)minor, (int)micro); 26 | } 27 | } 28 | 29 | public static bool VersionAtLeast(Version version) 30 | { 31 | return VersionAtLeast(version.Major, version.Minor, version.Build); 32 | } 33 | 34 | public static bool VersionAtLeast(int major, int minor, int micro) 35 | { 36 | return hb_version_atleast((uint)major, (uint)minor, (uint)micro); 37 | } 38 | 39 | public static void Shape(this Font font, Buffer buffer) 40 | { 41 | HB.hb_shape(font.Reference, buffer.Reference, IntPtr.Zero, 0); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | /** 3 | * Copyright (c) 2014-2016 Robert Rouhani and other contributors (see CONTRIBUTORS file). 4 | * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE 5 | */ 6 | #endregion 7 | 8 | using System.Reflection; 9 | using System.Runtime.CompilerServices; 10 | using System.Runtime.InteropServices; 11 | 12 | // General Information about an assembly is controlled through the following 13 | // set of attributes. Change these attribute values to modify the information 14 | // associated with an assembly. 15 | [assembly: AssemblyTitle("SharpFont.HarfBuzz")] 16 | [assembly: AssemblyDescription("")] 17 | [assembly: AssemblyConfiguration("")] 18 | [assembly: AssemblyCompany("Robmaister")] 19 | [assembly: AssemblyProduct("SharpFont.HarfBuzz")] 20 | [assembly: AssemblyCopyright("Copyright © Robert Rouhani 2014-2016")] 21 | [assembly: AssemblyTrademark("")] 22 | [assembly: AssemblyCulture("")] 23 | 24 | // Setting ComVisible to false makes the types in this assembly not visible 25 | // to COM components. If you need to access a type in this assembly from 26 | // COM, set the ComVisible attribute to true on that type. 27 | [assembly: ComVisible(false)] 28 | 29 | // The following GUID is for the ID of the typelib if this project is exposed to COM 30 | [assembly: Guid("f29fd4e5-e6b7-412f-9cfb-ae1775e0a403")] 31 | 32 | // Version information for an assembly consists of the following four values: 33 | // 34 | // Major Version 35 | // Minor Version 36 | // Build Number 37 | // Revision 38 | // 39 | // You can specify all the values or you can default the Build and Revision Numbers 40 | // by using the '*' as shown below: 41 | // [assembly: AssemblyVersion("1.0.*")] 42 | [assembly: AssemblyVersion("0.1.0.0")] 43 | [assembly: AssemblyFileVersion("1.0.0.0")] 44 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.HarfBuzz/SharpFont.HarfBuzz.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/SharpFontFork/Source/SharpFont.snk -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Bdf/Internal/PropertyRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Bdf.Internal 29 | { 30 | [StructLayout(LayoutKind.Explicit, Pack = 0)] 31 | internal struct PropertyRec 32 | { 33 | [FieldOffset(0)] 34 | internal PropertyType type; 35 | 36 | [FieldOffset(4)] 37 | internal IntPtr atom; 38 | 39 | [FieldOffset(4)] 40 | internal int integer; 41 | 42 | [FieldOffset(4)] 43 | internal uint cardinal; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Bdf/PropertyType.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont.Bdf 28 | { 29 | /// 30 | /// A list of BDF property types. 31 | /// 32 | public enum PropertyType 33 | { 34 | /// Value 0 is used to indicate a missing property. 35 | None = 0, 36 | 37 | /// Property is a string atom. 38 | Atom = 1, 39 | 40 | /// Property is a 32-bit signed integer. 41 | Integer = 2, 42 | 43 | /// Property is a 32-bit unsigned integer. 44 | Cardinal = 3 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/CMapCacheRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct CMapCacheRec 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ImageCacheRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ImageCacheRec 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ImageTypeRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ImageTypeRec 32 | { 33 | internal IntPtr face_id; 34 | internal int width; 35 | internal int height; 36 | internal LoadFlags flags; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ManagerRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ManagerRec 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/NodeRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct NodeRec 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/SBitCacheRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct SBitCacheRec 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/SBitRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct SBitRec 32 | { 33 | internal byte width; 34 | internal byte height; 35 | internal byte left; 36 | internal byte top; 37 | 38 | internal byte format; 39 | internal byte max_grays; 40 | internal short pitch; 41 | internal byte xadvance; 42 | internal byte yadvance; 43 | 44 | internal IntPtr buffer; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ScalerRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Cache.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ScalerRec 32 | { 33 | internal IntPtr face_id; 34 | internal uint width; 35 | internal uint height; 36 | internal int pixel; 37 | internal uint x_res; 38 | internal uint y_res; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Cff/HintingEngine.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont.Cff 28 | { 29 | /// 30 | /// A list of constants used for the hinting-engine property to select the hinting engine for CFF fonts. 31 | /// 32 | public enum HintingEngine 33 | { 34 | /// Use the old FreeType hinting engine. 35 | FreeType = 0, 36 | 37 | /// Use the hinting engine contributed by Adobe. 38 | Adobe = 1 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/FTUnitVector.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont 29 | { 30 | /// 31 | /// A simple structure used to store a 2D vector unit vector. Uses types. 32 | /// 33 | [StructLayout(LayoutKind.Sequential, Pack = 1)] 34 | public struct FTUnitVector 35 | { 36 | /// 37 | /// Horizontal coordinate. 38 | /// 39 | public Fixed2Dot14 X; 40 | 41 | /// 42 | /// Vertical coordinate. 43 | /// 44 | public Fixed2Dot14 Y; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/GlyphBBoxMode.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont 28 | { 29 | /// 30 | /// The mode how the values of are returned. 31 | /// 32 | [CLSCompliant(false)] 33 | public enum GlyphBBoxMode : uint 34 | { 35 | /// Return unscaled font units. 36 | Unscaled = 0, 37 | 38 | /// Return unfitted 26.6 coordinates. 39 | Subpixels = 0, 40 | 41 | /// Return grid-fitted 26.6 coordinates. 42 | Gridfit = 1, 43 | 44 | /// Return coordinates in integer pixels. 45 | Truncate = 2, 46 | 47 | /// Return grid-fitted pixel coordinates. 48 | Pixels = 3 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/BitmapGlyphRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct BitmapGlyphRec 32 | { 33 | internal GlyphRec root; 34 | internal int left; 35 | internal int top; 36 | internal BitmapRec bitmap; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/BitmapRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | /// 31 | /// Internally represents a Bitmap. 32 | /// 33 | /// 34 | /// Refer to for FreeType documentation. 35 | /// 36 | [StructLayout(LayoutKind.Sequential)] 37 | internal struct BitmapRec 38 | { 39 | internal int rows; 40 | internal int width; 41 | internal int pitch; 42 | internal IntPtr buffer; 43 | internal short num_grays; 44 | internal PixelMode pixel_mode; 45 | internal byte palette_mode; 46 | internal IntPtr palette; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/BitmapSizeRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | /// 34 | /// Internally represents a BitmapSize. 35 | /// 36 | /// 37 | /// Refer to for FreeType documentation. 38 | /// 39 | [StructLayout(LayoutKind.Sequential)] 40 | internal struct BitmapSizeRec 41 | { 42 | internal short height; 43 | internal short width; 44 | 45 | internal FT_Long size; 46 | 47 | internal FT_Long x_ppem; 48 | internal FT_Long y_ppem; 49 | 50 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(BitmapSizeRec)); } } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/CharMapRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using SharpFont.TrueType; 29 | 30 | namespace SharpFont.Internal 31 | { 32 | /// 33 | /// Internally represents a CharMap. 34 | /// 35 | /// 36 | /// Refer to for FreeType documentation. 37 | /// 38 | [StructLayout(LayoutKind.Sequential)] 39 | internal struct CharMapRec 40 | { 41 | internal IntPtr face; 42 | internal Encoding encoding; 43 | internal PlatformId platform_id; 44 | internal ushort encoding_id; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/GenericRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2014 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct GenericRec 32 | { 33 | internal IntPtr data; 34 | internal IntPtr finalizer; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/GlyphRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct GlyphRec 32 | { 33 | internal IntPtr library; 34 | private IntPtr clazz; 35 | internal GlyphFormat format; 36 | internal FTVector advance; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/GlyphToScriptMapPropertyRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct GlyphToScriptMapPropertyRec 32 | { 33 | internal IntPtr face; 34 | internal IntPtr map; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/IncreaseXHeightPropertyRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct IncreaseXHeightPropertyRec 32 | { 33 | internal IntPtr face; 34 | internal uint limit; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/ListNodeRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ListNodeRec 32 | { 33 | internal IntPtr prev; 34 | internal IntPtr next; 35 | internal IntPtr data; 36 | 37 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(ListNodeRec)); } } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/ListRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct ListRec 32 | { 33 | internal IntPtr head; 34 | internal IntPtr tail; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/MemoryRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct MemoryRec 32 | { 33 | internal IntPtr user; 34 | internal AllocFunc alloc; 35 | internal FreeFunc free; 36 | internal ReallocFunc realloc; 37 | 38 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(MemoryRec)); } } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/ModuleClassRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct ModuleClassRec 35 | { 36 | internal uint module_flags; 37 | internal FT_Long module_size; 38 | 39 | [MarshalAs(UnmanagedType.LPStr)] 40 | internal string module_name; 41 | internal FT_Long module_version; 42 | internal FT_Long module_requires; 43 | 44 | internal IntPtr module_interface; 45 | 46 | internal ModuleConstructor module_init; 47 | internal ModuleDestructor module_done; 48 | internal ModuleRequester get_interface; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/NativeObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SharpFont 4 | { 5 | /// 6 | /// Provide a consistent means for using pointers as references. 7 | /// 8 | public abstract class NativeObject 9 | { 10 | private IntPtr reference; 11 | 12 | /// 13 | /// Construct a new NativeObject and assign the reference. 14 | /// 15 | /// 16 | protected NativeObject(IntPtr reference) 17 | { 18 | this.reference = reference; 19 | } 20 | 21 | internal virtual IntPtr Reference 22 | { 23 | get 24 | { 25 | return reference; 26 | } 27 | set 28 | { 29 | reference = value; 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/OpenArgsRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct OpenArgsRec 35 | { 36 | internal OpenFlags flags; 37 | internal IntPtr memory_base; 38 | internal FT_Long memory_size; 39 | 40 | [MarshalAs(UnmanagedType.LPStr)] 41 | internal string pathname; 42 | 43 | internal IntPtr stream; 44 | internal IntPtr driver; 45 | internal int num_params; 46 | internal IntPtr @params; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/OutlineFuncsRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct OutlineFuncsRec 35 | { 36 | internal IntPtr moveTo; 37 | internal IntPtr lineTo; 38 | internal IntPtr conicTo; 39 | internal IntPtr cubicTo; 40 | internal int shift; 41 | internal FT_Long delta; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/OutlineGlyphRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct OutlineGlyphRec 32 | { 33 | internal GlyphRec root; 34 | internal OutlineRec outline; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/OutlineRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct OutlineRec 32 | { 33 | internal short n_contours; 34 | internal short n_points; 35 | 36 | internal IntPtr points; 37 | internal IntPtr tags; 38 | internal IntPtr contours; 39 | 40 | internal OutlineFlags flags; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/ParameterRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct ParameterRec 35 | { 36 | internal FT_ULong tag; 37 | internal IntPtr data; 38 | 39 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(ParameterRec)); } } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/RasterFuncsRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct RasterFuncsRec 32 | { 33 | internal GlyphFormat glyph_format; 34 | internal RasterNewFunc raster_new; 35 | internal RasterResetFunc raster_reset; 36 | internal RasterSetModeFunc raster_set_mode; 37 | internal RasterRenderFunc raster_render; 38 | internal RasterDoneFunc raster_done; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/RasterParamsRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013, 2016 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct RasterParamsRec 32 | { 33 | internal IntPtr target; 34 | internal IntPtr source; 35 | internal RasterFlags flags; 36 | internal RasterSpanFunc gray_spans; 37 | internal RasterSpanFunc black_spans; 38 | 39 | [Obsolete("Unused")] 40 | internal RasterBitTestFunc bit_test; 41 | 42 | [Obsolete("Unused")] 43 | internal RasterBitSetFunc bit_set; 44 | 45 | internal IntPtr user; 46 | internal BBox clip_box; 47 | 48 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(RasterParamsRec)); } } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/RendererClassRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct RendererClassRec 32 | { 33 | internal ModuleClassRec root; 34 | 35 | internal GlyphFormat glyph_format; 36 | 37 | internal IntPtr render_glyph; 38 | internal IntPtr transform_glyph; 39 | internal IntPtr get_glyph_cbox; 40 | internal IntPtr set_mode; 41 | 42 | internal IntPtr raster_class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/SizeMetricsRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct SizeMetricsRec 35 | { 36 | internal ushort x_ppem; 37 | internal ushort y_ppem; 38 | 39 | internal FT_Long x_scale; 40 | internal FT_Long y_scale; 41 | internal FT_Long ascender; 42 | internal FT_Long descender; 43 | internal FT_Long height; 44 | internal FT_Long max_advance; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/SizeRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | 29 | namespace SharpFont.Internal 30 | { 31 | [StructLayout(LayoutKind.Sequential)] 32 | internal struct SizeRec 33 | { 34 | internal IntPtr face; 35 | internal GenericRec generic; 36 | internal SizeMetricsRec metrics; 37 | private IntPtr @internal; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/SizeRequestRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | /// 34 | /// Internally represents a . 35 | /// 36 | /// 37 | /// Refer to for FreeType documentation. 38 | /// 39 | [StructLayout(LayoutKind.Sequential)] 40 | internal struct SizeRequestRec 41 | { 42 | internal SizeRequestType type; 43 | internal FT_Long width; 44 | internal FT_Long height; 45 | internal uint horiResolution; 46 | internal uint vertResolution; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/SpanRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct SpanRec 32 | { 33 | internal short x; 34 | internal ushort len; 35 | internal byte coverage; 36 | 37 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(SpanRec)); } } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/StreamDescRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Explicit)] 34 | internal struct StreamDescRec 35 | { 36 | [FieldOffset(0)] 37 | internal FT_Long value; 38 | 39 | [FieldOffset(0)] 40 | internal IntPtr pointer; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Internal/StreamRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct StreamRec 35 | { 36 | internal IntPtr @base; 37 | internal FT_ULong size; 38 | internal FT_ULong pos; 39 | 40 | internal StreamDescRec descriptor; 41 | internal StreamDescRec pathname; 42 | internal StreamIOFunc read; 43 | internal StreamCloseFunc close; 44 | 45 | internal IntPtr memory; 46 | internal IntPtr cursor; 47 | internal IntPtr limit; 48 | 49 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(StreamRec)); } } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/KerningMode.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont 28 | { 29 | /// 30 | /// An enumeration used to specify which kerning values to return in . 31 | /// 32 | public enum KerningMode 33 | { 34 | /// 35 | /// Return scaled and grid-fitted kerning distances. 36 | /// 37 | Default = 0, 38 | 39 | /// 40 | /// Return scaled but un-grid-fitted kerning distances. 41 | /// 42 | Unfitted, 43 | 44 | /// 45 | /// Return the kerning vector in original font units. 46 | /// 47 | Unscaled 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Module.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont 28 | { 29 | /// 30 | /// A handle to a given FreeType module object. Each module can be a font driver, a renderer, or anything else that 31 | /// provides services to the formers. 32 | /// 33 | public sealed class Module : NativeObject 34 | { 35 | #region Constructors 36 | 37 | internal Module(IntPtr reference): base(reference) 38 | { 39 | } 40 | 41 | #endregion 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MMAxisRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.MultipleMasters.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct MMAxisRec 35 | { 36 | [MarshalAs(UnmanagedType.LPStr)] 37 | internal string name; 38 | 39 | internal FT_Long minimum; 40 | internal FT_Long maximum; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MMVarRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.MultipleMasters.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct MMVarRec 32 | { 33 | internal uint num_axis; 34 | internal uint num_designs; 35 | internal uint num_namedstyles; 36 | internal IntPtr axis; 37 | internal IntPtr namedstyle; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MultiMasterRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.MultipleMasters.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct MultiMasterRec 32 | { 33 | internal uint num_axis; 34 | internal uint num_designs; 35 | 36 | [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] 37 | internal MMAxisRec[] axis; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/VarAxisRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.MultipleMasters.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct VarAxisRec 35 | { 36 | [MarshalAs(UnmanagedType.LPStr)] 37 | internal string name; 38 | 39 | internal FT_Long minimum; 40 | internal FT_Long def; 41 | internal FT_Long maximum; 42 | 43 | internal FT_ULong tag; 44 | internal uint strid; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/VarNamedStyleRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.MultipleMasters.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct VarNamedStyleRec 32 | { 33 | internal IntPtr coords; 34 | internal uint strid; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/PostScript/EncodingType.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont.PostScript 28 | { 29 | /// 30 | /// An enumeration describing the ‘Encoding’ entry in a Type 1 dictionary. 31 | /// 32 | public enum EncodingType 33 | { 34 | /// 35 | /// Not encoded. 36 | /// 37 | None = 0, 38 | /// 39 | /// Array encoding. 40 | /// 41 | Array, 42 | /// 43 | /// Standard encoding. 44 | /// 45 | Standard, 46 | /// 47 | /// ISO Latin 1 encoding. 48 | /// 49 | IsoLatin1, 50 | /// 51 | /// Expert encoding. 52 | /// 53 | Expert 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/Raster.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont 29 | { 30 | /// 31 | /// A handle (pointer) to a raster object. Each object can be used independently to convert an outline into a 32 | /// bitmap or pixmap. 33 | /// 34 | public class Raster : NativeObject 35 | { 36 | #region Constructors 37 | 38 | internal Raster(IntPtr reference) : base(reference) 39 | { 40 | } 41 | 42 | #endregion 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/StrokerLineCap.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | 27 | namespace SharpFont 28 | { 29 | /// 30 | /// These values determine how the end of opened sub-paths are rendered in a stroke. 31 | /// 32 | public enum StrokerLineCap 33 | { 34 | /// 35 | /// The end of lines is rendered as a full stop on the last point itself. 36 | /// 37 | Butt = 0, 38 | 39 | /// 40 | /// The end of lines is rendered as a half-circle around the last point. 41 | /// 42 | Round, 43 | 44 | /// 45 | /// The end of lines is rendered as a square around the last point. 46 | /// 47 | Square 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/TrueType/Internal/PostscriptRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2015 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | using FT_Long = System.IntPtr; 29 | using FT_ULong = System.UIntPtr; 30 | 31 | namespace SharpFont.TrueType.Internal 32 | { 33 | [StructLayout(LayoutKind.Sequential)] 34 | internal struct PostscriptRec 35 | { 36 | internal FT_Long FormatType; 37 | internal FT_Long italicAngle; 38 | internal short underlinePosition; 39 | internal short underlineThickness; 40 | internal FT_ULong isFixedPitch; 41 | internal FT_ULong minMemType42; 42 | internal FT_ULong maxMemType42; 43 | internal FT_ULong minMemType1; 44 | internal FT_ULong maxMemType1; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Ext/SharpFontFork/Source/SharpFont/TrueType/Internal/SfntNameRec.cs: -------------------------------------------------------------------------------- 1 | #region MIT License 2 | /*Copyright (c) 2012-2013 Robert Rouhani 3 | 4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE.*/ 23 | #endregion 24 | 25 | using System; 26 | using System.Runtime.InteropServices; 27 | 28 | namespace SharpFont.TrueType.Internal 29 | { 30 | [StructLayout(LayoutKind.Sequential)] 31 | internal struct SfntNameRec 32 | { 33 | internal PlatformId platform_id; 34 | internal ushort encoding_id; 35 | internal ushort language_id; 36 | internal ushort name_id; 37 | 38 | internal IntPtr @string; 39 | internal uint string_len; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Ext/System.Data.SQLite.DLL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/System.Data.SQLite.DLL -------------------------------------------------------------------------------- /Ext/span/System.Memory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/span/System.Memory.dll -------------------------------------------------------------------------------- /Ext/span/System.Runtime.CompilerServices.Unsafe.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/span/System.Runtime.CompilerServices.Unsafe.dll -------------------------------------------------------------------------------- /Ext/zstd/LICENSE: -------------------------------------------------------------------------------- 1 | BSD License 2 | 3 | For Zstandard software 4 | 5 | Copyright (c) 2016-present, Facebook, Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without modification, 8 | are permitted provided that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright notice, this 11 | list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright notice, 14 | this list of conditions and the following disclaimer in the documentation 15 | and/or other materials provided with the distribution. 16 | 17 | * Neither the name Facebook nor the names of its contributors may be used to 18 | endorse or promote products derived from this software without specific 19 | prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /Ext/zstd/common/debug.c: -------------------------------------------------------------------------------- 1 | /* ****************************************************************** 2 | * debug 3 | * Part of FSE library 4 | * Copyright (c) Yann Collet, Facebook, Inc. 5 | * 6 | * You can contact the author at : 7 | * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy 8 | * 9 | * This source code is licensed under both the BSD-style license (found in the 10 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 11 | * in the COPYING file in the root directory of this source tree). 12 | * You may select, at your option, one of the above-listed licenses. 13 | ****************************************************************** */ 14 | 15 | 16 | /* 17 | * This module only hosts one global variable 18 | * which can be used to dynamically influence the verbosity of traces, 19 | * such as DEBUGLOG and RAWLOG 20 | */ 21 | 22 | #include "debug.h" 23 | 24 | int g_debuglevel = DEBUGLEVEL; 25 | -------------------------------------------------------------------------------- /Ext/zstd/decompress/zstd_ddict.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Yann Collet, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | 12 | #ifndef ZSTD_DDICT_H 13 | #define ZSTD_DDICT_H 14 | 15 | /*-******************************************************* 16 | * Dependencies 17 | *********************************************************/ 18 | #include "../common/zstd_deps.h" /* size_t */ 19 | #include "../zstd.h" /* ZSTD_DDict, and several public functions */ 20 | 21 | 22 | /*-******************************************************* 23 | * Interface 24 | *********************************************************/ 25 | 26 | /* note: several prototypes are already published in `zstd.h` : 27 | * ZSTD_createDDict() 28 | * ZSTD_createDDict_byReference() 29 | * ZSTD_createDDict_advanced() 30 | * ZSTD_freeDDict() 31 | * ZSTD_initStaticDDict() 32 | * ZSTD_sizeof_DDict() 33 | * ZSTD_estimateDDictSize() 34 | * ZSTD_getDictID_fromDict() 35 | */ 36 | 37 | const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict); 38 | size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict); 39 | 40 | void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 41 | 42 | 43 | 44 | #endif /* ZSTD_DDICT_H */ 45 | -------------------------------------------------------------------------------- /Ext/zstd/libzstd.pc.in: -------------------------------------------------------------------------------- 1 | # ZSTD - standard compression algorithm 2 | # Copyright (C) 2014-2016, Yann Collet, Facebook 3 | # BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 4 | 5 | prefix=@PREFIX@ 6 | exec_prefix=@EXEC_PREFIX@ 7 | includedir=@INCLUDEDIR@ 8 | libdir=@LIBDIR@ 9 | 10 | Name: zstd 11 | Description: fast lossless compression algorithm library 12 | URL: http://www.zstd.net/ 13 | Version: @VERSION@ 14 | Libs: -L${libdir} -lzstd 15 | Cflags: -I${includedir} 16 | -------------------------------------------------------------------------------- /ShaderCompiler/ShaderCompiler.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2019 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShaderCompiler", "ShaderCompiler.csproj", "{98ACE85D-3135-430E-B238-6D864BE36A4B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {C3965A13-AAC8-478B-BD42-AB6201B48074} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /ShaderCompiler/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ShaderCompiler/bin/ShaderCompiler.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/ShaderCompiler/bin/ShaderCompiler.exe -------------------------------------------------------------------------------- /ShaderCompiler/bin/ShaderCompiler.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/CurveTester/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace CurveTester { 7 | static class Program { 8 | /// 9 | /// The main entry point for the application. 10 | /// 11 | [STAThread] 12 | static void Main () { 13 | Application.EnableVisualStyles(); 14 | Application.SetCompatibleTextRenderingDefault(false); 15 | Application.Run(new MainWindow()); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Squared/Examples/CurveTester/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CurveTester")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CurveTester")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("325eb716-d7dd-4f3e-a8e4-d6467ee0a454")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Examples/CurveTester/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CurveTester.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Squared/Examples/CurveTester/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Squared/Examples/CurveTester/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/MUDServer/MUDServerTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MUDServerTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MUDServerTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("c2f5798b-00f3-4816-8d2c-be8ef8bf5134")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Examples/MUDServer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using Squared.Task; 6 | using Squared.Threading; 7 | 8 | namespace MUDServer { 9 | public static class Program { 10 | public static Random RNG = new Random(); 11 | public static TaskScheduler Scheduler; 12 | public static TelnetServer Server; 13 | 14 | static void Main (string[] args) { 15 | Scheduler = new TaskScheduler(); 16 | 17 | World.Create(); 18 | Event.Broadcast(new { Type = EventType.WorldConstructed }); 19 | 20 | Server = new TelnetServer(Scheduler, System.Net.IPAddress.Any, 23); 21 | Scheduler.Start(HandleNewClients(), TaskExecutionPolicy.RunAsBackgroundTask); 22 | 23 | while (true) { 24 | Scheduler.Step(); 25 | Scheduler.WaitForWorkItems(); 26 | } 27 | } 28 | 29 | static IEnumerator HandleNewClients () { 30 | while (true) { 31 | IFuture f = Server.AcceptNewClient(); 32 | using (f) 33 | yield return f; 34 | 35 | TelnetClient client = f.Result as TelnetClient; 36 | Player player = new Player(client, World.PlayerStartLocation); 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Squared/Examples/MUDServer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MUDServer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MUDServer")] 13 | [assembly: AssemblyCopyright("Copyright © 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cda17544-fcce-4a70-8cb9-b40e7006adba")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Examples/MUDServer/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/Pong/Game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/Pong/Game.ico -------------------------------------------------------------------------------- /Squared/Examples/Pong/GameThumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/Pong/GameThumbnail.png -------------------------------------------------------------------------------- /Squared/Examples/Pong/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Pong { 4 | static class Program { 5 | /// 6 | /// The main entry point for the application. 7 | /// 8 | [STAThread] 9 | static void Main(string[] args) { 10 | using (var game = new PongExample()) { 11 | game.Run(); 12 | } 13 | } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Squared/Examples/Pong/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Pong")] 9 | [assembly: AssemblyProduct("Pong")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("5e2df6d0-ce11-4252-b5d2-14f24766ccda")] 24 | 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | [assembly: AssemblyVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /Squared/Examples/Pong/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | true/pm 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Squared/Examples/RenderStressTest/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace RenderStressTest { 4 | static class Program 5 | { 6 | /// 7 | /// The main entry point for the application. 8 | /// 9 | [STAThread] 10 | static void Main(string[] args) 11 | { 12 | using (Game game = new Game()) 13 | { 14 | game.Run(); 15 | } 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Squared/Examples/RenderStressTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("RenderStressTest")] 9 | [assembly: AssemblyProduct("RenderStressTest")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. Only Windows 19 | // assemblies support COM. 20 | [assembly: ComVisible(false)] 21 | 22 | // On Windows, the following GUID is for the ID of the typelib if this 23 | // project is exposed to COM. On other platforms, it unique identifies the 24 | // title storage container when deploying this assembly to the device. 25 | [assembly: Guid("5eb142f4-f3e6-45df-b583-91896abd4e66")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | -------------------------------------------------------------------------------- /Squared/Examples/RenderStressTest/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/StartChatBots.bat: -------------------------------------------------------------------------------- 1 | @REM startchatbots number_of_bots send_rate 2 | @ECHO OFF 3 | FOR /L %%i in (1,1,%1) DO ( 4 | ping -n 1 localhost > NUL 5 | start "ChatBot%%i" /MIN .\TelnetChatBot\bin\x86\release\TelnetChatBot.exe %2 %3 %4 %5 %6 %7 %8 %9 6 | ) -------------------------------------------------------------------------------- /Squared/Examples/StartChatServer.bat: -------------------------------------------------------------------------------- 1 | @start "ChatServer" /MIN .\TelnetChatServer\bin\x86\release\TelnetChatServer.exe -------------------------------------------------------------------------------- /Squared/Examples/TelnetChatBot/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("TelnetChatBot")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TelnetChatBot")] 13 | [assembly: AssemblyCopyright("Copyright © 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("61f17db2-2d69-40e9-ba96-9145c9eb0153")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Examples/TelnetChatBot/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/TelnetChatServer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("TelnetChatServer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TelnetChatServer")] 13 | [assembly: AssemblyCopyright("Copyright © 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("9d798b1f-1b23-40a6-a74c-33f3ffab5bd0")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Examples/TelnetChatServer/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Circle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Xna.Framework; 3 | 4 | namespace ThreadedPlatformer { 5 | /// 6 | /// Represents a 2D circle. 7 | /// 8 | struct Circle { 9 | /// 10 | /// Center position of the circle. 11 | /// 12 | public Vector2 Center; 13 | 14 | /// 15 | /// Radius of the circle. 16 | /// 17 | public float Radius; 18 | 19 | /// 20 | /// Constructs a new circle. 21 | /// 22 | public Circle (Vector2 position, float radius) { 23 | Center = position; 24 | Radius = radius; 25 | } 26 | 27 | /// 28 | /// Determines if a circle intersects a rectangle. 29 | /// 30 | /// True if the circle and rectangle overlap. False otherwise. 31 | public bool Intersects (Rectangle rectangle) { 32 | Vector2 v = new Vector2(MathHelper.Clamp(Center.X, rectangle.Left, rectangle.Right), 33 | MathHelper.Clamp(Center.Y, rectangle.Top, rectangle.Bottom)); 34 | 35 | Vector2 direction = Center - v; 36 | float distanceSquared = direction.LengthSquared(); 37 | 38 | return ((distanceSquared > 0) && (distanceSquared < Radius * Radius)); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/Game.ico -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/GameThumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/GameThumbnail.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_0.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_1.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer0_2.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_0.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_1.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer1_2.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_0.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_1.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Backgrounds/Layer2_2.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Levels/0.txt: -------------------------------------------------------------------------------- 1 | .................... 2 | .................... 3 | .................... 4 | .................... 5 | .................... 6 | .................... 7 | .................... 8 | .........GGG........ 9 | .........###........ 10 | .................... 11 | ....GGG.......GGG... 12 | ....###.......###... 13 | .................... 14 | .1................X. 15 | #################### 16 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Levels/1.txt: -------------------------------------------------------------------------------- 1 | .................... 2 | .................... 3 | ..........X......... 4 | .......######....... 5 | ..G..............G.. 6 | ####..G.G.G.G....### 7 | .......G.G.GCG...... 8 | ......--------...... 9 | ....-...........-... 10 | .................... 11 | .G.G............G.G. 12 | ####............#### 13 | .................... 14 | .1.................. 15 | #################### 16 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Levels/2.txt: -------------------------------------------------------------------------------- 1 | .................... 2 | ...G............X... 3 | ...--..G.......--... 4 | ....G.--........G... 5 | ...--..........--... 6 | ...G......G....G.... 7 | ...--....--....--... 8 | ....G...........G... 9 | ...--........G.--... 10 | ...G........--.G.... 11 | ...--..........--... 12 | ....G...........G... 13 | ...--..........--... 14 | .1.................. 15 | #################### 16 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_died.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_died.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_lose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_lose.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_win.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Overlays/you_win.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Gem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Gem.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Die.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Idle.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterA/Run.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Die.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Idle.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterB/Run.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Die.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Idle.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterC/Run.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Die.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Idle.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/MonsterD/Run.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Celebrate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Celebrate.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Die.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Idle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Idle.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Jump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Jump.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Sprites/Player/Run.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA0.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA1.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA2.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA3.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA4.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA5.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockA6.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockB0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockB0.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockB1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/BlockB1.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/Exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/Exit.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/Platform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/HighResolutionContent/Tiles/Platform.png -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ThreadedPlatformer { 4 | static class Program { 5 | /// 6 | /// The main entry point for the application. 7 | /// 8 | [STAThread] 9 | static void Main (string[] args) { 10 | using (PlatformerGame game = new PlatformerGame()) { 11 | game.Run(); 12 | } 13 | } 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ThreadedPlatformer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("ThreadedPlatformer")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("6db10c51-b22d-4e8a-b5ab-2144daa346f8")] 24 | 25 | 26 | // Version information for an assembly consists of the following four values: 27 | // 28 | // Major Version 29 | // Minor Version 30 | // Build Number 31 | // Revision 32 | // 33 | [assembly: AssemblyVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | true/pm 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/ExitReached.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/ExitReached.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/GemCollected.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/GemCollected.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/MonsterKilled.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/MonsterKilled.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/Music.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/Music.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerFall.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerFall.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerJump.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerJump.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerKilled.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PlayerKilled.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PowerUp.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/Examples/ThreadedPlatformer/SharedContent/Sounds/PowerUp.wma -------------------------------------------------------------------------------- /Squared/Examples/ThreadedPlatformer/Tile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Xna.Framework; 3 | using Microsoft.Xna.Framework.Graphics; 4 | 5 | namespace ThreadedPlatformer { 6 | /// 7 | /// Controls the collision detection and response behavior of a tile. 8 | /// 9 | enum TileCollision { 10 | /// 11 | /// A passable tile is one which does not hinder player motion at all. 12 | /// 13 | Passable = 0, 14 | 15 | /// 16 | /// An impassable tile is one which does not allow the player to move through 17 | /// it at all. It is completely solid. 18 | /// 19 | Impassable = 1, 20 | 21 | /// 22 | /// A platform tile is one which behaves like a passable tile except when the 23 | /// player is above it. A player can jump up through a platform as well as move 24 | /// past it to the left and right, but can not fall down through the top of it. 25 | /// 26 | Platform = 2, 27 | } 28 | 29 | /// 30 | /// Stores the appearance and collision behavior of a tile. 31 | /// 32 | struct Tile { 33 | public Texture2D Texture; 34 | public TileCollision Collision; 35 | 36 | #if ZUNE 37 | public const int Width = 30; 38 | public const int Height = 20; 39 | #else 40 | public const int Width = 64; 41 | public const int Height = 48; 42 | #endif 43 | public static readonly Vector2 Size = new Vector2(Width, Height); 44 | 45 | /// 46 | /// Constructs a new tile. 47 | /// 48 | public Tile (Texture2D texture, TileCollision collision) { 49 | Texture = texture; 50 | Collision = collision; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Squared/FontTest/FontTest/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FontTest { 4 | static class Program { 5 | [STAThread] 6 | static void Main(string[] args) { 7 | Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3"); 8 | 9 | using (FontTestGame game = new FontTestGame()) { 10 | game.Run(); 11 | } 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Squared/FontTest/FontTest/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | true/pm 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Squared/FontTest/FontTest/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Squared/FontTest/FontTestContent/DutchAndHarley.xnb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/FontTest/FontTestContent/DutchAndHarley.xnb -------------------------------------------------------------------------------- /Squared/GameLib/GameTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("GameTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("GameTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("f68e5dd6-4dd8-494d-8b2f-d1ee5bfc7de3")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/GameLib/GameTests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Squared/GameLib/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("GameLib")] 9 | [assembly: AssemblyProduct("GameLib")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyCopyright("Copyright © 2008")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM 22 | [assembly: Guid("a3328f89-a4aa-4ffb-943f-25f065df99c5")] 23 | 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | [assembly: AssemblyVersion("1.0.0.0")] 32 | -------------------------------------------------------------------------------- /Squared/HttpServerTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("HttpServerTest")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("HttpServerTest")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("0783b399-a3e5-4158-aac2-efde45c29b27")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/HttpServerTest/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/LargeBufferTest/LargeBufferTest/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using SDL3; 3 | 4 | namespace LargeBufferTest { 5 | static class Program 6 | { 7 | /// 8 | /// The main entry point for the application. 9 | /// 10 | [STAThread] 11 | static void Main(string[] args) 12 | { 13 | Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3"); 14 | // SDL.SDL_SetHintWithPriority("FNA3D_FORCE_DRIVER", "D3D11", SDL.SDL_HintPriority.SDL_HINT_OVERRIDE); 15 | 16 | using (LargeBufferTestGame game = new LargeBufferTestGame()) 17 | { 18 | game.Run(); 19 | } 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Squared/LargeBufferTest/LargeBufferTest/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | true/pm 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/Fonts/kenney-icon-font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Squared/PRGUI.Demo/Fonts/kenney-icon-font.ttf -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Squared.Render; 3 | 4 | namespace PRGUI.Demo { 5 | static class Program { 6 | [STAThread] 7 | static void Main (string[] args) { 8 | // STBMipGenerator.InstallGlobally(); 9 | Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3"); 10 | 11 | using (DemoGame game = new DemoGame()) 12 | game.Run(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PRGUI Demo")] 9 | [assembly: AssemblyProduct("PRGUI Demo")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyCompany("Squared Interactive")] 12 | [assembly: AssemblyCopyright("Copyright © 2020")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. Only Windows 19 | // assemblies support COM. 20 | [assembly: ComVisible(false)] 21 | 22 | // On Windows, the following GUID is for the ID of the typelib if this 23 | // project is exposed to COM. On other platforms, it unique identifies the 24 | // title storage container when deploying this assembly to the device. 25 | [assembly: Guid("f6310b21-e648-4249-9dd1-94f38db1b5aa")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | [assembly: AssemblyVersion("0.0.1")] 35 | [assembly: AssemblyFileVersion("0.0.1")] 36 | 37 | -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/Properties/app.manifest: -------------------------------------------------------------------------------- 1 |  2 | 10 | 11 | 12 | true/pm 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Squared/PRGUI.Demo/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Squared/PRGUI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PRGUI")] 9 | [assembly: AssemblyProduct("PRGUI")] 10 | [assembly: AssemblyDescription("Partially Retained Graphical User Interface")] 11 | [assembly: AssemblyCompany("Squared Interactive")] 12 | [assembly: AssemblyCopyright("Copyright © 2020")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // The following GUID is for the ID of the typelib if this project is exposed to COM 22 | [assembly: Guid("a3328f89-a4aa-4ffb-943f-25f065df99d7")] 23 | 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | [assembly: AssemblyVersion("1.0.0.0")] 32 | -------------------------------------------------------------------------------- /Squared/Render.AV1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Render.AV1")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Render.AV1")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("CFB603C1-8371-460D-BA60-91E697EAE1C7")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Render.Basis/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Render.Basis")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Render.Basis")] 13 | [assembly: AssemblyCopyright("Copyright © 2023")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cfb603c1-8371-460d-ba60-91e697eae1b4")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Render.Freetype/FontProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using Squared.Render.Resources; 9 | using Squared.Render.Text; 10 | using Squared.Threading; 11 | 12 | namespace Squared.Render { 13 | public class FreeTypeFontProvider : ResourceProvider { 14 | public FreeTypeFontFormat DefaultFormat; 15 | 16 | public FreeTypeFontProvider (Assembly assembly, RenderCoordinator coordinator) 17 | : this(new EmbeddedResourceStreamProvider(assembly), coordinator) { 18 | } 19 | 20 | public FreeTypeFontProvider (IResourceProviderStreamSource provider, RenderCoordinator coordinator) 21 | // FIXME: Enable threaded create? 22 | : base(provider, coordinator, enableThreadedCreate: false, enableThreadedPreload: true) { 23 | } 24 | 25 | protected override Future CreateInstance (string name, Stream stream, object data, object preloadedData, bool async) { 26 | // FIXME 27 | var f = new Future(new FreeTypeFont(Coordinator, stream) { 28 | Format = DefaultFormat, 29 | }); 30 | return f; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Squared/Render.Freetype/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Render.Freetype")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Render.Freetype")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cfb603c1-8371-460d-ba60-91e697eae1b3")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/Render.STB/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Render.STB")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Render.STB")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cfb603c1-8371-460d-ba60-91e697eae1b4")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Squared/RenderLib/DisposalQueue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | 8 | namespace Squared.Render { 9 | public class DisposalQueue { 10 | private List> SpareLists = new List>(); 11 | private List CurrentList = new List(); 12 | 13 | public List FreezeCurrentList () { 14 | List newList = null; 15 | lock (SpareLists) { 16 | if (SpareLists.Count > 0) { 17 | newList = SpareLists[SpareLists.Count - 1]; 18 | SpareLists.RemoveAt(SpareLists.Count - 1); 19 | } 20 | } 21 | if (newList == null) 22 | newList = new List(); 23 | return Interlocked.Exchange(ref CurrentList, newList); 24 | } 25 | 26 | public void DisposeListContents (List list) { 27 | lock (list) { 28 | foreach (var item in list) 29 | item.Dispose(); 30 | 31 | list.Clear(); 32 | } 33 | 34 | lock (SpareLists) 35 | if (SpareLists.Count < 4) 36 | SpareLists.Add(list); 37 | } 38 | 39 | public void Enqueue (IDisposable resource) { 40 | var cl = CurrentList; 41 | lock (cl) 42 | cl.Add(resource); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Squared/RenderLib/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Squared.Render")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Squared Interactive")] 12 | [assembly: AssemblyProduct("Fracture")] 13 | [assembly: AssemblyCopyright("Copyright © Katelyn Gadd 2010")] 14 | 15 | // Setting ComVisible to false makes the types in this assembly not visible 16 | // to COM components. If you need to access a type in this assembly from 17 | // COM, set the ComVisible attribute to true on that type. 18 | [assembly: ComVisible(false)] 19 | 20 | // The following GUID is for the ID of the typelib if this project is exposed to COM 21 | [assembly: Guid("c02ebd2a-4660-4503-8620-74b3e69f115f")] 22 | 23 | // Version information for an assembly consists of the following four values: 24 | // 25 | // Major Version 26 | // Minor Version 27 | // Build Number 28 | // Revision 29 | // 30 | [assembly: AssemblyVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /Squared/RenderLib/Shaders/GeometryCommon.fxh: -------------------------------------------------------------------------------- 1 | float4 TransformPosition(float4 position, bool unused) { 2 | // Transform to view space, then offset by half a pixel to align texels with screen pixels 3 | float4 modelViewPos = mul(position, GetViewportModelViewMatrix()); 4 | // Finally project after offsetting 5 | return mul(modelViewPos, GetViewportProjectionMatrix()); 6 | } -------------------------------------------------------------------------------- /Squared/RenderLib/Shaders/PolygonCommon.fxh: -------------------------------------------------------------------------------- 1 | Texture2D VertexDataTexture; 2 | 3 | #define MAX_VERTEX_BUFFER_WIDTH 1024 4 | 5 | uniform const float2 PolygonVertexBufferInvSize; 6 | sampler VertexDataSampler { 7 | Texture = (VertexDataTexture); 8 | AddressU = CLAMP; 9 | AddressV = CLAMP; 10 | MipFilter = POINT; 11 | MinFilter = POINT; 12 | MagFilter = POINT; 13 | }; 14 | 15 | #define NODE_LINE 0 16 | #define NODE_BEZIER 1 17 | #define NODE_START 2 18 | 19 | float4 getPolyVertex (int offset) { 20 | int y = (int)floor(offset / MAX_VERTEX_BUFFER_WIDTH); 21 | float2 uvi = float2( 22 | offset - (y * MAX_VERTEX_BUFFER_WIDTH), y 23 | ); 24 | return tex2Dlod(VertexDataSampler, float4(uvi * PolygonVertexBufferInvSize, 0, 0)); 25 | } 26 | -------------------------------------------------------------------------------- /Squared/RenderLib/Shaders/RasterShapeConstants.fxh: -------------------------------------------------------------------------------- 1 | // HACK suggested by Sean Barrett: Increase all line widths to ensure that a diagonal 1px-thick line covers one pixel 2 | #define OutlineSizeCompensation 2.1 3 | 4 | #define PI 3.14159265358979323846 5 | #define DEG_TO_RAD (PI / 180.0) 6 | 7 | #define TYPE_Ellipse 0 8 | #define TYPE_LineSegment 1 9 | #define TYPE_Rectangle 2 10 | #define TYPE_Triangle 3 11 | #define TYPE_QuadraticBezier 4 12 | #define TYPE_Arc 5 13 | #define TYPE_Polygon 6 14 | #define TYPE_Star 7 15 | 16 | // Generic gradient types that operate on the bounding box or something 17 | // similar to it 18 | #define GRADIENT_TYPE_Natural 0 19 | #define GRADIENT_TYPE_Linear 1 20 | #define GRADIENT_TYPE_Linear_Enclosing 2 21 | #define GRADIENT_TYPE_Linear_Enclosed 3 22 | #define GRADIENT_TYPE_Radial 4 23 | #define GRADIENT_TYPE_Radial_Enclosing 5 24 | #define GRADIENT_TYPE_Radial_Enclosed 6 25 | #define GRADIENT_TYPE_Along 7 26 | // The gradient weight has already been computed by the evaluate function 27 | #define GRADIENT_TYPE_Other 8 28 | // Generic gradient that operates on the bounding box, with the angle added 29 | // to the base 30 | #define GRADIENT_TYPE_Angular 512 31 | #define GRADIENT_TYPE_Conical (GRADIENT_TYPE_Angular + 720) -------------------------------------------------------------------------------- /Squared/RenderLib/Shaders/TargetInfo.fxh: -------------------------------------------------------------------------------- 1 | #if !DEFINED_RTD 2 | #define DEFINED_RTD 1 3 | 4 | #define ACCEPTS_VPOS in float2 __vpos__ : VPOS 5 | #define RAW_VPOS __vpos__.xy 6 | 7 | uniform const float4 __RenderTargetInfo__