add working environment

This commit is contained in:
ikpil 2023-08-14 22:47:57 +09:00
parent bd16322ec2
commit 0284ce3d7e
2 changed files with 9 additions and 6 deletions

View File

@ -6,7 +6,6 @@ namespace DotRecast.Core
public static class CollectionExtensions public static class CollectionExtensions
{ {
/// Sorts the given data in-place using insertion sort. /// Sorts the given data in-place using insertion sort.
/// ///
/// @param data The data to sort /// @param data The data to sort
/// @param dataLength The number of elements in @p data /// @param dataLength The number of elements in @p data

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Numerics; using System.Numerics;
@ -398,11 +399,14 @@ public class RecastDemo : IRecastDemoChannel
var version = _gl.GetStringS(GLEnum.Version); var version = _gl.GetStringS(GLEnum.Version);
var renderGl = _gl.GetStringS(GLEnum.Renderer); var renderGl = _gl.GetStringS(GLEnum.Renderer);
var glslString = _gl.GetStringS(GLEnum.ShadingLanguageVersion); var glslString = _gl.GetStringS(GLEnum.ShadingLanguageVersion);
var currentCulture = CultureInfo.CurrentCulture;
var workingDirectory = Directory.GetCurrentDirectory(); var workingDirectory = Directory.GetCurrentDirectory();
Logger.Information($"working directory - {workingDirectory}"); Logger.Information($"Working directory - {workingDirectory}");
Logger.Information($"ImGui.Net version - {ImGui.GetVersion()}"); Logger.Information($"ImGui.Net version - {ImGui.GetVersion()}");
Logger.Information($"Culture - {currentCulture.Name}");
Logger.Information($"Dotnet Version - {Environment.Version.ToString()}");
Logger.Information($"OS Version - {Environment.OSVersion}");
Logger.Information(vendor); Logger.Information(vendor);
Logger.Information(version); Logger.Information(version);
Logger.Information(renderGl); Logger.Information(renderGl);
@ -442,9 +446,9 @@ public class RecastDemo : IRecastDemoChannel
private void OnWindowUpdate(double dt) private void OnWindowUpdate(double dt)
{ {
/* /*
* try (MemoryStack stack = StackPush()) { int[] w = stack.MallocInt(1); int[] h = * try (MemoryStack stack = StackPush()) { int[] w = stack.MallocInt(1); int[] h =
* stack.MallocInt(1); GlfwGetWindowSize(win, w, h); width = w.x; height = h.x; } * stack.MallocInt(1); GlfwGetWindowSize(win, w, h); width = w.x; height = h.x; }
*/ */
if (_sample.GetInputGeom() != null) if (_sample.GetInputGeom() != null)
{ {
var settings = _sample.GetSettings(); var settings = _sample.GetSettings();