Description:
Load test image.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r122:a6a888a96305 -

1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -1,1 +1,1
1 d7f0e37253a74f9e09b0aa45e63a243a5e7640d5
1 ccf73b859df7dddc357676bd95436a0b13bdd512
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -1,1 +1,1
1 4365fd40af26f6a84e18b3f7cc9703f84189efab
1 eb53a31a465d1700585a27323fb9618e935e3337
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
@@ -5,7 +5,6
5 5 },
6 6 "projects": {
7 7 "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj": {
8 "version": "1.0.0",
9 8 "restore": {
10 9 "projectUniqueName": "/Users/alys/repos/isometric-park-fna/FNA/FNA.csproj",
11 10 "projectName": "FNA",
@@ -54,7 +53,9
54 53 }
55 54 },
56 55 "frameworks": {
57 "net45": {}
56 "net45": {
57 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
58 }
58 59 }
59 60 }
60 61 }
@@ -7,7 +7,7
7 7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageRoot>
8 8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/alys/.nuget/packages/</NuGetPackageFolders>
9 9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.1.0</NuGetToolVersion>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
11 11 </PropertyGroup>
12 12 <PropertyGroup>
13 13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
@@ -62,7 +62,9
62 62 }
63 63 },
64 64 "frameworks": {
65 "net45": {}
65 "net45": {
66 "runtimeIdentifierGraphPath": "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/RuntimeIdentifierGraph.json"
67 }
66 68 }
67 69 }
68 70 } No newline at end of file
@@ -1,8 +1,8
1 1 {
2 2 "version": 2,
3 "dgSpecHash": "3AWDv+MZriwMxBTBDorp8FiSvyrXQqppePDYsTfATqNGlipF/pJObt6DcBo8NzTLP21oSN3cyqBrcDukFLx64w==",
3 "dgSpecHash": "kUPsWi+W/I8KOuiF0fQ9nWh1vVsW3b0wAQVjldBK6JNRF3usvNENwsXcLXddNG6Wh/129HHhkfaanQmLUK7wcA==",
4 4 "success": true,
5 "projectFilePath": "/home/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
5 "projectFilePath": "/Users/alys/repos/isometric-park-fna/SpriteFontPlus/src/SpriteFontPlus.FNA.csproj",
6 6 "expectedPackageFiles": [],
7 7 "logs": []
8 8 } No newline at end of file
1 NO CONTENT: modified file, binary diff hidden
@@ -62,6 +62,8
62 62 private ImGuiRenderer _imGuiRenderer;
63 63 private DebugWindow debugWindow;
64 64
65 public ImageMap imageMap;
66
65 67 bool show_another_window;
66 68 private bool showInitial;
67 69 int messageIndex;
@@ -168,6 +170,8
168 170
169 171 sound = Content.Load<SoundEffect>("FNASound");
170 172 Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset");
173 ImageMap.ImageMapTexture = Content.Load<Texture2D>(@"photos_converted");
174 this.imageMap = new ImageMap(500, 400);
171 175
172 176 Line.initialize(GraphicsDevice);
173 177
@@ -623,6 +627,19
623 627 }
624 628 }
625 629 }
630
631 batch.Draw(
632 ImageMap.ImageMapTexture,
633 new Rectangle(
634 0, // screenx,
635 0, // screeny,
636 Tile.TileWidth, Tile.TileHeight),
637 imageMap.GetSourceRectangle(1),
638 Color.White,
639 0.0f,
640 Vector2.Zero,
641 SpriteEffects.None,
642 0.9f);
626 643 #endregion draw_tiles
627 644
628 645 #region draw_gridlines
@@ -41,6 +41,7
41 41 <Compile Include="DrawVertDeclaration.cs" />
42 42 <Compile Include="ImGuiRenderer.cs" />
43 43 <Compile Include="FilledRectangle.cs" />
44 <Compile Include="ImageMap.cs" />
44 45 <Compile Include="Simulation.cs" />
45 46 <Compile Include="Utils\MathUtils.cs" />
46 47 <Compile Include="Utils\Node.cs" />
@@ -77,6 +78,9
77 78 <None Include="Content\part4_tileset.png">
78 79 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
79 80 </None>
81 <None Include="Content\photos_converted.png">
82 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
83 </None>
80 84 <None Include="Content\iosevka-medium.ttf">
81 85 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
82 86 </None>
You need to be logged in to leave comments. Login now