Browse Source

Change `examples/all`

gingerBill 1 year ago
parent
commit
6642aa94d5

+ 31 - 4
examples/all/all_vendor.odin

@@ -85,12 +85,39 @@ _ :: xlib
 
 // NOTE: needed for doc generator
 
-import NS         "vendor:darwin/Foundation"
-import MTL        "vendor:darwin/Metal"
-import MTK        "vendor:darwin/MetalKit"
-import CA         "vendor:darwin/QuartzCore"
+import NS  "vendor:darwin/Foundation"
+import MTL "vendor:darwin/Metal"
+import MTK "vendor:darwin/MetalKit"
+import CA  "vendor:darwin/QuartzCore"
 
 _ :: NS
 _ :: MTL
 _ :: MTK
 _ :: CA
+
+
+import D3D11 "vendor:directx/d3d11"
+import D3D12 "vendor:directx/d3d12"
+import DXGI  "vendor:directx/dxgi"
+
+_ :: D3D11
+_ :: D3D12
+_ :: DXGI
+
+
+import cm "vendor:commonmark"
+_ :: cm
+
+
+import stb_easy_font "vendor:stb/easy_font"
+import stbi          "vendor:stb/image"
+import stbrp         "vendor:stb/rect_pack"
+import stbtt         "vendor:stb/truetype"
+import stb_vorbis    "vendor:stb/vorbis"
+
+_ :: stb_easy_font
+_ :: stbi
+_ :: stbrp
+_ :: stbtt
+_ :: stb_vorbis
+

+ 0 - 5
examples/all/all_vendor_cmark.odin

@@ -1,5 +0,0 @@
-//+build windows, linux
-package all
-
-import cm         "vendor:commonmark"
-_ :: cm

+ 0 - 3
examples/all/all_vendor_darwin.odin

@@ -1,3 +0,0 @@
-//+build darwin
-package all
-

+ 0 - 10
examples/all/all_vendor_directx.odin

@@ -1,10 +0,0 @@
-//+build windows
-package all
-
-import D3D11 "vendor:directx/d3d11"
-import D3D12 "vendor:directx/d3d12"
-import DXGI  "vendor:directx/dxgi"
-
-_ :: D3D11
-_ :: D3D12
-_ :: DXGI

+ 0 - 15
examples/all/all_vendor_stl.odin

@@ -1,15 +0,0 @@
-//+build windows, linux
-package all
-
-import stb_easy_font "vendor:stb/easy_font"
-import stbi          "vendor:stb/image"
-import stbrp         "vendor:stb/rect_pack"
-import stbtt         "vendor:stb/truetype"
-import stb_vorbis    "vendor:stb/vorbis"
-
-_ :: stb_easy_font
-_ :: stbi
-_ :: stbrp
-_ :: stbtt
-_ :: stb_vorbis
-

+ 0 - 5
examples/all/all_vendor_zlib.odin

@@ -1,5 +0,0 @@
-//+build windows, linux
-package all
-
-import zlib "vendor:zlib"
-_ :: zlib