Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ Source/PlatformSpecific/Android/app/**/assets/**/*

Source/Generated/**/*

Packages/SampleGame/**/*
Packages/**/Cache/**/*
Packages/DefaultGame/**/*
Packages/HyperionEditorGame/**/*
Content/Game/**/*

Data/Models/Sponza/**/*
Data/Models/NewSponza/**/*
Expand Down
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
url = https://github.com/madler/zlib
[submodule "External/Submodules/xatlas"]
path = External/Submodules/xatlas
url = https://github.com/jpcy/xatlas
url = https://github.com/jpcy/xatlas
[submodule "External/Submodules/stratac"]
path = External/Submodules/stratac
url = https://github.com/StrataLanguage/stratac
54 changes: 50 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,31 @@
"configurations": [

{
"name": "Launch Editor (macOS)",
"name": "Launch Editor (macOS Debug)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Mac/Debug/Hyperion.Editor",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/Binaries/Mac/Debug",
"environment": [],
"console": "internalConsole",
"MIMode": "lldb",
},
{
"name": "Launch Sample (macOS Debug)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Mac/Debug/hyperion-sample",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/Binaries/Mac/Debug",
"environment": [],
"console": "internalConsole",
"MIMode": "lldb",
},
{
"name": "Launch Editor (macOS Release)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Mac/Release/Hyperion.Editor",
Expand All @@ -15,7 +39,7 @@
"MIMode": "lldb",
},
{
"name": "Launch Sample (macOS)",
"name": "Launch Sample (macOS Release)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Mac/Release/hyperion-sample",
Expand All @@ -27,7 +51,29 @@
"MIMode": "lldb",
},
{
"name": "Launch Editor (Windows)",
"name": "Launch Editor (Windows Debug)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Windows/Debug/Hyperion.Editor.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/Binaries/Windows/Debug",
"environment": [],
"console": "internalConsole",
},
{
"name": "Launch Sample (Windows Debug)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Windows/Debug/hyperion-sample.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/Binaries/Windows/Debug",
"environment": [],
"console": "internalConsole",
}
{
"name": "Launch Editor (Windows Release)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Windows/Release/Hyperion.Editor.exe",
Expand All @@ -38,7 +84,7 @@
"console": "internalConsole",
},
{
"name": "Launch Sample (Windows)",
"name": "Launch Sample (Windows Release)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/Binaries/Windows/Release/hyperion-sample.exe",
Expand Down
4 changes: 2 additions & 2 deletions Config/EngineConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"VSync": true,
"EnableGpuStats": true,
"Vulkan": {
"DebugLayers": false,
"DebugLayers": true,
"TimelineSemaphores": true
}
},
Expand All @@ -49,7 +49,7 @@
},
"System": {
"SelectedGpu": {
"Index": 0
"Index": 1
}
},
"Baker": {
Expand Down
33 changes: 13 additions & 20 deletions Data/Scripts/Lib.hyp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ extern struct UIObjectSize
Value : Vec2i
end
extern class UIObject
Init() -> void
GetEntity() -> Entity
GetStage() -> UIStage
SetStage(stage : UIStage) -> void
Expand Down Expand Up @@ -231,7 +232,6 @@ extern class UIObject
static OnEnabled : any
static OnDisabled : any
static OnValueChange : any
Init() -> void
end
extern class UIConsole : UIObject
end
Expand Down Expand Up @@ -439,11 +439,11 @@ extern class StreamingVolumeBase
GetBoundingBox(outAabb : BoundingBox) -> bool
GetBoundingSphere(outSphere : BoundingSphere) -> bool
ContainsPoint(point : Vec3f) -> bool
NotifyUpdate() -> void
GetShape_Impl() -> StreamingVolumeShape
GetBoundingBox_Impl(outAabb : BoundingBox) -> bool
GetBoundingSphere_Impl(outSphere : BoundingSphere) -> bool
ContainsPoint_Impl(point : Vec3f) -> bool
NotifyUpdate() -> void
end
extern enum StreamingVolumeShape : uint32
SPHERE = 0,
Expand Down Expand Up @@ -498,7 +498,8 @@ extern enum ScriptLanguage : uint8
Invalid = UINT8_MAX,
Native = 0,
HypScript = 1,
CSharp = 2
CSharp = 2,
Strata = 3
end
extern enum ScriptCompileStatus : uint8
Uninitialized = 0x0,
Expand Down Expand Up @@ -554,11 +555,9 @@ extern class WorldGridLayer
CreateStreamingCell(cellInfo : StreamingCellInfo) -> StreamingCell
AddStreamingObject(assetObject : AssetObject, coord : Vec2i) -> void
RemoveStreamingObject(assetObject : AssetObject) -> void
Init() -> void
OnAdded_Impl(worldGrid : WorldGrid) -> void
OnRemoved_Impl(worldGrid : WorldGrid) -> void
CreateStreamingCell_Impl(cellInfo : StreamingCellInfo) -> StreamingCell
Init_Impl() -> void
end
extern struct WorldGridLayerInfo
Offset : Vec3f
Expand All @@ -568,7 +567,6 @@ extern struct WorldGridLayerInfo
end
extern class TerrainWorldGridLayer : WorldGridLayer
GetScene() -> Scene
Init() -> void
OnAdded_Impl(worldGrid : WorldGrid) -> void
OnRemoved_Impl(worldGrid : WorldGrid) -> void
CreateStreamingCell_Impl(cellInfo : StreamingCellInfo) -> StreamingCell
Expand Down Expand Up @@ -818,6 +816,9 @@ extern class EditorSubsystem : Subsystem
AddViewport(viewport : EditorViewport) -> void
RemoveViewport(viewport : EditorViewport) -> void
GetEditorScene() -> Scene
StartSimulation() -> bool
StopSimulation() -> bool
PauseSimulation() -> bool
ExecuteCommand(command : EditorCommandBase) -> bool
ExecuteCommandByName(name : Name, arguments : string) -> bool
NewProject() -> void
Expand Down Expand Up @@ -874,9 +875,6 @@ extern class EditorSubsystem : Subsystem
OnSelectionChanged : any
OnMeshEditSelectionChanged : any
OnMeshEditStateChanged : any
StartSimulation() -> bool
StopSimulation() -> bool
PauseSimulation() -> bool
end
extern class Node
Clone() -> Node
Expand Down Expand Up @@ -1255,6 +1253,7 @@ extern enum LightFlags : uint32
ShadowCaster = 0x1,
CacheStaticShadowMaps = 0x10,
BakeStaticShadows = 0x20,
OnlyDrawStaticShadowMaps = 0x40,
Default = (ShadowCaster | CacheStaticShadowMaps)
end
extern struct TagComponentBase
Expand Down Expand Up @@ -1992,10 +1991,10 @@ extern class Game
PauseSimulation() -> void
RegisterInputHandler(inputHandler : InputHandlerBase) -> void
UnregisterInputHandler(inputHandler : InputHandlerBase) -> void
static OnLaunched : any
static OnGameStateChange : any
OnLaunch() -> void
BeforeShutdown() -> void
static OnLaunched : any
static OnGameStateChange : any
OnLaunch_Impl() -> void
BeforeShutdown_Impl() -> void
OnUpdate_Impl(delta : float) -> void
Expand Down Expand Up @@ -2106,18 +2105,11 @@ extern struct BlobDataReference
ReadOnly : bool
end
extern class BlobStorage
BaseDirectory : string
PageSize : uint64
FreeRanges : Array<BlobMappingRange>
PageData : Array<BlobPageData>
BlockData : Array<BlobBlockData>
end
extern struct BlobPageData
extern struct BlobBlockData
Cursor : uint64
end
extern struct BlobMappingRange
Start : uint32
End : uint32
end
extern enum AddAssetConflictMode : uint8
FailOnConflict = 0,
GenerateNewName,
Expand Down Expand Up @@ -2216,6 +2208,7 @@ extern class FontAtlas : AssetObject
SymbolList : Array<uint32>
end
extern class ScriptAsset : AssetObject
GetScriptDesc() -> ScriptDesc
ScriptDesc : ScriptDesc
Data : BlobDataReference
end
Expand Down
Loading