Skip to content

Commit

Permalink
FIX: fixed 2d apps colors rendering
Browse files Browse the repository at this point in the history
REFACTOR: renaming, and moving some some files and blocks
Signed-off-by: Chakib_Chemso <chemsoblakblak@gmail.com>
  • Loading branch information
chakibchemso committed May 17, 2023
1 parent 991369d commit 72337f3
Show file tree
Hide file tree
Showing 14 changed files with 390 additions and 341 deletions.
3 changes: 2 additions & 1 deletion Vulkan Engine.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=cout/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=endl/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=endl/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=KHRONOS/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
8 changes: 4 additions & 4 deletions Vulkan Engine/apps/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace vk_engine
void application::run()
{
auto viewer_object = vk_game_object::create_game_object();
input_controller cam_controller{};
constexpr input_controller cam_controller{};
vk_camera camera{};
//camera.set_view_direction(glm::vec3{0.f}, glm::vec3{0.5f, 0.f, 1.f});
//camera.set_view_target(glm::vec3(-1, -2, -2), glm::vec3(0, 0, 2.5));
Expand Down Expand Up @@ -53,12 +53,12 @@ namespace vk_engine
renderer.begin_swap_chain_render_pass(command_buffer);

// update rotations
for (auto& game_object : game_objects)
/*for (auto& game_object : game_objects)
{
game_object.transform.rotation.y = glm::mod(game_object.transform.rotation.y + 0.1f, 360.f);
game_object.transform.rotation.x = glm::mod(game_object.transform.rotation.x + 0.1f, 360.f);
game_object.transform.rotation.z = glm::mod(game_object.transform.rotation.z + 0.1f, 360.f);
}
}*/

simple_render_system.render_game_objects(command_buffer, game_objects, camera);

Expand All @@ -67,7 +67,7 @@ namespace vk_engine
}
}

vkDeviceWaitIdle(device.device());
vkDeviceWaitIdle(device.get_device());
}

void application::load_game_objects()
Expand Down
Loading

0 comments on commit 72337f3

Please sign in to comment.