changeset 578:13febe7978e5

did: small changes from refactoring
author Sam <sam@basx.dev>
date Wed, 05 Apr 2023 00:41:11 +0700
parents 070a58822f09
children 4991475ee27d
files README.md tests/test_vulkan_wrapper.nim
diffstat 2 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Wed Apr 05 00:40:38 2023 +0700
+++ b/README.md	Wed Apr 05 00:41:11 2023 +0700
@@ -48,12 +48,13 @@
 Quality improvments:
 
 - [x] Better scenegraph API
-- [ ] Better rendering pipeline API
+- [x] Better rendering pipeline API
 
 Other:
 - [x] Mouse/Keyboard input handling
   - [x] X11
   - [x] Win32
+- [ ] Enable/disable hardware cursor
 - [ ] Config files ala \*.ini files (use std/parsecfg)
 - [ ] Input-mapping configuration
 - [ ] Audio playing (Alsa, Windows Waveform API?)
--- a/tests/test_vulkan_wrapper.nim	Wed Apr 05 00:40:38 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Wed Apr 05 00:41:11 2023 +0700
@@ -1,12 +1,7 @@
+import std/os
 import std/options
 
-import semicongine/vulkan
-import semicongine/platform/window
-import semicongine/math
-import semicongine/entity
-import semicongine/scene
-import semicongine/gpu_data
-import semicongine/mesh
+import semicongine
 
 proc diagnostics(instance: Instance) =
   # diagnostic output
@@ -40,7 +35,6 @@
       echo "    " & $format
 
 when isMainModule:
-
   # INIT ENGINE:
   # create instance
   var thewindow = createWindow("Test")
@@ -92,7 +86,7 @@
   var thescene = Scene(
     name: "main",
     root: newEntity("root",
-      newEntity("triangle1", initMesh(
+      newEntity("triangle1", newMesh(
         positions=[newVec3f(0.0, -0.5), newVec3f(0.5, 0.5), newVec3f(-0.5, 0.5)],
         colors=[newVec3f(1.0, 0.0, 0.0), newVec3f(0.0, 1.0, 0.0), newVec3f(0.0, 0.0, 1.0)],
       )),