Commit Graph

178 Commits

Author SHA1 Message Date
Attila Uygun 61a96c7988 Fix for compiler warning 2023-11-02 21:24:53 +01:00
Attila Uygun 0d64c98854 Add Renderer::UpdateGeometry()
Also add its implementations in Vulkan and OpenGL renderers. Use it in
ImguiBackend instead of recreating geometry buffers every frame.
2023-11-02 21:15:20 +01:00
Attila Uygun a02d1ba71e OpenGL: fixed-point data values should be normalized 2023-11-01 20:43:06 +01:00
Attila Uygun 849599afd8 Reformat 2023-10-31 21:39:59 +01:00
Attila Uygun 874fec434a Implement ImguiBackend::Render()
Create geometry in Render() before calling Draw()
2023-10-29 23:21:54 +01:00
Attila Uygun e4f020d359 Add support for set/reset viewport 2023-10-29 23:13:17 +01:00
Attila Uygun f144bfdb2d Call ImGui::NewFrame() early in the main loop 2023-10-28 00:44:36 +02:00
Attila Uygun 75b5046684 Arbitrary scale-up 2023-10-25 23:40:07 +02:00
Attila Uygun 669ed5e098 Update for ImguiBackend
- Use RobotoMono-Regular.ttf instead of the default font
- Use delta-time instead of elapsed-time
- Fix for scissor/clipping rectangle
2023-10-25 20:03:26 +02:00
Attila Uygun 8b47314e72 Fix for compiler warnings 2023-10-24 00:48:46 +02:00
Attila Uygun b8e7957d91 Revert "Fix for compile warnings"
This reverts commit 2eb571b1ff.
2023-10-24 00:39:02 +02:00
Attila Uygun 2eb571b1ff Fix for compile warnings 2023-10-24 00:32:23 +02:00
Attila Uygun 010c6b097c Add support for texture units 2023-10-24 00:01:20 +02:00
Attila Uygun 3125bb9c95 Activate imgui shader only once. 2023-10-22 23:39:29 +02:00
Attila Uygun 4cc2c03afe Vulkan: Fix for activate-texture 2023-10-22 23:34:38 +02:00
Attila Uygun 06e42ead57 Use imgui to show stats 2023-10-15 10:12:09 +02:00
Attila Uygun a23dbdfe15 Add imgui to the list of third-party libraries 2023-10-14 21:07:05 +02:00
Attila Uygun 7b8d2db565 Implement ImguiBackend 2023-10-14 21:04:11 +02:00
Attila Uygun eed6d4751c Add imgui to third_party 2023-10-14 21:04:07 +02:00
Attila Uygun 2bafd5dbd7 Add support for scissor 2023-10-14 00:51:29 +02:00
Attila Uygun 14b2d22fbd Fix for index buffer
- Fix index data offset in Vulkan geometry buffer.
- Normalize vertex colors.
- Add support for drawing from a given index offset.
2023-10-11 20:04:11 +02:00
Attila Uygun 2823aa3197 Implement AudioDeviceWASAPI 2023-10-04 19:58:56 +02:00
Attila Uygun 261e7f41d6 Move custom shader from ImageQuad to Drawable 2023-09-30 23:30:34 +02:00
Attila Uygun 02418aa42a Rename AudioSink to AudioDevice 2023-09-30 22:43:28 +02:00
Attila Uygun e08f6e2022 cleanup build.gradle 2023-09-29 14:05:38 +02:00
Attila Uygun dd14ed30ea Use gn target name for the native lib 2023-09-27 23:35:00 +02:00
Attila Uygun 35958b13f7 Move assets to assets/demo 2023-09-27 21:33:00 +02:00
Attila Uygun 5b57d55c28 Fix for build (Windows) 2023-09-26 22:32:44 +02:00
Attila Uygun d779d17b3d Add separate gn configs for renderer, audio and platform 2023-09-23 22:49:10 +02:00
Attila Uygun 5e80aa1a04 Workaround for what seems to be a bug in the Android Gradle plugin
Error:
Could not determine the dependencies of task ':app:lintVitalReportDemoAllArchsRelease'.
> Could not create task ':app:lintVitalAnalyzeDemoAllArchsRelease'.
   > No such property: productFlavors for class: org.gradle.api.internal.provider.DefaultProperty
2023-09-12 21:31:16 +02:00
Attila Uygun f75a469e38 merge -> generate 2023-09-12 21:27:54 +02:00
Attila Uygun 8c66e7aa7a Move VMA_STATIC_VULKAN_FUNCTIONS to vma/BUILD.gn 2023-09-12 19:57:11 +02:00
Attila Uygun 3f13440acb Update Android Gradle plugin to 8.1.0 2023-09-12 19:21:23 +02:00
Attila Uygun c637b407c8 Cleanup gn config and .gitignore 2023-09-11 19:32:36 +02:00
Attila Uygun f2d6b04782 Add a separate gn config for each third-party library 2023-09-11 19:32:33 +02:00
Attila Uygun 85b5184d29 Remove forEachBuildType 2023-09-09 22:49:36 +02:00
Attila Uygun 64c63d4184 Remove provider_name resValue from build.gradle 2023-09-06 20:26:31 +02:00
Attila Uygun 915b896636 Use manifestPlaceholders for app icon 2023-09-06 20:15:00 +02:00
Attila Uygun d61b2c45d6 Rearrange code in build.gradle and add comments 2023-09-06 19:05:43 +02:00
Attila Uygun e9be4d45d2 Avoid adding gn tasks for each game 2023-09-05 22:54:06 +02:00
Attila Uygun ba7c823c91 Update hello world 2023-09-05 22:09:47 +02:00
Attila Uygun 0b1220c114 Revert "Unify arch types in gradle and gn"
This reverts commit 05252bfae8.
2023-09-05 21:40:04 +02:00
Attila Uygun 5f8f70ed53 Get ABI codes from productFlavors and remove hard-coded strings 2023-09-05 19:21:04 +02:00
Attila Uygun 05252bfae8 Unify arch types in gradle and gn 2023-09-05 18:04:47 +02:00
Attila Uygun ea93f80aa1 Move globals into Utils 2023-09-05 17:50:32 +02:00
Attila Uygun 48fb1589c6 Remove hard-coded build variant strings 2023-09-05 17:26:17 +02:00
Attila Uygun 01bffc71ac Add archs to productFlavors 2023-09-05 17:07:48 +02:00
Attila Uygun e6d89add57 Move product specific values to productFlavors 2023-09-04 20:07:59 +02:00
Attila Uygun 37afc006d2 Use productFlavors 2023-09-04 19:29:30 +02:00
Attila Uygun 10d411bafd Use shared_library build config 2023-09-04 19:29:30 +02:00