EditorContentManager Part 1

This commit is contained in:
Simon Lübeß
2023-01-01 16:53:45 +01:00
parent dffd43a36f
commit c389a77274
29 changed files with 3774 additions and 81 deletions
+2 -2
View File
@@ -174,8 +174,8 @@ namespace Sandbox
rsDesc.FrontCounterClockwise = false;
_rasterizerStateClockWise = new RasterizerState(rsDesc);
_texture = new Texture2D("content/Textures/Checkerboard.dds");
_ge_logo = new Texture2D("content/Textures/GE_Logo.dds");
_texture = Content.LoadAsset<Texture2D>("content/Textures/Checkerboard.dds");//new Texture2D("content/Textures/Checkerboard.dds");
_ge_logo = Content.LoadAsset<Texture2D>("content/Textures/GE_Logo.dds");//new Texture2D("content/Textures/GE_Logo.dds");
let sampler = SamplerStateManager.GetSampler(
SamplerStateDescription()
+2 -2
View File
@@ -96,7 +96,7 @@ namespace Sandbox
_depthTarget = new DepthStencilTarget(_context.SwapChain.Width, _context.SwapChain.Height);
_checkerTexture = new Texture2D("content/Textures/Checkerboard.dds");
_checkerTexture = Content.LoadAsset<Texture2D>("content/Textures/Checkerboard.dds");//new Texture2D("content/Textures/Checkerboard.dds");
let sampler = SamplerStateManager.GetSampler(
SamplerStateDescription()
@@ -125,7 +125,7 @@ namespace Sandbox
_depthStencilState = new DepthStencilState(dssDesc);
_spriteSheet = new Texture2D("content/Rpg/textures/spritesheet.png");
_spriteSheet = Content.LoadAsset<Texture2D>("content/Rpg/textures/spritesheet.png");//new Texture2D("content/Rpg/textures/spritesheet.png");
_spriteSheet.SamplerState = SamplerStateManager.PointClamp;
_treeSprite = SubTexture2D.CreateFromGrid(_spriteSheet, Vector2(5, 10), Vector2(128), .(1, 2));
+4 -4
View File
@@ -43,11 +43,11 @@ namespace Sandbox
_depthTarget = new DepthStencilTarget(_context.SwapChain.Width, _context.SwapChain.Height);
_checkerTexture = new Texture2D("content/Textures/Checkerboard.dds");
_smallLines = new Texture2D("content/GammaTest/SmallLines.png");
_gammaCorrectionBrightness = new Texture2D("content/GammaTest/gamma_correction_brightness.png");
//_checkerTexture = new Texture2D("content/Textures/Checkerboard.dds");
//_smallLines = new Texture2D("content/GammaTest/SmallLines.png");
//_gammaCorrectionBrightness = new Texture2D("content/GammaTest/gamma_correction_brightness.png");
_zeroPointFive = new Texture2D("content/GammaTest/zeroPointFive.png");
//_zeroPointFive = new Texture2D("content/GammaTest/zeroPointFive.png");
let sampler = SamplerStateManager.GetSampler(
SamplerStateDescription()